Permalink
Browse files

Make the deps from the node-waf script automatically

  • Loading branch information...
1 parent 4d942bc commit c448d197aa7dd88e79f11a27e9bb437c1227720c @orlandov committed Sep 5, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 wscript
View
@@ -1,5 +1,5 @@
import Options
-from os import unlink, symlink
+from os import unlink, symlink, system
from os.path import exists, abspath
srcdir = "."
@@ -26,6 +26,7 @@ def configure(conf):
def build(bld):
+ system("cd deps/mpool-2.1.0/; make");
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
obj.target = "sqlite3_bindings"
@@ -38,6 +39,7 @@ def shutdown():
# better way to do this?
if Options.commands['clean']:
if exists(t): unlink(t)
+ system("cd deps/mpool-2.1.0/; make clean");
else:
if exists('build/default/' + t) and not exists(t):
symlink('build/default/' + t, t)

0 comments on commit c448d19

Please sign in to comment.