tree-sitter/tests.gyp
Max Brunsfeld 9682ef6c79 Rename examples directory to spec/fixtures
- I want to move away from having complete grammars for real languages
  (e.g. javascript, golang) in this repo. These languages take a long
  time to compile, and they now exist in their own repos
  (node-tree-sitter-javascript etc).
- I want to start testing more compiler edge cases through integration
  tests, so I want to put more small, weird grammars in here. That makes
  me not want to call the directory `examples`.
2014-09-10 13:31:06 -07:00

78 lines
1.5 KiB
Python

{
'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',
],
'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': {}},
'cflags': [
'-g',
'-O0',
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
'-Wno-unknown-pragmas',
],
'cflags_c': [
'-std=c99'
],
'cflags_cc': [
'-std=c++0x',
],
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'ALWAYS_SEARCH_USER_PATHS': 'NO',
'WARNING_CFLAGS': [
'-Wall',
'-Wextra',
'-Wno-unused-parameter'
],
},
}
}