tree-sitter/tests.gyp

72 lines
1.6 KiB
Text
Raw Normal View History

2014-07-25 12:55:00 -07:00
{
'targets': [
{
'target_name': 'tests',
2014-07-25 12:55:00 -07:00
'type': 'executable',
'dependencies': [
'project.gyp:runtime',
2014-07-25 12:55:00 -07:00
'project.gyp:compiler'
],
'include_dirs': [
'src',
'spec',
'externals/bandit',
'externals/utf8proc',
2014-07-25 12:55:00 -07:00
],
'sources': [
'spec/specs.cc',
'<!@(find spec/compiler -name "*.cc")',
'<!@(find spec/runtime -name "*.cc")',
'<!@(find spec/integration -name "*.cc")',
'<!@(find spec/helpers -name "*.cc")',
],
2016-01-15 11:28:22 -08:00
'libraries': [
'-ldl'
],
'default_configuration': 'Test',
'configurations': {'Test': {}, 'Release': {}},
'cflags': [
'-g',
'-O0',
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
'-Wno-unknown-pragmas',
2014-07-25 12:55:00 -07:00
],
'cflags_c': [
'-std=c99',
2014-07-25 12:55:00 -07:00
],
'cflags_cc': [
'-std=c++0x',
2014-07-25 12:55:00 -07:00
],
'ldflags': [
'-g',
2014-07-25 12:55:00 -07:00
],
'variables': {
'USE_LIBPROFILER%': 'true',
'USE_BOOST_REGEX%': 'false',
2014-07-25 12:55:00 -07:00
},
'conditions': [
['USE_BOOST_REGEX != "false"', {
'defines': ['USE_BOOST_REGEX'],
'libraries': ['-lboost_regex'],
}],
['USE_LIBPROFILER != "false"', {
'libraries': ['-lprofiler'],
2014-07-25 12:55:00 -07:00
}]
],
'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'
],
},
}
]
2014-07-25 12:55:00 -07:00
}