-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
23 lines (23 loc) · 810 Bytes
/
binding.gyp
File metadata and controls
23 lines (23 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
'variables': {
'python_version': '3',
},
"targets": [
{
"target_name": "python",
"sources": [ "src/main.cc", "src/resolver.cc", "src/protocols/mapping.cc", "src/protocols/object.cc", "src/protocols/sequence.cc" ],
'conditions': [
['OS=="win"', {
'include_dirs': ['<!(python pythonpath.py include)'],
'libraries': ['<!(python pythonpath.py lib)']
}, {
'xcode_settings': {
'OTHER_CFLAGS': ['<!@(node python-config.js python<(python_version)-config --cflags)', '-std=c++11'],
},
'cflags': ['<!@(node python-config.js python<(python_version)-config --cflags)', '-std=c++11'],
'libraries': ['<!@(node python-config.js python<(python_version)-config --ldflags)'],
}]
]
}
]
}