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
|
|
|
|
|
|
|
{
|
|
|
|
'actions': [{
|
|
|
|
'action_name': 'update_dependent_styles',
|
|
|
|
'inputs': [
|
|
|
|
'<(DEPTH)/update_dependent.py',
|
|
|
|
'<@(style_files)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/update_dependent_styles.timestamp',
|
|
|
|
],
|
|
|
|
'action': [
|
2017-03-13 10:02:28 +00:00
|
|
|
'python', '<(DEPTH)/update_dependent.py', '--styles',
|
2017-05-05 09:25:06 +00:00
|
|
|
'-I', '<(res_loc)', '-I', '<(src_loc)',
|
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)/update_dependent_styles.timestamp',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<@(style_files)',
|
|
|
|
],
|
|
|
|
'message': 'Updating dependent style files..',
|
|
|
|
}, {
|
|
|
|
'action_name': 'update_dependent_qrc',
|
|
|
|
'inputs': [
|
|
|
|
'<(DEPTH)/update_dependent.py',
|
|
|
|
'<@(qrc_files)',
|
2017-03-13 10:02:28 +00:00
|
|
|
'<!@(python <(DEPTH)/update_dependent.py --qrc_list <@(qrc_files))',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/update_dependent_qrc.timestamp',
|
|
|
|
],
|
|
|
|
'action': [
|
2017-03-13 10:02:28 +00:00
|
|
|
'python', '<(DEPTH)/update_dependent.py', '--qrc',
|
2017-05-05 09:25:06 +00:00
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)/update_dependent_qrc.timestamp',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<@(qrc_files)',
|
|
|
|
],
|
|
|
|
'message': 'Updating dependent qrc files..',
|
2016-10-28 12:44:28 +00:00
|
|
|
}, {
|
|
|
|
'action_name': 'codegen_palette',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/codegen_style<(exe_ext)',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/update_dependent_styles.timestamp',
|
|
|
|
'<(res_loc)/colors.palette',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/styles/palette.h',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/styles/palette.cpp',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'<(PRODUCT_DIR)/codegen_style<(exe_ext)',
|
2017-05-05 09:25:06 +00:00
|
|
|
'-I', '<(res_loc)', '-I', '<(src_loc)',
|
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)/styles',
|
2017-06-02 11:46:02 +00:00
|
|
|
'-w', '<(PRODUCT_DIR)/..',
|
2016-10-28 12:44:28 +00:00
|
|
|
|
|
|
|
# GYP/Ninja bug workaround: if we specify just <(RULE_INPUT_PATH)
|
|
|
|
# the <(RULE_INPUT_ROOT) variables won't be available in Ninja,
|
|
|
|
# and the 'message' will be just 'codegen_style-ing .style..'
|
|
|
|
# Looks like the using the <(RULE_INPUT_ROOT) here "exports" it
|
|
|
|
# for using in the 'message' field.
|
|
|
|
|
|
|
|
'<(res_loc)/colors.palette',
|
|
|
|
],
|
|
|
|
'message': 'codegen_palette-ing colors..',
|
|
|
|
'process_outputs_as_sources': 1,
|
2016-08-14 18:05:10 +00:00
|
|
|
}, {
|
|
|
|
'action_name': 'codegen_lang',
|
|
|
|
'inputs': [
|
2017-04-12 19:17:55 +00:00
|
|
|
'<(PRODUCT_DIR)/codegen_lang<(exe_ext)',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<(res_loc)/langs/lang.strings',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/lang_auto.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/lang_auto.h',
|
|
|
|
],
|
|
|
|
'action': [
|
2017-04-12 19:17:55 +00:00
|
|
|
'<(PRODUCT_DIR)/codegen_lang<(exe_ext)',
|
2017-05-05 09:25:06 +00:00
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)', '<(res_loc)/langs/lang.strings',
|
2017-06-02 11:46:02 +00:00
|
|
|
'-w', '<(PRODUCT_DIR)/..',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
'message': 'codegen_lang-ing lang.strings..',
|
|
|
|
'process_outputs_as_sources': 1,
|
|
|
|
}, {
|
|
|
|
'action_name': 'codegen_numbers',
|
|
|
|
'inputs': [
|
2016-08-28 19:36:51 +00:00
|
|
|
'<(PRODUCT_DIR)/codegen_numbers<(exe_ext)',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<(res_loc)/numbers.txt',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/numbers.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/numbers.h',
|
|
|
|
],
|
|
|
|
'action': [
|
2016-08-28 19:36:51 +00:00
|
|
|
'<(PRODUCT_DIR)/codegen_numbers<(exe_ext)',
|
2017-05-05 09:25:06 +00:00
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)', '<(res_loc)/numbers.txt',
|
2017-06-02 11:46:02 +00:00
|
|
|
'-w', '<(PRODUCT_DIR)/..',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
'message': 'codegen_numbers-ing numbers.txt..',
|
|
|
|
'process_outputs_as_sources': 1,
|
2017-03-16 09:37:56 +00:00
|
|
|
}, {
|
|
|
|
'action_name': 'codegen_scheme',
|
|
|
|
'inputs': [
|
|
|
|
'<(src_loc)/codegen/scheme/codegen_scheme.py',
|
|
|
|
'<(res_loc)/scheme.tl',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/scheme.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/scheme.h',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python', '<(src_loc)/codegen/scheme/codegen_scheme.py',
|
2017-05-05 09:25:06 +00:00
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)', '<(res_loc)/scheme.tl',
|
2017-03-16 09:37:56 +00:00
|
|
|
],
|
|
|
|
'message': 'codegen_scheme-ing scheme.tl..',
|
|
|
|
'process_outputs_as_sources': 1,
|
2017-03-31 19:08:25 +00:00
|
|
|
}, {
|
|
|
|
'action_name': 'codegen_emoji',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/codegen_emoji<(exe_ext)',
|
2017-07-19 18:37:49 +00:00
|
|
|
'<(res_loc)/emoji_autocomplete.json',
|
2017-03-31 19:08:25 +00:00
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/emoji.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/emoji.h',
|
2017-07-24 16:18:39 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/emoji_suggestions_data.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/emoji_suggestions_data.h',
|
2017-03-31 19:08:25 +00:00
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'<(PRODUCT_DIR)/codegen_emoji<(exe_ext)',
|
2017-07-19 18:37:49 +00:00
|
|
|
'<(res_loc)/emoji_autocomplete.json',
|
2017-05-05 09:25:06 +00:00
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)',
|
2017-03-31 19:08:25 +00:00
|
|
|
],
|
|
|
|
'message': 'codegen_emoji-ing..',
|
|
|
|
'process_outputs_as_sources': 1,
|
2016-08-14 18:05:10 +00:00
|
|
|
}],
|
|
|
|
'rules': [{
|
|
|
|
'rule_name': 'codegen_style',
|
|
|
|
'extension': 'style',
|
|
|
|
'inputs': [
|
2016-08-28 19:36:51 +00:00
|
|
|
'<(PRODUCT_DIR)/codegen_style<(exe_ext)',
|
2016-08-14 18:05:10 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/update_dependent_styles.timestamp',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/styles/style_<(RULE_INPUT_ROOT).h',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/styles/style_<(RULE_INPUT_ROOT).cpp',
|
|
|
|
],
|
|
|
|
'action': [
|
2016-08-28 19:36:51 +00:00
|
|
|
'<(PRODUCT_DIR)/codegen_style<(exe_ext)',
|
2017-05-05 09:25:06 +00:00
|
|
|
'-I', '<(res_loc)', '-I', '<(src_loc)',
|
|
|
|
'-o', '<(SHARED_INTERMEDIATE_DIR)/styles',
|
2017-06-02 11:46:02 +00:00
|
|
|
'-w', '<(PRODUCT_DIR)/..',
|
2016-08-16 17:12:55 +00:00
|
|
|
|
|
|
|
# GYP/Ninja bug workaround: if we specify just <(RULE_INPUT_PATH)
|
|
|
|
# the <(RULE_INPUT_ROOT) variables won't be available in Ninja,
|
|
|
|
# and the 'message' will be just 'codegen_style-ing .style..'
|
|
|
|
# Looks like the using the <(RULE_INPUT_ROOT) here "exports" it
|
|
|
|
# for using in the 'message' field.
|
|
|
|
|
|
|
|
'<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
|
2016-08-14 18:05:10 +00:00
|
|
|
],
|
|
|
|
'message': 'codegen_style-ing <(RULE_INPUT_ROOT).style..',
|
|
|
|
'process_outputs_as_sources': 1,
|
|
|
|
}],
|
|
|
|
}
|