2016-08-10 19:36:00 +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-10 19:36:00 +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-10 19:36:00 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'variables': {
|
|
|
|
'variables': {
|
2016-08-28 19:36:51 +00:00
|
|
|
'variables': {
|
2016-10-09 07:43:56 +00:00
|
|
|
'variables': {
|
|
|
|
'conditions': [
|
|
|
|
[ 'build_macold', {
|
|
|
|
'qt_version%': '5.3.2',
|
|
|
|
}, {
|
2016-10-17 20:00:34 +00:00
|
|
|
'qt_version%': '5.6.2',
|
2016-10-09 07:43:56 +00:00
|
|
|
}]
|
|
|
|
],
|
|
|
|
},
|
2016-08-28 19:36:51 +00:00
|
|
|
'qt_libs': [
|
2016-09-09 06:15:11 +00:00
|
|
|
'qwebp',
|
|
|
|
'Qt5PrintSupport',
|
|
|
|
'Qt5PlatformSupport',
|
|
|
|
'Qt5Network',
|
2016-08-28 19:36:51 +00:00
|
|
|
'Qt5Widgets',
|
2016-09-09 06:15:11 +00:00
|
|
|
'Qt5Gui',
|
2016-08-28 19:36:51 +00:00
|
|
|
'qtharfbuzzng',
|
|
|
|
],
|
2016-10-09 07:43:56 +00:00
|
|
|
'qt_version%': '<(qt_version)',
|
2017-02-17 09:48:31 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'build_macold', {
|
|
|
|
'linux_path_qt%': '/usr/local/macold/Qt-<(qt_version)',
|
|
|
|
}, {
|
|
|
|
'linux_path_qt%': '/usr/local/tdesktop/Qt-<(qt_version)',
|
|
|
|
}]
|
|
|
|
]
|
2016-08-28 19:36:51 +00:00
|
|
|
},
|
2016-08-30 05:24:16 +00:00
|
|
|
'qt_version%': '<(qt_version)',
|
2016-10-17 20:00:34 +00:00
|
|
|
'qt_loc_unix': '<(linux_path_qt)',
|
2016-08-28 19:36:51 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'build_win', {
|
|
|
|
'qt_lib_prefix': '<(ld_lib_prefix)',
|
|
|
|
'qt_lib_debug_postfix': 'd<(ld_lib_postfix)',
|
|
|
|
'qt_lib_release_postfix': '<(ld_lib_postfix)',
|
|
|
|
'qt_libs': [
|
|
|
|
'<@(qt_libs)',
|
2016-09-09 06:15:11 +00:00
|
|
|
'Qt5Core',
|
2016-08-28 19:36:51 +00:00
|
|
|
'qtmain',
|
|
|
|
'qwindows',
|
2016-09-09 06:15:11 +00:00
|
|
|
'qtfreetype',
|
|
|
|
'qtpcre',
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'build_mac', {
|
|
|
|
'qt_lib_prefix': '<(ld_lib_prefix)',
|
|
|
|
'qt_lib_debug_postfix': '_debug<(ld_lib_postfix)',
|
|
|
|
'qt_lib_release_postfix': '<(ld_lib_postfix)',
|
|
|
|
'qt_libs': [
|
|
|
|
'<@(qt_libs)',
|
2016-09-09 06:15:11 +00:00
|
|
|
'Qt5Core',
|
2016-08-28 19:36:51 +00:00
|
|
|
'qgenericbearer',
|
|
|
|
'qcocoa',
|
|
|
|
],
|
|
|
|
}],
|
2016-09-09 06:15:11 +00:00
|
|
|
[ 'build_mac and not build_macold', {
|
2016-08-30 05:24:16 +00:00
|
|
|
'qt_libs': [
|
2016-09-09 06:15:11 +00:00
|
|
|
'<@(qt_libs)',
|
|
|
|
'Qt5Core',
|
|
|
|
'qtfreetype',
|
|
|
|
'qtpcre',
|
2016-08-30 05:24:16 +00:00
|
|
|
],
|
2016-09-09 06:15:11 +00:00
|
|
|
}],
|
|
|
|
[ 'build_linux', {
|
|
|
|
'qt_lib_prefix': 'lib',
|
|
|
|
'qt_lib_debug_postfix': '.a',
|
|
|
|
'qt_lib_release_postfix': '.a',
|
|
|
|
'qt_libs': [
|
|
|
|
'qxcb',
|
|
|
|
'Qt5XcbQpa',
|
|
|
|
'qconnmanbearer',
|
|
|
|
'qgenericbearer',
|
|
|
|
'qnmbearer',
|
|
|
|
'<@(qt_libs)',
|
|
|
|
'Qt5DBus',
|
|
|
|
'Qt5Core',
|
|
|
|
'qtpcre',
|
|
|
|
'Xi',
|
|
|
|
'Xext',
|
2016-10-09 07:43:56 +00:00
|
|
|
'Xfixes',
|
2016-09-09 06:15:11 +00:00
|
|
|
'SM',
|
|
|
|
'ICE',
|
|
|
|
'fontconfig',
|
|
|
|
'expat',
|
|
|
|
'freetype',
|
2017-04-01 08:10:13 +00:00
|
|
|
'z',
|
2016-09-09 06:15:11 +00:00
|
|
|
'xcb-shm',
|
|
|
|
'xcb-xfixes',
|
|
|
|
'xcb-render',
|
|
|
|
'xcb-static',
|
|
|
|
],
|
|
|
|
}],
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
2016-08-10 19:36:00 +00:00
|
|
|
},
|
|
|
|
'qt_version%': '<(qt_version)',
|
2016-08-30 05:24:16 +00:00
|
|
|
'qt_loc_unix': '<(qt_loc_unix)',
|
2016-08-28 19:36:51 +00:00
|
|
|
'qt_version_loc': '<!(python -c "print(\'<(qt_version)\'.replace(\'.\', \'_\'))")',
|
|
|
|
'qt_libs_debug': [
|
|
|
|
'<!@(python -c "for s in \'<@(qt_libs)\'.split(\' \'): print(\'<(qt_lib_prefix)\' + s + \'<(qt_lib_debug_postfix)\')")',
|
2016-08-10 19:36:00 +00:00
|
|
|
],
|
2016-08-28 19:36:51 +00:00
|
|
|
'qt_libs_release': [
|
|
|
|
'<!@(python -c "for s in \'<@(qt_libs)\'.split(\' \'): print(\'<(qt_lib_prefix)\' + s + \'<(qt_lib_release_postfix)\')")',
|
2016-08-10 19:36:00 +00:00
|
|
|
],
|
|
|
|
},
|
2016-08-28 19:36:51 +00:00
|
|
|
'qt_libs_debug': [ '<@(qt_libs_debug)' ],
|
|
|
|
'qt_libs_release': [ '<@(qt_libs_release)' ],
|
2016-08-10 19:36:00 +00:00
|
|
|
'qt_version%': '<(qt_version)',
|
|
|
|
'conditions': [
|
|
|
|
[ 'build_win', {
|
2017-04-19 09:44:07 +00:00
|
|
|
'qt_loc': '<(DEPTH)/../../../Libraries/qt<(qt_version_loc)/qtbase',
|
2016-08-10 19:36:00 +00:00
|
|
|
}, {
|
2016-08-30 05:24:16 +00:00
|
|
|
'qt_loc': '<(qt_loc_unix)',
|
2016-08-10 19:36:00 +00:00
|
|
|
}],
|
|
|
|
],
|
2016-10-09 07:43:56 +00:00
|
|
|
|
2017-03-13 10:02:28 +00:00
|
|
|
# If you need moc sources include a line in your 'sources':
|
|
|
|
# '<!@(python <(DEPTH)/list_sources.py [sources] <(qt_moc_list_sources_arg))'
|
|
|
|
# where [sources] contains all your source files
|
|
|
|
'qt_moc_list_sources_arg': '--moc-prefix SHARED_INTERMEDIATE_DIR/<(_target_name)/moc/moc_',
|
|
|
|
|
2016-10-09 07:43:56 +00:00
|
|
|
'linux_path_xkbcommon%': '/usr/local',
|
|
|
|
'linux_lib_ssl%': '/usr/local/ssl/lib/libssl.a',
|
|
|
|
'linux_lib_crypto%': '/usr/local/ssl/lib/libcrypto.a',
|
2017-09-28 09:40:26 +00:00
|
|
|
'linux_lib_icu%': 'libicutu.a libicui18n.a libicuuc.a libicudata.a',
|
2016-08-10 19:36:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'conditions' : [
|
|
|
|
[ 'build_win', {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalDependencies': [
|
2016-08-28 19:36:51 +00:00
|
|
|
'<@(qt_libs_debug)',
|
2016-08-10 19:36:00 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
2016-08-28 19:36:51 +00:00
|
|
|
[ 'build_mac', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'<@(qt_libs_debug)',
|
|
|
|
'/usr/local/lib/libz.a',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-08-10 19:36:00 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'Release': {
|
|
|
|
'conditions' : [
|
|
|
|
[ 'build_win', {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalDependencies': [
|
2016-08-28 19:36:51 +00:00
|
|
|
'<@(qt_libs_release)',
|
2016-08-10 19:36:00 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
2016-08-28 19:36:51 +00:00
|
|
|
[ 'build_mac', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'<@(qt_libs_release)',
|
|
|
|
'/usr/local/lib/libz.a',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-08-10 19:36:00 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'<(qt_loc)/include',
|
2016-09-09 06:15:11 +00:00
|
|
|
'<(qt_loc)/include/QtCore',
|
|
|
|
'<(qt_loc)/include/QtGui',
|
2017-09-27 11:09:46 +00:00
|
|
|
'<(qt_loc)/include/QtDBus',
|
2016-09-09 06:15:11 +00:00
|
|
|
'<(qt_loc)/include/QtCore/<(qt_version)',
|
|
|
|
'<(qt_loc)/include/QtGui/<(qt_version)',
|
2016-08-10 19:36:00 +00:00
|
|
|
'<(qt_loc)/include/QtCore/<(qt_version)/QtCore',
|
|
|
|
'<(qt_loc)/include/QtGui/<(qt_version)/QtGui',
|
|
|
|
],
|
|
|
|
'library_dirs': [
|
|
|
|
'<(qt_loc)/lib',
|
|
|
|
'<(qt_loc)/plugins',
|
2016-08-28 19:36:51 +00:00
|
|
|
'<(qt_loc)/plugins/bearer',
|
|
|
|
'<(qt_loc)/plugins/platforms',
|
|
|
|
'<(qt_loc)/plugins/imageformats',
|
2016-08-10 19:36:00 +00:00
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'QT_WIDGETS_LIB',
|
|
|
|
'QT_NETWORK_LIB',
|
|
|
|
'QT_GUI_LIB',
|
|
|
|
'QT_CORE_LIB',
|
|
|
|
],
|
2016-09-09 06:15:11 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'build_linux', {
|
2017-09-28 09:40:26 +00:00
|
|
|
'dependencies': [
|
|
|
|
'<(DEPTH)/linux_glibc_wraps.gyp:linux_glibc_wraps',
|
|
|
|
],
|
2016-09-15 10:50:43 +00:00
|
|
|
'library_dirs': [
|
|
|
|
'<(qt_loc)/plugins/platforminputcontexts',
|
|
|
|
],
|
2016-09-09 06:15:11 +00:00
|
|
|
'libraries': [
|
2017-09-28 09:40:26 +00:00
|
|
|
'<(PRODUCT_DIR)/obj.target/liblinux_glibc_wraps.a',
|
2016-10-09 07:43:56 +00:00
|
|
|
'<(linux_path_xkbcommon)/lib/libxkbcommon.a',
|
2016-09-09 06:15:11 +00:00
|
|
|
'<@(qt_libs_release)',
|
2016-10-09 07:43:56 +00:00
|
|
|
'<(linux_lib_ssl)',
|
|
|
|
'<(linux_lib_crypto)',
|
2016-10-17 20:55:31 +00:00
|
|
|
'<!@(python -c "for s in \'<(linux_lib_icu)\'.split(\' \'): print(s)")',
|
2017-08-30 17:36:12 +00:00
|
|
|
'-lxcb',
|
|
|
|
'-lX11',
|
|
|
|
'-lX11-xcb',
|
|
|
|
'-ldbus-1',
|
|
|
|
'-ldl',
|
|
|
|
'-lgthread-2.0',
|
|
|
|
'-lglib-2.0',
|
|
|
|
'-lpthread',
|
2016-09-09 06:15:11 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(qt_loc)/mkspecs/linux-g++',
|
|
|
|
],
|
|
|
|
'ldflags': [
|
|
|
|
'-static-libstdc++',
|
|
|
|
'-pthread',
|
|
|
|
'-rdynamic',
|
|
|
|
],
|
|
|
|
}],
|
2017-02-15 08:50:11 +00:00
|
|
|
[ 'build_mac', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-lcups',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-09-09 06:15:11 +00:00
|
|
|
],
|
2016-08-10 19:36:00 +00:00
|
|
|
}
|