2019-01-08 21:24:49 -05:00
|
|
|
# wxWidgets
|
2019-01-08 21:57:15 -05:00
|
|
|
if [ -f "$HOME/build/wxWidgets/staticlib/bin/wx-config" ]; then
|
|
|
|
echo "wxWidgets cache found; skipping.."
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
echo "wxWidgets cache not found; building.."
|
|
|
|
fi
|
|
|
|
|
2019-01-08 21:44:04 -05:00
|
|
|
|
2019-01-08 21:57:15 -05:00
|
|
|
echo "Fetch wxWidgets.."
|
2019-01-08 21:24:49 -05:00
|
|
|
cd $HOME/build
|
|
|
|
mkdir -p $HOME/build/wxWidgets/staticlib
|
|
|
|
cd wxWidgets
|
2021-04-17 12:05:57 -04:00
|
|
|
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.5/wxWidgets-3.1.5.tar.bz2 > /dev/null
|
2019-01-08 21:44:04 -05:00
|
|
|
|
2019-01-08 21:24:49 -05:00
|
|
|
echo "Unpacking wxWidgets.."
|
2021-04-17 12:05:57 -04:00
|
|
|
tar -xvjf wxWidgets-3.1.5.tar.bz2 > /dev/null
|
|
|
|
cd wxWidgets-3.1.5/
|
2019-01-08 21:57:15 -05:00
|
|
|
./autogen.sh
|
2019-01-08 21:44:04 -05:00
|
|
|
|
2019-01-08 21:50:47 -05:00
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
2021-04-17 12:05:57 -04:00
|
|
|
./configure --with-opengl --disable-glcanvasegl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=`echo $HOME/build/wxWidgets/staticlib` CXXFLAGS="-std=c++0x"
|
2019-01-08 21:24:49 -05:00
|
|
|
fi
|
|
|
|
|
2019-01-08 21:50:47 -05:00
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
2021-04-17 12:05:57 -04:00
|
|
|
./configure --with-opengl --disable-glcanvasegl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --with-mac --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=`echo $HOME/build/wxWidgets/staticlib` CXXFLAGS="-std=c++0x" --with-libiconv=/usr
|
2019-01-08 21:57:15 -05:00
|
|
|
fi
|
2019-01-08 21:24:49 -05:00
|
|
|
|
2019-01-08 21:44:04 -05:00
|
|
|
echo "Building wxWidgets.."
|
2019-01-08 21:24:49 -05:00
|
|
|
make -j2
|
2019-01-08 21:44:04 -05:00
|
|
|
make install
|
2019-01-08 21:24:49 -05:00
|
|
|
|