2016-08-28 13:36:51 -06:00
|
|
|
# This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
# the official desktop application for the Telegram messaging service.
|
2016-08-28 13:36:51 -06:00
|
|
|
#
|
2018-01-03 13:23:14 +03:00
|
|
|
# For license and copyright information please follow this link:
|
|
|
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-08-28 13:36:51 -06: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-29 20:46:57 -06:00
|
|
|
'mac_common_flags': [
|
|
|
|
'-pipe',
|
|
|
|
'-g',
|
|
|
|
'-Wall',
|
2017-03-22 18:38:40 +03:00
|
|
|
'-Werror',
|
2016-08-29 20:46:57 -06:00
|
|
|
'-W',
|
|
|
|
'-fPIE',
|
|
|
|
'-Wno-unused-variable',
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
'-Wno-unused-function',
|
|
|
|
'-Wno-switch',
|
|
|
|
'-Wno-comment',
|
|
|
|
'-Wno-missing-field-initializers',
|
2017-02-21 17:37:53 +03:00
|
|
|
'-Wno-sign-compare',
|
2016-08-29 20:46:57 -06:00
|
|
|
],
|
2016-08-28 13:36:51 -06:00
|
|
|
},
|
|
|
|
'xcode_settings': {
|
2016-08-29 20:46:57 -06:00
|
|
|
'SYMROOT': '../../out',
|
|
|
|
'OTHER_CFLAGS': [
|
|
|
|
'<@(mac_common_flags)',
|
|
|
|
],
|
2016-08-28 13:36:51 -06:00
|
|
|
'OTHER_CPLUSPLUSFLAGS': [
|
2016-08-29 20:46:57 -06:00
|
|
|
'<@(mac_common_flags)',
|
2016-08-28 13:36:51 -06:00
|
|
|
],
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'<!@(python -c "for s in \'<@(mac_frameworks)\'.split(\' \'): print(\'-framework \' + s)")',
|
|
|
|
],
|
|
|
|
'MACOSX_DEPLOYMENT_TARGET': '<(mac_target)',
|
2016-08-29 20:46:57 -06:00
|
|
|
'COMBINE_HIDPI_IMAGES': 'YES',
|
|
|
|
'COPY_PHASE_STRIP': 'NO',
|
2017-03-22 18:38:40 +03:00
|
|
|
'CLANG_CXX_LANGUAGE_STANDARD': 'c++1z',
|
2018-06-02 17:29:21 +03:00
|
|
|
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
|
2018-07-19 23:13:53 +03:00
|
|
|
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
|
2018-09-28 15:02:29 +03:00
|
|
|
'GCC_OPTIMIZATION_LEVEL': '0',
|
2018-09-18 13:43:14 +03:00
|
|
|
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
2016-08-29 23:24:16 -06:00
|
|
|
},
|
|
|
|
'configurations': {
|
2016-09-09 09:15:11 +03:00
|
|
|
'Debug': {
|
|
|
|
'xcode_settings': {
|
|
|
|
'ENABLE_TESTABILITY': 'YES',
|
|
|
|
'ONLY_ACTIVE_ARCH': 'YES',
|
|
|
|
},
|
|
|
|
},
|
2016-08-29 23:24:16 -06:00
|
|
|
},
|
2016-09-09 09:15:11 +03: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-29 23:24:16 -06:00
|
|
|
}],
|
|
|
|
[ 'build_macold', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_CPLUSPLUSFLAGS': [
|
|
|
|
'-Wno-inconsistent-missing-override',
|
|
|
|
],
|
2017-03-22 18:38:40 +03:00
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-w', # Suppress 'libstdc++ is deprecated' warning.
|
|
|
|
],
|
2016-08-29 23:24:16 -06:00
|
|
|
},
|
2018-06-21 23:35:28 +01:00
|
|
|
'defines': [
|
|
|
|
'RANGES_CXX_THREAD_LOCAL=0',
|
|
|
|
],
|
2016-08-29 23:24:16 -06:00
|
|
|
}, {
|
|
|
|
'xcode_settings': {
|
2016-08-29 20:46:57 -06:00
|
|
|
'CLANG_CXX_LIBRARY': 'libc++',
|
2017-11-15 16:46:34 +04:00
|
|
|
'CLANG_ENABLE_OBJC_WEAK': 'YES',
|
2016-08-29 23:24:16 -06:00
|
|
|
'OTHER_LDFLAGS': [
|
2016-08-31 08:32:05 -06:00
|
|
|
'-framework', 'VideoToolbox',
|
|
|
|
'-framework', 'VideoDecodeAcceleration',
|
|
|
|
'-framework', 'AVFoundation',
|
|
|
|
'-framework', 'CoreMedia',
|
2016-08-29 23:24:16 -06:00
|
|
|
],
|
2016-08-28 13:36:51 -06:00
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}
|