Skip to content

Commit

Permalink
Build: optionally disable webview support in wxWidgets
Browse files Browse the repository at this point in the history
Some Linux distributions are dropping webkitgtk support which is needed for wxWebView to work. This will build a second wxWidgets cache that has no webview support in order to test new code.
  • Loading branch information
ChristianBeer committed Jan 29, 2018
1 parent c36616c commit 5a236eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ script:
- if [[ "${BOINC_TYPE}" == "client" ]]; then ( ./configure --disable-server --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "apps" ]]; then ( ./configure --enable-apps --disable-server --disable-client --disable-manager && make ) fi
- if [[ "${BOINC_TYPE}" == "manager" && "${TRAVIS_OS_NAME}" == "linux" ]]; then ( ./3rdParty/buildLinuxDependencies.sh && ./configure --disable-server --disable-client --with-wx-prefix=${TRAVIS_BUILD_DIR}/3rdParty/buildCache/linux && make ) fi
- if [[ "${BOINC_TYPE}" == "manager" && "${TRAVIS_OS_NAME}" == "linux" ]]; then ( ./3rdParty/buildLinuxDependencies.sh --disable-webview --cache_dir ${TRAVIS_BUILD_DIR}/3rdParty/buildCache/linux2 && ./configure --disable-server --disable-client --with-wx-prefix=${TRAVIS_BUILD_DIR}/3rdParty/buildCache/linux2 && make ) fi
- if [[ "${BOINC_TYPE}" == "manager" && "${TRAVIS_OS_NAME}" == "osx" ]]; then ( ./3rdParty/buildMacDependencies.sh -q && ./mac_build/buildMacBOINC-CI.sh --no_shared_headers ) fi
- if [[ "${BOINC_TYPE}" == "libs-mingw" ]]; then ( cd lib && MINGW=x86_64-w64-mingw32 make -f Makefile.mingw ) fi
- if [[ "${BOINC_TYPE}" == "apps-mingw" ]]; then ( cd lib && MINGW=x86_64-w64-mingw32 make -f Makefile.mingw wrapper ) fi
5 changes: 4 additions & 1 deletion 3rdParty/buildLinuxDependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ while [[ $# -gt 0 ]]; do
doclean="yes"
;;
--debug)
wxoption="--debug"
wxoption="--debug ${wxoption}"
build_config="Debug"
;;
--disable-webview)
wxoption="--disable-webview ${wxoption} "
;;
*)
echo "unrecognized option $key"
;;
Expand Down
6 changes: 5 additions & 1 deletion 3rdParty/buildWxLinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fi

doclean=""
debug_flag="--disable-debug_flag"
webview_flag="--enable-webview"
lprefix=""
cmdline_prefix=""
while [[ $# -gt 0 ]]; do
Expand All @@ -78,6 +79,9 @@ while [[ $# -gt 0 ]]; do
cmdline_prefix="--prefix=${lprefix}"
shift
;;
--disable-webview)
webview_flag="--disable-webview"
;;
esac
shift # past argument or value
done
Expand All @@ -88,7 +92,7 @@ fi
mkdir -p buildgtk
cd buildgtk || return 1

../configure "${cmdline_prefix}" --with-gtk --disable-shared --enable-webview --disable-gtktest --disable-sdltest ${debug_flag}
../configure "${cmdline_prefix}" --with-gtk --disable-shared ${webview_flag} --disable-gtktest --disable-sdltest ${debug_flag}
if [ $? -ne 0 ]; then cd ..; return 1; fi
make 1>/dev/null # the wxWidgets build is very noisy so tune it down to warnings and errors only
if [ $? -ne 0 ]; then cd ..; return 1; fi
Expand Down

0 comments on commit 5a236eb

Please sign in to comment.