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
ca1b78c6
Commit
ca1b78c6
authored
Nov 07, 2011
by
Konstantin Käfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge in springmeyer's build script fixes
parent
c3e5f78f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
24 deletions
+17
-24
wscript
wscript
+17
-24
No files found.
wscript
View file @
ca1b78c6
#!/usr/bin/env python
import os
import sys
import Options
from Configure import ConfigurationError
from os.path import exists
from
os
import
unlink
from shutil import copy2 as copy, rmtree
# node-wafadmin
import Options
import Utils
from
Configure
import
ConfigurationError
TARGET = 'sqlite3_bindings'
...
...
@@ -21,7 +20,6 @@ BUNDLED_SQLITE3 = 'sqlite-autoconf-%s' % BUNDLED_SQLITE3_VERSION
BUNDLED_SQLITE3_TAR = 'sqlite-autoconf-%s.tar.gz' % BUNDLED_SQLITE3_VERSION
SQLITE3_TARGET = 'deps/%s' % BUNDLED_SQLITE3
sqlite3_test_program = '''
#include "stdio.h"
#ifdef __cplusplus
...
...
@@ -126,28 +124,23 @@ def clean_internal_sqlite3():
if os.path.exists(SQLITE3_TARGET):
rmtree(SQLITE3_TARGET)
def
build
(
ctx
):
build_internal_sqlite3
(
)
t
=
ctx
.
new_task_gen
(
'cxx'
,
'shlib'
,
'node_addon'
)
t
.
cxxflags
=
[
"-g"
,
"-D_FILE_OFFSET_BITS=64"
,
"-D_LARGEFILE_SOURCE"
,
def build(
bld
):
obj = bld.new_task_gen("cxx", "shlib", "node_addon"
)
build_internal_sqlite3(bld
)
obj
.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE",
"-DSQLITE_ENABLE_RTREE=1", "-pthread", "-Wall"]
# uncomment the next line to remove '-undefined
-
dynamic_lookup'
# uncomment the next line to remove '-undefined dynamic_lookup'
# in order to review linker errors (v8, libev/eio references can be ignored)
# t.env['LINKFLAGS_MACBUNDLE'] = ['-bundle']
t
.
target
=
TARGET
t
.
source
=
"src/database.cc src/statement.cc src/sqlite3.cc"
# t.uselib = "SQLITE3"
def
clean
(
ctx
):
if
exists
(
"build"
):
rmtree
(
"build"
)
if
exists
(
dest
):
unlink
(
dest
)
clean_internal_sqlite3
()
#obj.env['LINKFLAGS_MACBUNDLE'] = ['-bundle']
obj.target = TARGET
obj.source = "src/sqlite3.cc src/database.cc src/statement.cc"
obj.uselib = "SQLITE3"
def shutdown():
if
not
Options
.
commands
[
'clean'
]
and
exists
(
built
):
if Options.commands['clean']:
if exists(TARGET_FILE):
unlink(TARGET_FILE)
clean_internal_sqlite3()
else:
if exists(built):
copy(built, dest)
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