2016-08-14 18:05:10 +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-14 18:05:10 +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-14 18:05:10 +00:00
|
|
|
|
|
|
|
{
|
2016-08-30 02:27:02 +00:00
|
|
|
'includes': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'helpers/common/common.gypi',
|
2016-08-30 02:27:02 +00:00
|
|
|
],
|
2016-08-14 18:05:10 +00:00
|
|
|
'targets': [{
|
|
|
|
'target_name': 'Updater',
|
|
|
|
'variables': {
|
|
|
|
'src_loc': '../SourceFiles',
|
2016-08-14 18:41:31 +00:00
|
|
|
'res_loc': '../Resources',
|
2016-08-14 18:05:10 +00:00
|
|
|
},
|
|
|
|
'includes': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'helpers/common/executable.gypi',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'<(src_loc)',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<(src_loc)/_other/updater.cpp',
|
|
|
|
'<(src_loc)/_other/updater.h',
|
|
|
|
'<(src_loc)/_other/updater_linux.cpp',
|
|
|
|
'<(src_loc)/_other/updater_osx.m',
|
|
|
|
],
|
|
|
|
'conditions': [
|
2016-08-14 18:41:31 +00:00
|
|
|
[ 'build_win', {
|
2016-08-14 18:05:10 +00:00
|
|
|
'sources': [
|
|
|
|
'<(res_loc)/winrc/Updater.rc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ '"<(build_linux)" != "1"', {
|
|
|
|
'sources!': [
|
|
|
|
'<(src_loc)/_other/updater_linux.cpp',
|
|
|
|
],
|
2017-11-23 05:29:56 +00:00
|
|
|
}, {
|
|
|
|
'ldflags': [
|
|
|
|
'-static-libstdc++',
|
|
|
|
],
|
2016-08-14 18:05:10 +00:00
|
|
|
}],
|
|
|
|
[ '"<(build_mac)" != "1"', {
|
|
|
|
'sources!': [
|
|
|
|
'<(src_loc)/_other/updater_osx.m',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ '"<(build_win)" != "1"', {
|
|
|
|
'sources!': [
|
|
|
|
'<(src_loc)/_other/updater.cpp',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'target_name': 'Packer',
|
|
|
|
'variables': {
|
|
|
|
'src_loc': '../SourceFiles',
|
2019-10-11 06:32:26 +00:00
|
|
|
'mac_target': '10.12',
|
2016-08-14 18:05:10 +00:00
|
|
|
},
|
|
|
|
'includes': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'helpers/common/executable.gypi',
|
|
|
|
'helpers/modules/qt.gypi',
|
2019-10-11 06:32:26 +00:00
|
|
|
'helpers/modules/openssl.gypi',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
2016-08-28 19:36:51 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'build_win', {
|
|
|
|
'libraries': [
|
|
|
|
'zlibstat',
|
|
|
|
'LzmaLib',
|
|
|
|
],
|
|
|
|
}],
|
2016-09-09 06:15:11 +00:00
|
|
|
[ 'build_linux', {
|
|
|
|
'libraries': [
|
2019-10-11 06:32:26 +00:00
|
|
|
'<(linux_lib_ssl)',
|
|
|
|
'<(linux_lib_crypto)',
|
2016-09-09 06:15:11 +00:00
|
|
|
'lzma',
|
|
|
|
],
|
|
|
|
}],
|
2016-09-15 10:50:43 +00:00
|
|
|
[ 'build_mac', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-llzma',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(src_loc)',
|
|
|
|
'<(libs_loc)/lzma/C',
|
2017-09-05 17:46:16 +00:00
|
|
|
'<(libs_loc)/zlib',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<(src_loc)/_other/packer.cpp',
|
|
|
|
'<(src_loc)/_other/packer.h',
|
|
|
|
],
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
2016-08-28 19:36:51 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'build_win', {
|
|
|
|
'include_dirs': [
|
2019-06-24 11:43:42 +00:00
|
|
|
'<(libs_loc)/openssl/inc32',
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
'library_dirs': [
|
2019-06-24 11:43:42 +00:00
|
|
|
'<(libs_loc)/openssl/out32.dbg',
|
2016-08-28 19:36:51 +00:00
|
|
|
'<(libs_loc)/lzma/C/Util/LzmaLib/Debug',
|
2017-09-05 17:46:16 +00:00
|
|
|
'<(libs_loc)/zlib/contrib/vstudio/vc14/x86/ZlibStatDebug',
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'include_dirs': [
|
|
|
|
'/usr/local/include',
|
2017-10-13 19:23:19 +00:00
|
|
|
'<(libs_loc)/openssl/include'
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
'library_dirs': [
|
|
|
|
'/usr/local/lib',
|
|
|
|
],
|
|
|
|
}]
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'Release': {
|
2016-08-28 19:36:51 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'build_win', {
|
|
|
|
'include_dirs': [
|
2019-06-24 11:43:42 +00:00
|
|
|
'<(libs_loc)/openssl/inc32',
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
'library_dirs': [
|
2019-06-24 11:43:42 +00:00
|
|
|
'<(libs_loc)/openssl/out32',
|
2016-08-28 19:36:51 +00:00
|
|
|
'<(libs_loc)/lzma/C/Util/LzmaLib/Release',
|
2017-09-05 17:46:16 +00:00
|
|
|
'<(libs_loc)/zlib/contrib/vstudio/vc14/x86/ZlibStatReleaseWithoutAsm',
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'include_dirs': [
|
|
|
|
'/usr/local/include',
|
2017-10-13 19:23:19 +00:00
|
|
|
'<(libs_loc)/openssl/include'
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
'library_dirs': [
|
|
|
|
'/usr/local/lib',
|
|
|
|
],
|
|
|
|
}]
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
}
|