Commit c448d197 by Orlando Vazquez

Make the deps from the node-waf script automatically

parent 4d942bc7
import Options import Options
from os import unlink, symlink from os import unlink, symlink, system
from os.path import exists, abspath from os.path import exists, abspath
srcdir = "." srcdir = "."
...@@ -26,6 +26,7 @@ def configure(conf): ...@@ -26,6 +26,7 @@ def configure(conf):
def build(bld): def build(bld):
system("cd deps/mpool-2.1.0/; make");
obj = bld.new_task_gen("cxx", "shlib", "node_addon") obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"] obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
obj.target = "sqlite3_bindings" obj.target = "sqlite3_bindings"
...@@ -38,6 +39,7 @@ def shutdown(): ...@@ -38,6 +39,7 @@ def shutdown():
# better way to do this? # better way to do this?
if Options.commands['clean']: if Options.commands['clean']:
if exists(t): unlink(t) if exists(t): unlink(t)
system("cd deps/mpool-2.1.0/; make clean");
else: else:
if exists('build/default/' + t) and not exists(t): if exists('build/default/' + t) and not exists(t):
symlink('build/default/' + t, t) symlink('build/default/' + t, t)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment