From ae0f8287b51ad9f56a790ab53cf7dfaab12f72c4 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 29 Jan 2015 12:20:12 +0100 Subject: sync-build.sh: use GTK3, allow cmake regenerate force --- sync-build.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'sync-build.sh') diff --git a/sync-build.sh b/sync-build.sh index 253d43a..ea9943e 100755 --- a/sync-build.sh +++ b/sync-build.sh @@ -57,13 +57,20 @@ if [[ ${B32:-} ]]; then CXXFLAGS="$CXXFLAGS -m32" fi +# Set envvar force_cmake=1 to call cmake before every build +if [ -n "${force_cmake:-}" ]; then + force_cmake=true +else + force_cmake=false +fi + # PATH is needed for /usr/bin/core_perl/pod2man (PCAP) # ENABLE_QT5=1: install qt5-tools on Arch Linux -# 32-bit libs on Arch: lib32-libcap lib32-gnutls lib32-gtk2 lib32-krb5 +# 32-bit libs on Arch: lib32-libcap lib32-gnutls lib32-gtk3 lib32-krb5 # lib32-portaudio lib32-geoip lib32-libnl lib32-lua remotecmd="schroot -c chroot:arch -- sh -c ' PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl; -if [ ! -e $builddir/CMakeCache.txt ]; then +if $force_cmake || [ ! -e $builddir/CMakeCache.txt ]; then mkdir -p $builddir && cd $builddir && set -x && time \ @@ -71,7 +78,7 @@ if [ ! -e $builddir/CMakeCache.txt ]; then PKG_CONFIG_LIBDIR=$LIBDIR/pkgconfig \ cmake \ -DCMAKE_INSTALL_PREFIX=/tmp/wsroot \ - -DENABLE_GTK3=0 \ + -DENABLE_GTK3=1 \ -DENABLE_PORTAUDIO=1 \ -DENABLE_QT5=1 \ -DENABLE_GEOIP=1 \ -- cgit v1.2.1