Merge pull request #1818 from telegramdesktop/auerchri/travis_macros

Add new macros to travis
This commit is contained in:
John Preston 2016-03-25 14:33:07 +03:00
commit ccedd6379b
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"'