2016-08-28 19:36:51 +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-08-28 19:36:51 +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-08-28 19:36:51 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
'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',
|
2019-02-13 18:10:18 +00:00
|
|
|
'-Wno-unknown-attributes',
|
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',
|
2018-06-02 14:29:21 +00:00
|
|
|
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
|
2018-07-19 20:13:53 +00:00
|
|
|
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
|
2018-09-28 12:02:29 +00:00
|
|
|
'GCC_OPTIMIZATION_LEVEL': '0',
|
2018-09-18 10:43:14 +00:00
|
|
|
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
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
|
|
|
},
|
2018-06-21 22:35:28 +00:00
|
|
|
'defines': [
|
2019-01-06 11:22:18 +00:00
|
|
|
'OS_MAC_OLD',
|
2018-06-21 22:35:28 +00:00
|
|
|
'RANGES_CXX_THREAD_LOCAL=0',
|
|
|
|
],
|
2016-08-30 05:24:16 +00:00
|
|
|
}, {
|
|
|
|
'xcode_settings': {
|
2016-08-30 02:46:57 +00:00
|
|
|
'CLANG_CXX_LIBRARY': 'libc++',
|
2017-11-15 12:46:34 +00:00
|
|
|
'CLANG_ENABLE_OBJC_WEAK': 'YES',
|
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
|
|
|
},
|
|
|
|
}],
|
2019-01-06 11:22:18 +00:00
|
|
|
[ 'build_macstore', {
|
|
|
|
'defines': [
|
|
|
|
'TDESKTOP_DISABLE_AUTOUPDATE',
|
|
|
|
'OS_MAC_STORE',
|
|
|
|
],
|
|
|
|
}]
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
}
|