Permalink
Browse files

Fix npm install problem

  • Loading branch information...
1 parent 5fc6f20 commit afc3423793189f3a297e95a6746e880a74679c7a @orlandov committed Jan 31, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 wscript
View
2 package.json
@@ -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'
View
4 wscript
@@ -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():

0 comments on commit afc3423

Please sign in to comment.