tree-sitter/tests.gyp
2016-11-30 17:23:44 -08:00

58 lines
1.3 KiB
Python

{
'targets': [
{
'target_name': 'tests',
'type': 'executable',
'dependencies': [
'project.gyp:runtime',
'project.gyp:compiler'
],
'include_dirs': [
'src',
'spec',
'externals/bandit',
'externals/utf8proc',
],
'sources': [
'spec/specs.cc',
'<!@(find spec/compiler -name "*.cc")',
'<!@(find spec/runtime -name "*.cc")',
'<!@(find spec/integration -name "*.cc")',
'<!@(find spec/helpers -name "*.cc")',
],
'libraries': [
'-ldl'
],
'default_configuration': 'Test',
'configurations': {'Test': {}, 'Release': {}},
'cflags': [
'-g',
'-O0',
'-Wall',
'-Wextra',
'-Wno-unused-parameter',
'-Wno-unknown-pragmas',
],
'cflags_c': [
'-std=c99',
],
'cflags_cc': [
'-std=c++0x',
],
'ldflags': [
'-g',
],
'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'
],
},
}
]
}