2017-08-30 17:36:12 +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.
|
2017-08-30 17:36:12 +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
|
2017-08-30 17:36:12 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
'includes': [
|
|
|
|
'../common.gypi',
|
|
|
|
],
|
|
|
|
'variables': {
|
|
|
|
'libs_loc': '../../../../Libraries',
|
|
|
|
'src_loc': '../../SourceFiles',
|
|
|
|
'submodules_loc': '../../ThirdParty',
|
|
|
|
'mac_target': '10.10',
|
|
|
|
'list_tests_command': 'python <(DEPTH)/tests/list_tests.py --input <(DEPTH)/tests/tests_list.txt',
|
|
|
|
},
|
|
|
|
'targets': [{
|
|
|
|
'target_name': 'tests',
|
|
|
|
'type': 'none',
|
|
|
|
'includes': [
|
|
|
|
'../common.gypi',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'<!@(<(list_tests_command))',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<!@(<(list_tests_command) --sources)',
|
|
|
|
],
|
|
|
|
'rules': [{
|
|
|
|
'rule_name': 'run_tests',
|
|
|
|
'extension': 'test',
|
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT)<(exe_ext)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).timestamp',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT)<(exe_ext)',
|
|
|
|
'--touch', '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).timestamp',
|
|
|
|
],
|
|
|
|
'message': 'Running <(RULE_INPUT_ROOT)..',
|
|
|
|
}]
|
|
|
|
}, {
|
2017-09-03 15:57:51 +00:00
|
|
|
'target_name': 'tests_algorithm',
|
2017-08-30 17:36:12 +00:00
|
|
|
'includes': [
|
|
|
|
'common_test.gypi',
|
|
|
|
],
|
|
|
|
'sources': [
|
2017-09-03 15:57:51 +00:00
|
|
|
'<(src_loc)/base/algorithm.h',
|
|
|
|
'<(src_loc)/base/algorithm_tests.cpp',
|
2017-08-30 17:36:12 +00:00
|
|
|
],
|
|
|
|
}, {
|
2017-09-03 15:57:51 +00:00
|
|
|
'target_name': 'tests_flags',
|
2017-08-30 17:36:12 +00:00
|
|
|
'includes': [
|
|
|
|
'common_test.gypi',
|
|
|
|
],
|
|
|
|
'sources': [
|
2017-09-03 15:57:51 +00:00
|
|
|
'<(src_loc)/base/flags.h',
|
|
|
|
'<(src_loc)/base/flags_tests.cpp',
|
2017-08-30 17:36:12 +00:00
|
|
|
],
|
2017-08-30 20:42:03 +00:00
|
|
|
}, {
|
2017-09-03 15:57:51 +00:00
|
|
|
'target_name': 'tests_flat_map',
|
2017-08-30 20:42:03 +00:00
|
|
|
'includes': [
|
|
|
|
'common_test.gypi',
|
|
|
|
],
|
|
|
|
'sources': [
|
2017-09-03 15:57:51 +00:00
|
|
|
'<(src_loc)/base/flat_map.h',
|
|
|
|
'<(src_loc)/base/flat_map_tests.cpp',
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'target_name': 'tests_flat_set',
|
|
|
|
'includes': [
|
|
|
|
'common_test.gypi',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'<(src_loc)/base/flat_set.h',
|
|
|
|
'<(src_loc)/base/flat_set_tests.cpp',
|
2017-08-30 20:42:03 +00:00
|
|
|
],
|
2017-09-03 12:44:21 +00:00
|
|
|
}, {
|
2017-09-12 13:58:14 +00:00
|
|
|
'target_name': 'tests_rpl',
|
2017-09-03 12:44:21 +00:00
|
|
|
'includes': [
|
|
|
|
'common_test.gypi',
|
|
|
|
],
|
|
|
|
'sources': [
|
2017-09-18 16:39:45 +00:00
|
|
|
'<(src_loc)/rpl/details/callable.h',
|
2017-09-27 11:16:05 +00:00
|
|
|
'<(src_loc)/rpl/details/superset_type.h',
|
2017-09-18 16:39:45 +00:00
|
|
|
'<(src_loc)/rpl/details/type_list.h',
|
2017-09-19 14:51:01 +00:00
|
|
|
'<(src_loc)/rpl/after_next.h',
|
2017-09-12 13:58:14 +00:00
|
|
|
'<(src_loc)/rpl/before_next.h',
|
2017-09-18 16:39:45 +00:00
|
|
|
'<(src_loc)/rpl/combine.h',
|
2017-09-20 12:24:13 +00:00
|
|
|
'<(src_loc)/rpl/combine_previous.h',
|
2017-09-12 13:58:14 +00:00
|
|
|
'<(src_loc)/rpl/complete.h',
|
2017-09-03 12:44:21 +00:00
|
|
|
'<(src_loc)/rpl/consumer.h',
|
2017-09-12 13:58:14 +00:00
|
|
|
'<(src_loc)/rpl/deferred.h',
|
|
|
|
'<(src_loc)/rpl/distinct_until_changed.h',
|
2017-09-03 15:57:51 +00:00
|
|
|
'<(src_loc)/rpl/event_stream.h',
|
2017-09-12 13:58:14 +00:00
|
|
|
'<(src_loc)/rpl/fail.h',
|
|
|
|
'<(src_loc)/rpl/filter.h',
|
|
|
|
'<(src_loc)/rpl/flatten_latest.h',
|
2017-09-03 12:44:21 +00:00
|
|
|
'<(src_loc)/rpl/lifetime.h',
|
2017-09-12 13:58:14 +00:00
|
|
|
'<(src_loc)/rpl/map.h',
|
2017-09-18 16:39:45 +00:00
|
|
|
'<(src_loc)/rpl/mappers.h',
|
2017-10-20 16:18:26 +00:00
|
|
|
'<(src_loc)/rpl/merge.h',
|
2017-09-12 13:58:14 +00:00
|
|
|
'<(src_loc)/rpl/never.h',
|
|
|
|
'<(src_loc)/rpl/operators_tests.cpp',
|
2017-09-03 12:44:21 +00:00
|
|
|
'<(src_loc)/rpl/producer.h',
|
|
|
|
'<(src_loc)/rpl/producer_tests.cpp',
|
2017-09-21 19:21:33 +00:00
|
|
|
'<(src_loc)/rpl/range.h',
|
2017-09-12 13:58:14 +00:00
|
|
|
'<(src_loc)/rpl/rpl.h',
|
2017-10-01 09:39:07 +00:00
|
|
|
'<(src_loc)/rpl/take.h',
|
2017-09-12 13:58:14 +00:00
|
|
|
'<(src_loc)/rpl/then.h',
|
2017-09-27 11:16:05 +00:00
|
|
|
'<(src_loc)/rpl/type_erased.h',
|
2017-09-19 14:51:01 +00:00
|
|
|
'<(src_loc)/rpl/variable.h',
|
2017-10-22 12:07:57 +00:00
|
|
|
'<(src_loc)/rpl/variable_tests.cpp',
|
2017-09-03 12:44:21 +00:00
|
|
|
],
|
2017-08-30 17:36:12 +00:00
|
|
|
}],
|
|
|
|
}
|