Permalink
Browse files

[#37] Added wscript.

  • Loading branch information...
assaf committed Jan 10, 2011
1 parent b57cc1e commit c9f7c1d1c1664326df6509ba3f3fd9ad7686df4c
Showing with 16 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +2 −0 package.json
  3. +12 −0 wscript
View
@@ -5,3 +5,5 @@ html
lib
man7
node_modules
+build
+.lock-wscript
View
@@ -25,6 +25,8 @@
"xpath"
],
"scripts": {
+ "preinstall" : "node-waf",
+ "preuninstall" : "node-waf clean",
"build": "cake build",
"test": "cake test"
},
View
12 wscript
@@ -0,0 +1,12 @@
+def set_options(opt):
+ opt.tool_options("compiler_cxx")
+
+def configure(conf):
+ conf.check_tool("compiler_cxx")
+ conf.check_tool("node_addon")
+
+def build(bld):
+ obj = bld.new_task_gen("cxx", "shlib", "node_addon")
+ obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
+ obj.target = "hellow"
+ obj.source = "src/hellow.cc"

0 comments on commit c9f7c1d

Please sign in to comment.