2016-09-09 06:15:11 +00:00
|
|
|
# This file is part of Telegram Desktop,
|
|
|
|
# the official desktop version of Telegram messaging app, see https://telegram.org
|
|
|
|
#
|
|
|
|
# Telegram Desktop is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# It is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# In addition, as a special exception, the copyright holders give permission
|
|
|
|
# to link the code of portions of this program with the OpenSSL library.
|
|
|
|
#
|
|
|
|
# Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
|
|
|
# Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
|
|
|
|
|
|
|
{
|
|
|
|
'conditions': [
|
|
|
|
[ 'build_linux', {
|
|
|
|
'variables': {
|
|
|
|
'linux_common_flags': [
|
|
|
|
'-pipe',
|
|
|
|
'-g',
|
|
|
|
'-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-02-22 11:00:08 +00:00
|
|
|
'-std=gnu++14',
|
2016-09-09 06:15:11 +00:00
|
|
|
],
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}
|