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': [
|
|
|
|
'common.gypi',
|
|
|
|
],
|
2016-08-14 18:05:10 +00:00
|
|
|
'targets': [{
|
|
|
|
'target_name': 'Updater',
|
|
|
|
'variables': {
|
|
|
|
'libs_loc': '../../../Libraries',
|
|
|
|
'src_loc': '../SourceFiles',
|
2016-08-14 18:41:31 +00:00
|
|
|
'res_loc': '../Resources',
|
2016-08-14 18:05:10 +00:00
|
|
|
},
|
|
|
|
'includes': [
|
|
|
|
'common_executable.gypi',
|
|
|
|
],
|
|
|
|
|
|
|
|
'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': {
|
|
|
|
'libs_loc': '../../../Libraries',
|
|
|
|
'src_loc': '../SourceFiles',
|
2016-08-28 19:36:51 +00:00
|
|
|
'mac_target': '10.10',
|
2016-08-14 18:05:10 +00:00
|
|
|
},
|
|
|
|
'includes': [
|
|
|
|
'common_executable.gypi',
|
|
|
|
'qt.gypi',
|
|
|
|
],
|
2016-08-28 19:36:51 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'build_win', {
|
|
|
|
'libraries': [
|
|
|
|
'libeay32',
|
|
|
|
'ssleay32',
|
|
|
|
'Crypt32',
|
|
|
|
'zlibstat',
|
|
|
|
'LzmaLib',
|
|
|
|
],
|
|
|
|
}],
|
2016-09-09 06:15:11 +00:00
|
|
|
[ 'build_linux', {
|
|
|
|
'libraries': [
|
|
|
|
'ssl',
|
|
|
|
'crypto',
|
|
|
|
'lzma',
|
|
|
|
],
|
|
|
|
}],
|
2016-09-15 10:50:43 +00:00
|
|
|
[ 'build_mac', {
|
|
|
|
'include_dirs': [
|
2017-10-13 19:23:19 +00:00
|
|
|
'<(libs_loc)/openssl/include'
|
2016-09-15 10:50:43 +00:00
|
|
|
],
|
|
|
|
'library_dirs': [
|
2017-10-13 19:23:19 +00:00
|
|
|
'<(libs_loc)/openssl',
|
2016-09-15 10:50:43 +00:00
|
|
|
],
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_LDFLAGS': [
|
|
|
|
'-lssl',
|
|
|
|
'-lcrypto',
|
|
|
|
'-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': [
|
2017-09-05 17:46:16 +00:00
|
|
|
'<(libs_loc)/openssl/Debug/include',
|
2016-08-28 19:36:51 +00:00
|
|
|
],
|
|
|
|
'library_dirs': [
|
2017-09-05 17:46:16 +00:00
|
|
|
'<(libs_loc)/openssl/Debug/lib',
|
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': [
|
|
|
|
'<(libs_loc)/openssl/Release/include',
|
|
|
|
],
|
|
|
|
'library_dirs': [
|
|
|
|
'<(libs_loc)/openssl/Release/lib',
|
|
|
|
'<(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
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
}
|