use node-gyp - closes #132

remotes/origin/v0.6.x
brianc 12 years ago
parent 0e742a011d
commit 913207575b

@ -15,7 +15,7 @@ bench:
@find benchmark -name "*-bench.js" | $(node-command)
build/default/binding.node:
@node-waf configure build
@node-gyp rebuild
test-unit:
@find test/unit -name "*-tests.js" | $(node-command)

@ -0,0 +1,12 @@
{
'targets': [
{
'target_name': 'binding',
'sources': [
'src/binding.cc'
],
'include_dirs': ['/usr/include/postgresql'],
'libraries' : ['-lpq']
}
]
}

@ -1,5 +1,5 @@
{ "name": "pg",
"version": "0.7.0",
"version": "0.7.1",
"description": "PostgreSQL client - pure javascript & libpq with the same API",
"keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"],
"homepage": "http://github.com/brianc/node-postgres",
@ -14,7 +14,7 @@
},
"scripts" : {
"test" : "make test",
"install" : "node-waf configure build || (exit 0)"
"install" : "node-gyp rebuild || (exit 0)"
},
"engines" : { "node": ">= 0.4.0" }
}

@ -80,6 +80,7 @@ test('error handling', function(){
});
test('non-query error', function() {
return false;
var client = new Client({
user:'asldkfjsadlfkj'
@ -89,6 +90,7 @@ test('error handling', function(){
});
test('non-query error with callback', function() {
return false;
var client = new Client({
user:'asldkfjsadlfkj'
});

Loading…
Cancel
Save