forked from tree-sitter/tree-sitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.gyp
92 lines (87 loc) · 1.84 KB
/
tests.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
'targets': [
{
'target_name': 'compiler_specs',
'type': 'executable',
'dependencies': [
'project.gyp:compiler'
],
'include_dirs': [
'src',
'spec',
'externals/bandit',
],
'sources': [
'<!@(find spec/compiler -name "*.cc")',
'<!@(find spec/fixtures/grammars -name "*.cc")',
],
},
{
'target_name': 'runtime_specs',
'type': 'executable',
'dependencies': [
'project.gyp:runtime'
],
'include_dirs': [
'src',
'examples',
'spec',
'externals/bandit',
'externals/utf8proc',
],
'sources': [
'<!@(find spec/runtime -name "*.cc")',
'<!@(find spec/fixtures/parsers -name "*.c")',
],
'variables': {
'USE_BOOST_REGEX%': 'false',
},
'conditions': [
['USE_BOOST_REGEX != "false"', {
'defines': ['USE_BOOST_REGEX'],
'libraries': ['-lboost_regex'],
}]
],
},
],
'target_defaults': {
'default_configuration': 'Debug',
'configurations': {'Debug': {}, 'Release': {}},
'cflags': [
'-g',
'-O0',
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
'-Wno-unknown-pragmas',
],
'cflags_c': [
'-std=c99',
],
'cflags_cc': [
'-std=c++0x',
],
'ldflags': [
'-g',
],
'variables': {
'USE_LIBPROFILER%': 'true',
},
'conditions': [
['USE_LIBPROFILER != "false"', {
'libraries': ['-lprofiler'],
}]
],
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'OTHER_LDFLAGS': ['-g'],
'GCC_OPTIMIZATION_LEVEL': '0',
'ALWAYS_SEARCH_USER_PATHS': 'NO',
'WARNING_CFLAGS': [
'-Wall',
'-Wextra',
'-Wno-unused-parameter'
],
},
}
}