-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwscript
More file actions
25 lines (20 loc) · 786 Bytes
/
Copy pathwscript
File metadata and controls
25 lines (20 loc) · 786 Bytes
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
import Options, Utils
from os import unlink, symlink, popen
from os.path import exists
srcdir = '.'
blddir = 'build'
VERSION = '0.0.1'
def set_options(opt):
opt.tool_options('compiler_cxx')
def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
conf.env.append_value("LIBPATH_OPENCL", "/opt/AMDAPP/lib/x86/")
conf.env.append_value("LIB_OPENCL", "OpenCL")
conf.env.append_value("CPPPATH_OPENCL", "/opt/AMDAPP/include/")
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.cxxflags = ["-g", "-D_LARGEFILE_SOURCE", "-Wall","-fpermissive"]
obj.target = 'opencl'
obj.source = "src/opencl.cpp src/platform.cpp src/device.cpp src/context.cpp src/program.cpp src/kernel.cpp src/commandqueue.cpp"
obj.uselib = "OPENCL"