-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
30 lines (30 loc) · 1.07 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
{
'variables' : {'julia_config': '<!(julia -e "println(joinpath(dirname(JULIA_HOME), \\"share\\", \\"julia\\", \\"julia-config.jl\\"))")'},
"targets": [
{
"target_name": "julia",
"sources": [ "src/j2.cpp", "src/embedded.cpp" ],
"include_dirs": ["include"],
'libraries': ['<!@(<(julia_config) --ldlibs)'],
'cflags': ['<!@(<(julia_config) --cflags)', '-Werror -Wall'],
'ldflags': ['<!@(<(julia_config) --ldflags)'],
"xcode_settings": {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CFLAGS': [ '<!@(<(julia_config) --cflags)', '-Werror -Wall'],
'OTHER_LDFLAGS': ['<!@(<(julia_config) --ldflags)'],
}
},
{
"target_name": "copy_binary",
"type":"none",
"dependencies" : [ "julia" ],
"copies":
[
{
'destination': '<(module_root_dir)',
'files': ['<(module_root_dir)/build/Release/julia.node']
}
]
}
]
}