2016-08-28 19:36:51 +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_mac', {
|
|
|
|
'variables': {
|
|
|
|
'mac_frameworks': [
|
|
|
|
'Cocoa',
|
|
|
|
'CoreFoundation',
|
|
|
|
'CoreServices',
|
|
|
|
'CoreText',
|
|
|
|
'CoreGraphics',
|
|
|
|
'OpenGL',
|
|
|
|
'AudioUnit',
|
|
|
|
'ApplicationServices',
|
|
|
|
'Foundation',
|
|
|
|
'AGL',
|
|
|
|
'Security',
|
|
|
|
'SystemConfiguration',
|
|
|
|
'Carbon',
|
|
|
|
'AudioToolbox',
|
|
|
|
'CoreAudio',
|
|
|
|
'QuartzCore',
|
|
|
|
'AppKit',
|
|
|
|
'CoreWLAN',
|
|
|
|
'IOKit',
|
|
|
|
],
|
2016-08-30 02:46:57 +00:00
|
|
|
'mac_common_flags': [
|
|
|
|
'-pipe',
|
|
|
|
'-g',
|
|
|
|
'-Wall',
|
2017-03-22 15:38:40 +00:00
|
|
|
'-Werror',
|
2016-08-30 02:46:57 +00:00
|
|
|
'-W',
|
|
|
|
'-fPIE',
|
|
|
|
'-Wno-unused-variable',
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
'-Wno-unused-function',
|
|
|
|
'-Wno-switch',
|
|
|
|
'-Wno-comment',
|
|
|
|
'-Wno-missing-field-initializers',
|
2017-02-21 14:37:53 +00:00
|
|
|
'-Wno-sign-compare',
|
2016-08-30 02:46:57 +00:00
|
|
|
],
|
2016-08-28 19:36:51 +00:00
|
|
|
},
|
|
|
|
'xcode_settings': {
|
2016-08-30 02:46:57 +00:00
|
|
|
'SYMROOT': '../../out',
|
|
|
|
'OTHER_CFLAGS': [
|
|
|
|
'<@(mac_common_flags)',
|
|
|
|
],
|
2016-08-28 19:36:51 +00:00
|
|
|
'OTHER_CPLUSPLUSFLAGS': [
|
2016-08-30 02:46:57 +00:00
|
|
|
'<@(mac_common_flags)',
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'<!@(python -c "for s in \'<@(mac_frameworks)\'.split(\' \'): print(\'-framework \' + s)")',
|
|
|
|
],
|
|
|
|
'MACOSX_DEPLOYMENT_TARGET': '<(mac_target)',
|
2016-08-30 02:46:57 +00:00
|
|
|
'COMBINE_HIDPI_IMAGES': 'YES',
|
|
|
|
'COPY_PHASE_STRIP': 'NO',
|
2017-03-22 15:38:40 +00:00
|
|
|
'CLANG_CXX_LANGUAGE_STANDARD': 'c++1z',
|
2016-08-30 05:24:16 +00:00
|
|
|
},
|
|
|
|
'configurations': {
|
2016-09-09 06:15:11 +00:00
|
|
|
'Debug': {
|
|
|
|
'xcode_settings': {
|
|
|
|
'ENABLE_TESTABILITY': 'YES',
|
|
|
|
'ONLY_ACTIVE_ARCH': 'YES',
|
|
|
|
},
|
|
|
|
},
|
2016-08-30 05:24:16 +00:00
|
|
|
},
|
2016-09-09 06:15:11 +00:00
|
|
|
'conditions': [
|
|
|
|
[ '"<(official_build_target)" != "" and "<(official_build_target)" != "mac" and "<(official_build_target)" != "mac32" and "<(official_build_target)" != "macstore"', {
|
|
|
|
'sources': [ '__Wrong_Official_Build_Target__' ],
|
|
|
|
}],
|
|
|
|
],
|
2016-08-30 05:24:16 +00:00
|
|
|
}],
|
|
|
|
[ 'build_macold', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_CPLUSPLUSFLAGS': [
|
|
|
|
'-Wno-inconsistent-missing-override',
|
|
|
|
],
|
2017-03-22 15:38:40 +00:00
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-w', # Suppress 'libstdc++ is deprecated' warning.
|
|
|
|
],
|
2016-08-30 05:24:16 +00:00
|
|
|
},
|
|
|
|
}, {
|
|
|
|
'xcode_settings': {
|
2016-08-30 02:46:57 +00:00
|
|
|
'CLANG_CXX_LIBRARY': 'libc++',
|
2016-08-30 05:24:16 +00:00
|
|
|
'OTHER_LDFLAGS': [
|
2016-08-31 14:32:05 +00:00
|
|
|
'-framework', 'VideoToolbox',
|
|
|
|
'-framework', 'VideoDecodeAcceleration',
|
|
|
|
'-framework', 'AVFoundation',
|
|
|
|
'-framework', 'CoreMedia',
|
2016-08-30 05:24:16 +00:00
|
|
|
],
|
2016-08-28 19:36:51 +00:00
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}
|