2016-08-10 19:36:00 +00:00
|
|
|
# This file is part of Telegram Desktop,
|
|
|
|
# the official desktop version of Telegram messaging app, see https://telegram.org
|
|
|
|
#
|
|
|
|
# Telegram Desktop is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# It is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# In addition, as a special exception, the copyright holders give permission
|
|
|
|
# to link the code of portions of this program with the OpenSSL library.
|
|
|
|
#
|
|
|
|
# Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
|
|
|
# Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
|
|
|
|
|
|
|
{
|
2016-08-30 02:27:02 +00:00
|
|
|
'includes': [
|
|
|
|
'common.gypi',
|
|
|
|
],
|
2016-08-13 17:43:21 +00:00
|
|
|
'targets': [{
|
|
|
|
'target_name': 'Telegram',
|
|
|
|
'variables': {
|
2016-10-09 07:43:56 +00:00
|
|
|
'variables': {
|
|
|
|
'libs_loc': '../../../Libraries',
|
|
|
|
},
|
|
|
|
'libs_loc': '<(libs_loc)',
|
2016-08-13 17:43:21 +00:00
|
|
|
'src_loc': '../SourceFiles',
|
|
|
|
'res_loc': '../Resources',
|
2017-03-10 11:22:23 +00:00
|
|
|
'submodules_loc': '../../third_party',
|
2016-10-17 14:57:14 +00:00
|
|
|
'third_party_loc': '../ThirdParty',
|
|
|
|
'minizip_loc': '<(third_party_loc)/minizip',
|
|
|
|
'sp_media_key_tap_loc': '<(third_party_loc)/SPMediaKeyTap',
|
2016-08-14 18:05:10 +00:00
|
|
|
'style_files': [
|
2016-10-28 12:44:28 +00:00
|
|
|
'<(res_loc)/colors.palette',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<(res_loc)/basic.style',
|
|
|
|
'<(src_loc)/boxes/boxes.style',
|
|
|
|
'<(src_loc)/dialogs/dialogs.style',
|
|
|
|
'<(src_loc)/history/history.style',
|
2016-10-27 14:10:28 +00:00
|
|
|
'<(src_loc)/intro/intro.style',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<(src_loc)/media/view/mediaview.style',
|
2016-09-15 16:32:49 +00:00
|
|
|
'<(src_loc)/media/player/media_player.style',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<(src_loc)/overview/overview.style',
|
|
|
|
'<(src_loc)/profile/profile.style',
|
2016-08-16 16:53:10 +00:00
|
|
|
'<(src_loc)/settings/settings.style',
|
2016-09-09 15:52:46 +00:00
|
|
|
'<(src_loc)/stickers/stickers.style',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<(src_loc)/ui/widgets/widgets.style',
|
2016-10-04 18:18:08 +00:00
|
|
|
'<(src_loc)/window/window.style',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
2016-08-30 02:27:02 +00:00
|
|
|
'langpacks': [
|
|
|
|
'en',
|
|
|
|
'de',
|
|
|
|
'es',
|
|
|
|
'it',
|
|
|
|
'nl',
|
|
|
|
'ko',
|
|
|
|
'pt-BR',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
2017-02-19 11:02:35 +00:00
|
|
|
'build_defines%': '',
|
2017-03-13 10:02:28 +00:00
|
|
|
'list_sources_command': 'python <(DEPTH)/list_sources.py --input <(DEPTH)/telegram_sources.txt --replace src_loc=<(src_loc)',
|
2016-08-13 17:43:21 +00:00
|
|
|
},
|
|
|
|
'includes': [
|
2016-09-02 16:28:18 +00:00
|
|
|
'common_executable.gypi',
|
2016-08-28 19:36:51 +00:00
|
|
|
'telegram_qrc.gypi',
|
|
|
|
'telegram_win.gypi',
|
|
|
|
'telegram_mac.gypi',
|
|
|
|
'telegram_linux.gypi',
|
2016-08-13 17:43:21 +00:00
|
|
|
'qt.gypi',
|
2016-09-09 06:15:11 +00:00
|
|
|
'qt_rcc.gypi',
|
2016-08-14 18:05:10 +00:00
|
|
|
'codegen_rules.gypi',
|
2016-08-13 17:43:21 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'dependencies': [
|
|
|
|
'codegen.gyp:codegen_style',
|
|
|
|
'codegen.gyp:codegen_numbers',
|
|
|
|
'codegen.gyp:MetaLang',
|
2016-08-14 18:05:10 +00:00
|
|
|
'utils.gyp:Updater',
|
2016-08-13 17:43:21 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'defines': [
|
|
|
|
'AL_LIBTYPE_STATIC',
|
2017-02-18 19:23:50 +00:00
|
|
|
'<!@(python -c "for s in \'<(build_defines)\'.split(\',\'): print(s)")',
|
2016-08-13 17:43:21 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'<(src_loc)',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
2016-10-18 11:48:03 +00:00
|
|
|
'<(libs_loc)/breakpad/src',
|
2016-08-13 17:43:21 +00:00
|
|
|
'<(libs_loc)/lzma/C',
|
|
|
|
'<(libs_loc)/libexif-0.6.20',
|
|
|
|
'<(libs_loc)/zlib-1.2.8',
|
|
|
|
'<(libs_loc)/ffmpeg',
|
|
|
|
'<(libs_loc)/openal-soft/include',
|
2016-08-28 19:36:51 +00:00
|
|
|
'<(minizip_loc)',
|
2016-10-17 14:57:14 +00:00
|
|
|
'<(sp_media_key_tap_loc)',
|
2017-03-10 11:22:23 +00:00
|
|
|
'<(submodules_loc)/GSL/include',
|
2017-03-10 14:06:10 +00:00
|
|
|
'<(submodules_loc)/variant/include',
|
2016-08-13 17:43:21 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2016-08-14 18:05:10 +00:00
|
|
|
'<@(qrc_files)',
|
|
|
|
'<@(style_files)',
|
2017-03-13 10:02:28 +00:00
|
|
|
'<!@(<(list_sources_command) <(qt_moc_list_sources_arg))',
|
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'<!@(<(list_sources_command) <(qt_moc_list_sources_arg) --exclude_for <(build_os))',
|
2016-08-13 17:43:21 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2016-08-14 18:05:10 +00:00
|
|
|
[ '"<(official_build_target)" != ""', {
|
2016-09-12 10:17:20 +00:00
|
|
|
'defines': [
|
|
|
|
'CUSTOM_API_ID',
|
|
|
|
],
|
2016-08-14 18:05:10 +00:00
|
|
|
'dependencies': [
|
|
|
|
'utils.gyp:Packer',
|
|
|
|
],
|
|
|
|
}],
|
2016-08-13 17:43:21 +00:00
|
|
|
],
|
|
|
|
}],
|
2016-08-10 19:36:00 +00:00
|
|
|
}
|