2016-09-09 06:15:11 +00:00
|
|
|
# This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
# the official desktop application for the Telegram messaging service.
|
2016-09-09 06:15:11 +00:00
|
|
|
#
|
2018-01-03 10:23:14 +00:00
|
|
|
# For license and copyright information please follow this link:
|
|
|
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-09-09 06:15:11 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
'conditions': [
|
|
|
|
[ 'build_linux', {
|
|
|
|
'variables': {
|
|
|
|
'linux_common_flags': [
|
|
|
|
'-pipe',
|
|
|
|
'-Wall',
|
2017-03-22 15:38:40 +00:00
|
|
|
'-Werror',
|
2016-09-09 06:15:11 +00:00
|
|
|
'-W',
|
|
|
|
'-fPIC',
|
|
|
|
'-Wno-unused-variable',
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
'-Wno-unused-function',
|
|
|
|
'-Wno-switch',
|
|
|
|
'-Wno-comment',
|
|
|
|
'-Wno-unused-but-set-variable',
|
|
|
|
'-Wno-missing-field-initializers',
|
2017-02-21 15:29:04 +00:00
|
|
|
'-Wno-sign-compare',
|
2016-09-09 06:15:11 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'conditions': [
|
|
|
|
[ '"<!(uname -p)" == "x86_64"', {
|
|
|
|
'defines': [
|
|
|
|
'Q_OS_LINUX64',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ '"<(official_build_target)" != "" and "<(official_build_target)" != "linux"', {
|
2017-02-01 10:12:52 +00:00
|
|
|
'sources': [ '__Wrong_Official_Build_Target_<(official_build_target)_' ],
|
2016-09-09 06:15:11 +00:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'defines': [
|
|
|
|
'Q_OS_LINUX32',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ '"<(official_build_target)" != "" and "<(official_build_target)" != "linux32"', {
|
|
|
|
'sources': [ '__Wrong_Official_Build_Target_<(official_build_target)_' ],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'_REENTRANT',
|
|
|
|
'QT_STATICPLUGIN',
|
|
|
|
'QT_PLUGIN',
|
|
|
|
],
|
2017-02-22 11:00:08 +00:00
|
|
|
'cflags_c': [
|
2016-09-09 06:15:11 +00:00
|
|
|
'<@(linux_common_flags)',
|
2017-02-22 11:00:08 +00:00
|
|
|
'-std=gnu11',
|
2016-09-09 06:15:11 +00:00
|
|
|
],
|
|
|
|
'cflags_cc': [
|
|
|
|
'<@(linux_common_flags)',
|
2017-09-28 09:40:26 +00:00
|
|
|
'-std=c++1z',
|
|
|
|
'-Wno-register',
|
2016-09-09 06:15:11 +00:00
|
|
|
],
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}
|