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',
|
2019-02-13 18:10:18 +00:00
|
|
|
'-Wno-attributes',
|
2016-09-09 06:15:11 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'conditions': [
|
2018-03-14 05:19:24 +00:00
|
|
|
[ '"<!(uname -m)" == "x86_64" or "<!(uname -m)" == "aarch64"', {
|
2016-09-09 06:15:11 +00:00
|
|
|
'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)_' ],
|
|
|
|
}],
|
|
|
|
],
|
2018-06-22 23:26:39 +00:00
|
|
|
}], [ '"<!(uname -p)" == "x86_64"', {
|
|
|
|
# 32 bit version can't be linked with debug info or LTO,
|
|
|
|
# virtual memory exhausted :(
|
|
|
|
'cflags_c': [ '-g' ],
|
|
|
|
'cflags_cc': [ '-g' ],
|
|
|
|
'ldflags': [ '-g' ],
|
|
|
|
'configurations': {
|
|
|
|
'Release': {
|
|
|
|
'cflags_c': [ '-flto' ],
|
|
|
|
'cflags_cc': [ '-flto' ],
|
|
|
|
'ldflags': [ '-flto', '-fuse-linker-plugin' ],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}]
|
2016-09-09 06:15:11 +00:00
|
|
|
],
|
|
|
|
'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
|
|
|
],
|
2018-06-22 23:26:39 +00:00
|
|
|
'make_global_settings': [
|
|
|
|
['AR', '/usr/bin/gcc-ar'],
|
|
|
|
['RANLIB', '/usr/bin/gcc-ranlib'],
|
|
|
|
['NM', '/usr/bin/gcc-nm'],
|
|
|
|
],
|
2016-09-09 06:15:11 +00:00
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}
|