70 lines
1.8 KiB
Python
70 lines
1.8 KiB
Python
# 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': [
|
|
'helpers/common/common.gypi',
|
|
],
|
|
'targets': [{
|
|
'target_name': 'lib_scheme',
|
|
'hard_dependency': 1,
|
|
'includes': [
|
|
'helpers/common/library.gypi',
|
|
'helpers/modules/qt.gypi',
|
|
],
|
|
'variables': {
|
|
'src_loc': '../SourceFiles',
|
|
'res_loc': '../Resources',
|
|
},
|
|
'defines': [
|
|
],
|
|
'conditions': [[ 'build_macold', {
|
|
'xcode_settings': {
|
|
'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
|
|
},
|
|
'include_dirs': [
|
|
'/usr/local/macold/include/c++/v1',
|
|
],
|
|
}]],
|
|
'dependencies': [
|
|
'<(submodules_loc)/lib_base/lib_base.gyp:lib_base',
|
|
],
|
|
'export_dependent_settings': [
|
|
'<(submodules_loc)/lib_base/lib_base.gyp:lib_base',
|
|
],
|
|
'include_dirs': [
|
|
'<(src_loc)',
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
|
'<(submodules_loc)/GSL/include',
|
|
],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
|
],
|
|
},
|
|
'actions': [{
|
|
'action_name': 'codegen_scheme',
|
|
'inputs': [
|
|
'<(src_loc)/codegen/scheme/codegen_scheme.py',
|
|
'<(res_loc)/tl/mtproto.tl',
|
|
'<(res_loc)/tl/api.tl',
|
|
],
|
|
'outputs': [
|
|
'<(SHARED_INTERMEDIATE_DIR)/scheme.cpp',
|
|
'<(SHARED_INTERMEDIATE_DIR)/scheme.h',
|
|
],
|
|
'action': [
|
|
'python', '<(src_loc)/codegen/scheme/codegen_scheme.py',
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)',
|
|
'<(res_loc)/tl/mtproto.tl',
|
|
'<(res_loc)/tl/api.tl',
|
|
],
|
|
'message': 'codegen_scheme-ing *.tl..',
|
|
'process_outputs_as_sources': 1,
|
|
}],
|
|
}],
|
|
}
|