-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbinding.gyp
53 lines (52 loc) · 1.58 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
46
47
48
49
50
51
52
53
{
'targets': [
{
'target_name': 'webcl',
'defines': [
'VERSION=0.6.0',
# 'LOGGING'
],
'sources': [
'src/bindings.cc',
'src/commandqueue.cc',
'src/context.cc',
'src/device.cc',
'src/event.cc',
'src/kernel.cc',
'src/memoryobject.cc',
'src/platform.cc',
'src/program.cc',
'src/sampler.cc',
'src/webcl.cc',
],
'conditions': [
['OS=="mac"', {'libraries': ['-framework OpenGL', '-framework OpenCL']}],
['OS=="linux"', {'libraries': ['-lGL', '-lOpenCL']}],
['OS=="win"', {
'variables' : {
# AMD APP SDK
# 'OPENCL_SDK' : 'C:\\Program Files (x86)\\AMD APP',
# 'OPENCL_SDK_INCLUDE' : '<(OPENCL_SDK)\\include',
# 'OPENCL_SDK_LIB' : '<(OPENCL_SDK)\\lib\\x86_64',
# Intel OpenCL SDK
'OPENCL_SDK' : 'C:\\Program Files (x86)\\Intel\\OpenCL SDK\\2.0',
'OPENCL_SDK_INCLUDE' : '<(OPENCL_SDK)\\include',
'OPENCL_SDK_LIB' : '<(OPENCL_SDK)\\lib\\x64',
},
'include_dirs' : ['<(OPENCL_SDK_INCLUDE)'],
'defines' : [
'WIN32_LEAN_AND_MEAN',
'VC_EXTRALEAN',
],
'cflags' : [
'/Ox','/Ob2','/Oi','/Ot','/Oy','/GL','/GF','/Gm-','/EHsc','/MT','/GS','/Gy','/GR-','/Gd','/wd"4530"','/wd"4251"'
],
'ldflags' : [
'/OPT:REF','/OPT:ICF','/LTCG'
],
'libraries': ['opengl32.lib', '<(OPENCL_SDK_LIB)\\OpenCL.lib'],
},
],
]
}]
}