Add new macros to travis

Signed-off-by: Christoph Auer <auer.chrisi@gmx.net>
This commit is contained in:
Christoph Auer 2016-03-24 23:56:21 +01:00
parent 593c2b2646
commit f227740e93
2 changed files with 14 additions and 5 deletions

View File

@ -4,9 +4,10 @@ language: cpp
env:
- BUILD_VERSION=""
- BUILD_VERSION="no_autoupdate"
- BUILD_VERSION="no_custom_scheme"
- BUILD_VERSION="no_autoupdate+no_custom_scheme"
- BUILD_VERSION="disable_autoupdate"
- BUILD_VERSION="disable_register_custom_scheme"
- BUILD_VERSION="disable_crash_reports"
- BUILD_VERSION="disable_network_proxy"
arch:
packages:

View File

@ -82,14 +82,22 @@ prepare() {
local options=""
if [[ $BUILD_VERSION == *"no_autoupdate"* ]]; then
if [[ $BUILD_VERSION == *"disable_autoupdate"* ]]; then
options+="\nDEFINES += TDESKTOP_DISABLE_AUTOUPDATE"
fi
if [[ $BUILD_VERSION == *"no_custom_scheme"* ]]; then
if [[ $BUILD_VERSION == *"disable_register_custom_scheme"* ]]; then
options+="\nDEFINES += TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME"
fi
if [[ $BUILD_VERSION == *"disable_crash_reports"* ]]; then
options+="\nDEFINES += TDESKTOP_DISABLE_CRASH_REPORTS"
fi
if [[ $BUILD_VERSION == *"disable_network_proxy"* ]]; then
options+="\nDEFINES += TDESKTOP_DISABLE_NETWORK_PROXY"
fi
options+='\nINCLUDEPATH += "/usr/lib/glib-2.0/include"'
options+='\nINCLUDEPATH += "/usr/lib/gtk-2.0/include"'
options+='\nINCLUDEPATH += "/usr/include/opus"'