Commit 726eeab5 by Dane Springmeyer

integrate pull request #135 into #136 since they touch the same files

parent 578188eb
......@@ -3,6 +3,17 @@
'variables': {
'sqlite%':'internal',
},
'conditions': [
['OS=="win"', {
'variables': {
'copy_command%': 'copy'
},
},{
'variables': {
'copy_command%': 'cp'
},
}]
],
'targets': [
{
'target_name': 'action_before_build',
......@@ -43,6 +54,23 @@
'src/node_sqlite3.cc',
'src/statement.cc'
],
},
{
'target_name': 'action_after_build',
'type': 'none',
'dependencies': [ 'node_sqlite3' ],
'actions': [
{
'action_name': 'move_node_module',
'inputs': [
'<@(PRODUCT_DIR)/node_sqlite3.node'
],
'outputs': [
'lib/node_sqlite3.node'
],
'action': ['<@(copy_command)', '<@(PRODUCT_DIR)/node_sqlite3.node', 'lib/node_sqlite3.node']
}
]
}
]
}
var sqlite3 = module.exports = exports = require('../build/Release/node_sqlite3.node');
var sqlite3 = module.exports = exports = require('./node_sqlite3.node');
var path = require('path');
var util = require('util');
var EventEmitter = require('events').EventEmitter;
......
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