2018-06-02 14:29:21 +00:00
|
|
|
# This file is part of Telegram Desktop,
|
|
|
|
# the official desktop application for the Telegram messaging service.
|
|
|
|
#
|
|
|
|
# For license and copyright information please follow this link:
|
|
|
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
|
|
|
|
{
|
|
|
|
'includes': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'helpers/common/common.gypi',
|
2018-06-02 14:29:21 +00:00
|
|
|
],
|
|
|
|
'targets': [{
|
|
|
|
'target_name': 'lib_scheme',
|
|
|
|
'hard_dependency': 1,
|
|
|
|
'includes': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'helpers/common/library.gypi',
|
|
|
|
'helpers/modules/qt.gypi',
|
2018-06-02 14:29:21 +00:00
|
|
|
],
|
|
|
|
'variables': {
|
|
|
|
'src_loc': '../SourceFiles',
|
|
|
|
'res_loc': '../Resources',
|
|
|
|
},
|
|
|
|
'defines': [
|
|
|
|
],
|
2019-09-17 13:11:23 +00:00
|
|
|
'dependencies': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'<(submodules_loc)/lib_base/lib_base.gyp:lib_base',
|
2019-09-26 14:26:36 +00:00
|
|
|
'<(submodules_loc)/lib_tl/lib_tl.gyp:lib_tl',
|
2019-09-17 13:11:23 +00:00
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
2019-09-18 06:56:01 +00:00
|
|
|
'<(submodules_loc)/lib_base/lib_base.gyp:lib_base',
|
2019-09-26 14:26:36 +00:00
|
|
|
'<(submodules_loc)/lib_tl/lib_tl.gyp:lib_tl',
|
2019-09-17 13:11:23 +00:00
|
|
|
],
|
2018-06-02 14:29:21 +00:00
|
|
|
'include_dirs': [
|
|
|
|
'<(src_loc)',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
|
|
|
'<(submodules_loc)/GSL/include',
|
|
|
|
],
|
2019-09-17 13:11:23 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
|
|
|
],
|
|
|
|
},
|
2018-06-02 14:29:21 +00:00
|
|
|
'actions': [{
|
|
|
|
'action_name': 'codegen_scheme',
|
|
|
|
'inputs': [
|
|
|
|
'<(src_loc)/codegen/scheme/codegen_scheme.py',
|
2019-09-26 14:26:36 +00:00
|
|
|
'<(submodules_loc)/lib_tl/tl/generate_tl.py',
|
2019-08-08 10:15:16 +00:00
|
|
|
'<(res_loc)/tl/mtproto.tl',
|
|
|
|
'<(res_loc)/tl/api.tl',
|
2018-06-02 14:29:21 +00:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/scheme.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/scheme.h',
|
2019-11-14 15:29:45 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/scheme-dump_to_text.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/scheme-dump_to_text.h',
|
2018-06-02 14:29:21 +00:00
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python', '<(src_loc)/codegen/scheme/codegen_scheme.py',
|
2019-09-26 14:26:36 +00:00
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)/scheme',
|
2019-09-13 10:24:06 +00:00
|
|
|
'<(res_loc)/tl/mtproto.tl',
|
|
|
|
'<(res_loc)/tl/api.tl',
|
2018-06-02 14:29:21 +00:00
|
|
|
],
|
2019-08-08 10:15:16 +00:00
|
|
|
'message': 'codegen_scheme-ing *.tl..',
|
2018-06-02 14:29:21 +00:00
|
|
|
'process_outputs_as_sources': 1,
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
}
|