-
Notifications
You must be signed in to change notification settings - Fork 4
/
binding.gyp
42 lines (42 loc) · 1.05 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
{
"targets": [
{
"target_name": "nodencl",
"sources": [
"src/nodencl.cc",
"src/noden_util.cc",
"src/noden_info.cc",
"src/noden_context.cc",
"src/noden_program.cc",
"src/noden_buffer.cc",
"src/noden_run.cc",
"src/cl_memory.cc"
],
"include_dirs": [ "include" ],
"msvs_settings": {
"VCCLCompilerTool": { "ExceptionHandling": 1 }
},
"conditions": [
["OS=='linux'", {
"cflags_cc": [
"-std=c++11",
"-fexceptions"
],
"link_settings": {
"libraries": [ "/usr/lib/x86_64-linux-gnu/libOpenCL.so" ],
"ldflags": [
"-L/usr/lib/x86_64-linux-gnu",
"-Wl,-rpath,/usr/lib/x86_64-linux-gnu,-lOpenCL"
]
}
}],
["OS=='win'", {
"link_settings": {
"libraries": [ "OpenCL.lib" ],
"library_dirs": [ "lib/x64" ]
}
}],
],
}
]
}