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
|
|
|
|
|
|
|
{
|
2016-09-09 06:15:11 +00:00
|
|
|
'includes': [
|
2016-08-30 02:27:02 +00:00
|
|
|
'settings_win.gypi',
|
|
|
|
'settings_mac.gypi',
|
2016-09-09 06:15:11 +00:00
|
|
|
'settings_linux.gypi',
|
|
|
|
],
|
2016-08-10 19:36:00 +00:00
|
|
|
'variables': {
|
|
|
|
'variables': {
|
|
|
|
'variables': {
|
2016-08-28 19:36:51 +00:00
|
|
|
'variables': {
|
|
|
|
'variables': {
|
|
|
|
'build_os%': '<(OS)',
|
|
|
|
},
|
|
|
|
'build_os%': '<(build_os)',
|
|
|
|
'conditions': [
|
|
|
|
[ 'build_os == "win"', {
|
|
|
|
'build_win': 1,
|
|
|
|
}, {
|
|
|
|
'build_win': 0,
|
|
|
|
}],
|
|
|
|
[ 'build_os == "mac"', {
|
|
|
|
'build_mac': 1,
|
|
|
|
}, {
|
|
|
|
'build_mac': 0,
|
|
|
|
}],
|
|
|
|
[ 'build_os == "linux"', {
|
|
|
|
'build_linux': 1,
|
|
|
|
}, {
|
|
|
|
'build_linux': 0,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'build_os%': '<(build_os)',
|
|
|
|
'build_win%': '<(build_win)',
|
|
|
|
'build_mac%': '<(build_mac)',
|
|
|
|
'build_linux%': '<(build_linux)',
|
2016-08-10 19:36:00 +00:00
|
|
|
},
|
|
|
|
'build_os%': '<(build_os)',
|
2016-08-28 19:36:51 +00:00
|
|
|
'build_win%': '<(build_win)',
|
|
|
|
'build_mac%': '<(build_mac)',
|
|
|
|
'build_linux%': '<(build_linux)',
|
2016-08-30 02:46:57 +00:00
|
|
|
|
2017-04-19 09:44:07 +00:00
|
|
|
'official_build_target%': '',
|
2016-08-10 19:36:00 +00:00
|
|
|
},
|
|
|
|
'build_os%': '<(build_os)',
|
|
|
|
'build_win%': '<(build_win)',
|
|
|
|
'build_mac%': '<(build_mac)',
|
|
|
|
'build_linux%': '<(build_linux)',
|
2016-08-30 02:46:57 +00:00
|
|
|
'official_build_target%': '<(official_build_target)',
|
2016-08-10 19:36:00 +00:00
|
|
|
|
|
|
|
# GYP does not support per-configuration libraries :(
|
|
|
|
# So they will be emulated through additional link flags,
|
|
|
|
# which will contain <(ld_lib_prefix)LibraryName<(ld_lib_postfix)
|
|
|
|
'conditions': [
|
|
|
|
[ 'build_win', {
|
|
|
|
'ld_lib_prefix': '',
|
|
|
|
'ld_lib_postfix': '.lib',
|
2016-08-28 19:36:51 +00:00
|
|
|
'exe_ext': '.exe',
|
2016-08-10 19:36:00 +00:00
|
|
|
}, {
|
|
|
|
'ld_lib_prefix': '-l',
|
|
|
|
'ld_lib_postfix': '',
|
2016-08-28 19:36:51 +00:00
|
|
|
'exe_ext': '',
|
2016-08-10 19:36:00 +00:00
|
|
|
}],
|
2016-08-30 02:46:57 +00:00
|
|
|
[ '"<(official_build_target)" == "mac32"', {
|
|
|
|
'mac_target%': '10.6',
|
2016-08-30 05:24:16 +00:00
|
|
|
'build_macold': 1,
|
2016-08-30 02:46:57 +00:00
|
|
|
}, {
|
|
|
|
'mac_target%': '10.8',
|
2016-08-30 05:24:16 +00:00
|
|
|
'build_macold': 0,
|
2016-08-31 14:32:05 +00:00
|
|
|
}],
|
|
|
|
[ '"<(official_build_target)" == "macstore"', {
|
|
|
|
'build_macstore': 1,
|
|
|
|
}, {
|
|
|
|
'build_macstore': 0,
|
|
|
|
}],
|
2017-02-01 10:12:52 +00:00
|
|
|
[ '"<(official_build_target)" == "uwp"', {
|
|
|
|
'build_uwp': 1,
|
|
|
|
}, {
|
|
|
|
'build_uwp': 0,
|
|
|
|
}],
|
2016-08-10 19:36:00 +00:00
|
|
|
],
|
|
|
|
'ld_lib_prefix': '<(ld_lib_prefix)',
|
|
|
|
'ld_lib_postfix': '<(ld_lib_postfix)',
|
2016-08-28 19:36:51 +00:00
|
|
|
'exe_ext': '<(exe_ext)',
|
2016-08-10 19:36:00 +00:00
|
|
|
|
|
|
|
'library%': 'static_library',
|
2016-08-14 18:05:10 +00:00
|
|
|
|
2016-08-10 19:36:00 +00:00
|
|
|
},
|
|
|
|
|
2018-07-28 21:08:29 +00:00
|
|
|
'defines': [
|
|
|
|
'NOMINMAX'
|
|
|
|
],
|
2016-08-10 19:36:00 +00:00
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'defines': [
|
|
|
|
'_DEBUG',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'Release': {
|
|
|
|
'defines': [
|
|
|
|
'NDEBUG',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|