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
c3b2bbc2
Commit
c3b2bbc2
authored
May 31, 2011
by
Konstantin Käfer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23 from audriusk/master
Use pkg-config for sqlite3 if available
parents
68d93a53
b30c9dd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
wscript
wscript
+9
-3
No files found.
wscript
View file @
c3b2bbc2
...
@@ -13,7 +13,14 @@ def set_options(opt):
...
@@ -13,7 +13,14 @@ 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")
conf.check(lib="sqlite3", libpath=['/usr/local/lib', '/opt/local/lib'], uselib_store="SQLITE3", mandatory=True)
try:
conf.find_program('pkg-config')
except conf.errors.ConfigurationError:
conf.check(lib="sqlite3", libpath=['/usr/local/lib', '/opt/local/lib'],
uselib_store="SQLITE3", mandatory=True)
else:
conf.check_cfg(package="sqlite3", args='--libs --cflags',
uselib_store="SQLITE3", mandatory=True)
def build(bld):
def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
...
@@ -29,4 +36,4 @@ def shutdown():
...
@@ -29,4 +36,4 @@ def shutdown():
unlink(TARGET_FILE)
unlink(TARGET_FILE)
else:
else:
if exists(built):
if exists(built):
copy(built, dest)
copy(built, dest)
\ No newline at end of file
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