Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add wsscript

  • Loading branch information...
commit fd28aa197e7bc8483dd726848feedf6c5bc0803e 1 parent d2307c4
@groundwater groundwater authored
Showing with 28 additions and 0 deletions.
  1. +28 −0 wscript
View
28 wscript
@@ -0,0 +1,28 @@
+import Options
+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")
+
+def build(bld):
+ obj = bld.new_task_gen("cxx", "shlib", "node_addon")
+ obj.target = "gcinfo"
+ obj.source = "src/gc.cc"
+ obj.cxxflags = ["-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE"]
+
+def shutdown():
+ if Options.commands['clean']:
+ if exists('gcinfo.node'): unlink('gcinfo.node')
+ else:
+ if exists('build/default/gcinfo.node') and not exists('gcinfo.node'):
+ symlink('build/default/gcinfo.node', 'gcinfo.node')
+
Please sign in to comment.
Something went wrong with that request. Please try again.