forked from TNOCS/rvo2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
45 lines (44 loc) · 1.13 KB
/
binding.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
{
'variables': {
'module_name%': 'rvo2'
},
'targets': [
{
'target_name': '<(module_name)',
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
'cflags': [ '-Wall -O3' ],
'cflags_cc!': [ '-fno-exceptions' ],
'sources': [ 'rvo2_wrap.cxx', 'src/Agent.cpp', 'src/KdTree.cpp', 'src/Obstacle.cpp', 'src/RVOSimulator.cpp' ],
'conditions': [
['OS=="linux"', {
'cflags': [
'-fopenmp'
],
'libraries': [
'-lgomp'
]
}],
['OS=="mac"', {
"xcode_settings": {
"CLANG_CXX_LANGUAGE_STANDARD": "c++11",
"CLANG_CXX_LIBRARY": "libc++",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"GCC_ENABLE_CPP_RTTI": "YES",
"MACOSX_DEPLOYMENT_TARGET": "10.9"
}
}]
],
'configurations': {
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
'AdditionalOptions': [
'/openmp', # compile across multiple CPUs
],
}
}
}
}
}]
}