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
e734d2ec
Commit
e734d2ec
authored
Mar 17, 2010
by
Ryan Dahl
Committed by
Orlando Vazquez
Mar 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pkg-config in wscript, create symlink on build
parent
ed365590
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
.gitignore
.gitignore
+1
-0
sqlite3_bindings.node
sqlite3_bindings.node
+0
-2
wscript
wscript
+20
-1
No files found.
.gitignore
View file @
e734d2ec
...
@@ -3,3 +3,4 @@ README.html
...
@@ -3,3 +3,4 @@ README.html
test.db
test.db
.lock-wscript
.lock-wscript
speedtest.db
speedtest.db
sqlite3_bindings.node
sqlite3_bindings.node
deleted
120000 → 0
View file @
ed365590
build/default/sqlite3_bindings.node
\ No newline at end of file
wscript
View file @
e734d2ec
import Options
from os import unlink, symlink
from os.path import exists
srcdir = "."
srcdir = "."
blddir = "build"
blddir = "build"
VERSION = "0.0.1"
VERSION = "0.0.1"
...
@@ -8,10 +13,24 @@ def set_options(opt):
...
@@ -8,10 +13,24 @@ def set_options(opt):
def configure(conf):
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
conf.check_tool("node_addon")
if not conf.check_cfg(package='sqlite3', args='--cflags --libs', uselib_store='SQLITE3'):
conf.fatal('Missing sqlite3');
def build(bld):
def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.cxxflags = "-g"
obj.cxxflags = "-g"
obj.target = "sqlite3_bindings"
obj.target = "sqlite3_bindings"
obj.source = "sqlite3_bindings.cc"
obj.source = "sqlite3_bindings.cc"
obj.lib = "sqlite3"
#obj.lib = "sqlite3"
obj.uselib ="SQLITE3"
t = 'sqlite3_bindings.node'
def shutdown():
# HACK to get binding.node out of build directory.
# better way to do this?
if Options.commands['clean']:
if exists(t): unlink(t)
else:
if exists('build/default/' + t) and not exists(t):
symlink('build/default/' + t, t)
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