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
92d0e9c9
Commit
92d0e9c9
authored
Feb 21, 2011
by
Konstantin Käfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup build script
parent
d9bdb1d0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
34 deletions
+7
-34
.gitignore
.gitignore
+0
-2
sqlite3.cc
src/sqlite3.cc
+0
-0
statement.cc
src/statement.cc
+0
-1
wscript
wscript
+7
-31
No files found.
.gitignore
View file @
92d0e9c9
build/
.lock-wscript
sqlite3_bindings.node
src/sqlite3
_bindings
.cc
→
src/sqlite3.cc
View file @
92d0e9c9
File moved
src/statement.cc
View file @
92d0e9c9
...
...
@@ -675,4 +675,3 @@ void Statement::CleanQueue() {
delete
call
;
}
}
wscript
View file @
92d0e9c9
#
vim
:
ft
=
javascript
import Options
from
os
import
unlink
,
system
from
os
.
path
import
exists
,
abspath
from os.path import exists
from shutil import copy2 as copy
TARGET = 'sqlite3_bindings'
...
...
@@ -11,44 +9,21 @@ dest = 'lib/%s' % TARGET_FILE
def set_options(opt):
opt.tool_options("compiler_cxx")
opt
.
tool_options
(
"compiler_cc"
)
def configure(conf):
conf.check_tool("compiler_cxx")
conf
.
check_tool
(
"compiler_cc"
)
conf.check_tool("node_addon")
if
not
conf
.
check_cfg
(
package
=
'sqlite3'
,
args
=
'--cflags --libs'
,
uselib_store
=
'SQLITE3'
):
if
not
conf
.
check
(
lib
=
"sqlite3"
,
libpath
=
[
'/usr/local/lib'
,
'/opt/local/lib'
],
uselib_store
=
"SQLITE3"
):
conf
.
fatal
(
'Missing sqlite3'
);
conf
.
env
.
append_value
(
'LIBPATH_SQLITE3'
,
'/opt/local/lib'
);
conf
.
env
.
append_value
(
"LIBPATH_MPOOL"
,
abspath
(
"./deps/mpool-2.1.0/"
))
conf
.
env
.
append_value
(
"LIB_MPOOL"
,
"mpool"
)
conf
.
env
.
append_value
(
"CPPPATH_MPOOL"
,
abspath
(
"./deps/mpool-2.1.0/"
))
conf
.
env
.
append_value
(
'LIBPATH_SQLITE'
,
abspath
(
'build/default/deps/sqlite/'
))
conf
.
env
.
append_value
(
'STATICLIB_SQLITE'
,
'sqlite3-bundled'
)
conf
.
env
.
append_value
(
'CPATH_SQLITE'
,
abspath
(
'./deps/sqlite/'
))
def build(bld):
system
(
"cd deps/mpool-2.1.0/; make"
);
obj
=
bld
.
new_task_gen
(
"cxx"
,
"shlib"
,
"node_addon"
,
install_path
=
None
)
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
obj.target = TARGET
obj
.
source
=
"src/sqlite3_bindings.cc"
obj
.
source
+=
" src/database.cc"
obj
.
source
+=
" src/statement.cc"
obj
.
uselib
=
"SQLITE3 PROFILER MPOOL"
start_dir
=
bld
.
path
.
find_dir
(
'lib'
)
#
http
:
//www.freehackers.org/~tnagy/wafbook/index.html#_installing_files
bld
.
install_files
(
'${PREFIX}/lib/node/sqlite'
,
start_dir
.
ant_glob
(
'*'
),
cwd
=
start_dir
,
relative_trick
=
True
)
obj.source = "src/sqlite3.cc src/database.cc src/statement.cc"
def shutdown():
if Options.commands['clean']:
if
exists
(
TARGET_FILE
):
unlink
(
TARGET_FILE
)
system
(
"cd deps/mpool-2.1.0/; make clean"
);
if exists(TARGET_FILE):
unlink(TARGET_FILE)
else:
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