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
945df536
Commit
945df536
authored
Jun 19, 2013
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt to solve #153
parent
231b1380
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
23 deletions
+30
-23
binding.gyp
binding.gyp
+1
-23
sqlite3.gyp
deps/sqlite3.gyp
+29
-0
No files found.
binding.gyp
View file @
945df536
...
...
@@ -7,37 +7,15 @@
['OS=="win"', {
'variables': {
'copy_command%': 'copy',
'bin_name':'call'
},
},{
'variables': {
'copy_command%': 'cp',
'bin_name':'node'
},
}]
],
'targets': [
{
'target_name': 'action_before_build',
'type': 'none',
'conditions': [
['sqlite == "internal"', {
'actions': [
{
'action_name': 'unpack_sqlite_dep',
'inputs': [
'./deps/sqlite-autoconf-<@(sqlite_version).tar.gz'
],
'outputs': [
'./deps/sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
],
'action': ['<@(bin_name)','./node_modules/.bin/targz','deps/sqlite-autoconf-<@(sqlite_version).tar.gz','-x','deps/']
}
]
}]
]
},
{
'target_name': 'node_sqlite3',
'conditions': [
['sqlite != "internal"', {
...
...
@@ -49,7 +27,7 @@
},
{
'dependencies': [
'action_before_build',
'
deps/sqlite3.gyp:
action_before_build',
'deps/sqlite3.gyp:sqlite3'
]
}
...
...
deps/sqlite3.gyp
View file @
945df536
{
'includes': [ 'common-sqlite.gypi' ],
'conditions': [
['OS=="win"', {
'variables': {
'bin_name':'call'
},
},{
'variables': {
'bin_name':'node'
},
}]
],
'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
...
...
@@ -40,8 +51,26 @@
'targets': [
{
'target_name': 'action_before_build',
'type': 'none',
'hard_dependency': 1,
'actions': [
{
'action_name': 'unpack_sqlite_dep',
'inputs': [
'./sqlite-autoconf-<@(sqlite_version).tar.gz'
],
'outputs': [
'./sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
],
'action': ['<@(bin_name)','../node_modules/.bin/targz','./sqlite-autoconf-<@(sqlite_version).tar.gz','-x','./']
}
]
},
{
'target_name': 'sqlite3',
'type': 'static_library',
'hard_dependency': 1,
'include_dirs': [ './sqlite-autoconf-<@(sqlite_version)/' ],
'direct_dependent_settings': {
'include_dirs': [ './sqlite-autoconf-<@(sqlite_version)/' ],
...
...
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