Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
726eeab5
Commit
726eeab5
authored
Apr 24, 2013
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrate pull request #135 into #136 since they touch the same files
parent
578188eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletions
+29
-1
binding.gyp
binding.gyp
+28
-0
sqlite3.js
lib/sqlite3.js
+1
-1
No files found.
binding.gyp
View file @
726eeab5
...
...
@@ -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']
}
]
}
]
}
lib/sqlite3.js
View file @
726eeab5
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment