Commit afc34237 by Orlando Vazquez

Fix npm install problem

parent 5fc6f207
......@@ -16,7 +16,7 @@
}
, 'directories': { 'lib' : '.' }
, 'engines': { 'node' : '>=0.2.0' }
, 'scripts': { 'test' : './run-tests' }
, 'scripts': { 'test' : './run-tests', preinstall: 'node-waf configure build' }
, 'licenses':
[ { 'type' : 'BSD' } ]
, 'main': './sqlite'
......
......@@ -21,7 +21,7 @@ def configure(conf):
conf.env.append_value("CPPPATH_MPOOL", abspath("./deps/mpool-2.1.0/"))
conf.env.append_value('LIBPATH_SQLITE', abspath('./deps/sqlite/'))
conf.env.append_value('LIB_SQLITE', abspath('sqlite'))
conf.env.append_value('LIB_SQLITE', 'sqlite3')
conf.env.append_value('CPATH_SQLITE', abspath('./deps/sqlite/'))
def build(bld):
......@@ -35,7 +35,7 @@ def build(bld):
obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
obj.target = "sqlite3_bindings"
obj.source = "src/sqlite3_bindings.cc src/database.cc src/statement.cc"
obj.uselib = "MPOOL"
obj.uselib = "SQLITE MPOOL"
t = 'sqlite3_bindings.node'
def shutdown():
......
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