2014-07-25 12:55:00 -07:00
|
|
|
{
|
|
|
|
|
'targets': [
|
2017-06-21 17:26:52 -07:00
|
|
|
{
|
|
|
|
|
'target_name': 'benchmarks',
|
2017-07-06 11:49:32 -07:00
|
|
|
'default_configuration': 'Release',
|
2017-06-21 17:26:52 -07:00
|
|
|
'type': 'executable',
|
|
|
|
|
'dependencies': [
|
|
|
|
|
'project.gyp:runtime',
|
|
|
|
|
'project.gyp:compiler'
|
|
|
|
|
],
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'src',
|
|
|
|
|
'test',
|
|
|
|
|
'externals/utf8proc',
|
|
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'test/benchmarks.cc',
|
|
|
|
|
'test/helpers/file_helpers.cc',
|
|
|
|
|
'test/helpers/load_language.cc',
|
|
|
|
|
'test/helpers/read_test_entries.cc',
|
|
|
|
|
'test/helpers/stderr_logger.cc',
|
|
|
|
|
],
|
|
|
|
|
},
|
2014-07-25 12:55:00 -07:00
|
|
|
{
|
2016-01-15 11:19:24 -08:00
|
|
|
'target_name': 'tests',
|
2017-07-06 11:49:32 -07:00
|
|
|
'default_configuration': 'Test',
|
2014-07-25 12:55:00 -07:00
|
|
|
'type': 'executable',
|
|
|
|
|
'dependencies': [
|
2016-01-15 11:19:24 -08:00
|
|
|
'project.gyp:runtime',
|
2014-07-25 12:55:00 -07:00
|
|
|
'project.gyp:compiler'
|
|
|
|
|
],
|
|
|
|
|
'include_dirs': [
|
|
|
|
|
'src',
|
2017-03-09 20:40:01 -08:00
|
|
|
'test',
|
2014-07-25 12:55:00 -07:00
|
|
|
'externals/bandit',
|
2016-01-15 11:19:24 -08:00
|
|
|
'externals/utf8proc',
|
2017-06-30 21:55:50 -07:00
|
|
|
'externals/crypto-algorithms',
|
2014-07-25 12:55:00 -07:00
|
|
|
],
|
|
|
|
|
'sources': [
|
2017-07-27 16:42:52 -07:00
|
|
|
'test/compiler/build_tables/lex_item_test.cc',
|
|
|
|
|
'test/compiler/build_tables/parse_item_set_builder_test.cc',
|
|
|
|
|
'test/compiler/build_tables/rule_can_be_blank_test.cc',
|
|
|
|
|
'test/compiler/prepare_grammar/expand_repeats_test.cc',
|
|
|
|
|
'test/compiler/prepare_grammar/expand_tokens_test.cc',
|
|
|
|
|
'test/compiler/prepare_grammar/extract_choices_test.cc',
|
|
|
|
|
'test/compiler/prepare_grammar/extract_tokens_test.cc',
|
|
|
|
|
'test/compiler/prepare_grammar/flatten_grammar_test.cc',
|
|
|
|
|
'test/compiler/prepare_grammar/intern_symbols_test.cc',
|
|
|
|
|
'test/compiler/prepare_grammar/parse_regex_test.cc',
|
|
|
|
|
'test/compiler/rules/character_set_test.cc',
|
2018-03-21 11:37:08 -07:00
|
|
|
'test/compiler/rules/rule_test.cc',
|
2017-07-27 16:42:52 -07:00
|
|
|
'test/compiler/util/string_helpers_test.cc',
|
|
|
|
|
'test/helpers/file_helpers.cc',
|
|
|
|
|
'test/helpers/load_language.cc',
|
|
|
|
|
'test/helpers/point_helpers.cc',
|
|
|
|
|
'test/helpers/random_helpers.cc',
|
|
|
|
|
'test/helpers/read_test_entries.cc',
|
|
|
|
|
'test/helpers/record_alloc.cc',
|
|
|
|
|
'test/helpers/scope_sequence.cc',
|
|
|
|
|
'test/helpers/spy_input.cc',
|
|
|
|
|
'test/helpers/spy_logger.cc',
|
|
|
|
|
'test/helpers/stderr_logger.cc',
|
|
|
|
|
'test/helpers/stream_methods.cc',
|
|
|
|
|
'test/helpers/tree_helpers.cc',
|
|
|
|
|
'test/integration/fuzzing-examples.cc',
|
|
|
|
|
'test/integration/real_grammars.cc',
|
|
|
|
|
'test/integration/test_grammars.cc',
|
|
|
|
|
'test/runtime/language_test.cc',
|
|
|
|
|
'test/runtime/node_test.cc',
|
|
|
|
|
'test/runtime/parser_test.cc',
|
|
|
|
|
'test/runtime/stack_test.cc',
|
2018-05-10 15:11:14 -07:00
|
|
|
'test/runtime/subtree_test.cc',
|
2018-05-10 22:22:37 -07:00
|
|
|
'test/runtime/tree_test.cc',
|
2017-03-09 20:40:01 -08:00
|
|
|
'test/tests.cc',
|
2016-01-15 11:19:24 -08:00
|
|
|
],
|
2017-07-06 11:49:32 -07:00
|
|
|
'cflags': [
|
|
|
|
|
'-g',
|
|
|
|
|
'-O0',
|
|
|
|
|
'-Wall',
|
|
|
|
|
'-Wextra',
|
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
|
'-Wno-unknown-pragmas',
|
|
|
|
|
],
|
|
|
|
|
'ldflags': ['-g'],
|
|
|
|
|
'xcode_settings': {
|
|
|
|
|
'OTHER_LDFLAGS': ['-g'],
|
|
|
|
|
'OTHER_CPLUSPLUSFLAGS': ['-fsanitize=address'],
|
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '0',
|
|
|
|
|
'WARNING_CFLAGS': [
|
|
|
|
|
'-Wall',
|
|
|
|
|
'-Wextra',
|
|
|
|
|
'-Wno-unused-parameter'
|
|
|
|
|
],
|
|
|
|
|
},
|
2017-07-05 17:27:32 -07:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
'target_defaults': {
|
|
|
|
|
'configurations': {'Test': {}, 'Release': {}},
|
|
|
|
|
'cflags_cc': ['-std=c++14'],
|
2017-08-08 12:59:37 -07:00
|
|
|
'conditions': [
|
|
|
|
|
['OS=="linux"', {
|
2018-05-11 17:19:16 -07:00
|
|
|
'libraries': ['-ldl', '-lpthread'],
|
2017-08-08 12:59:37 -07:00
|
|
|
}]
|
|
|
|
|
],
|
2017-07-05 17:27:32 -07:00
|
|
|
'xcode_settings': {
|
|
|
|
|
'CLANG_CXX_LANGUAGE_STANDARD': 'c++14',
|
|
|
|
|
'ALWAYS_SEARCH_USER_PATHS': 'NO',
|
2017-07-06 11:49:32 -07:00
|
|
|
}
|
2017-07-05 17:27:32 -07:00
|
|
|
}
|
2014-07-25 12:55:00 -07:00
|
|
|
}
|