-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathwscript
More file actions
17 lines (15 loc) · 721 Bytes
/
wscript
File metadata and controls
17 lines (15 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def set_options(opt):
opt.tool_options("compiler_cxx")
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
# This will tell the compiler to link our extension with the gtkmm and libnotifymm libraries.
# conf.check_cfg(package='gtkmm-2.4', args='--cflags --libs', uselib_store='LIBGTKMM')
# conf.check_cfg(package='libnotifymm-1.0', args='--cflags --libs', uselib_store='LIBNOTIFYMM')
def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.cxxflags = ["-g", "-Wall"]
# This is the name of our extension.
obj.target = "rcswitch"
obj.source = ["externals/rcswitch-pi/RCSwitch.cpp", "src/RCSwitchNode.cpp"]
# obj.uselib = ['LIBGTKMM', 'LIBNOTIFYMM']