[Pkg-javascript-commits] [node-sqlite3] 15/20: Imported Upstream version 2.1.15+ds2
Jérémy Lal
kapouer at alioth.debian.org
Wed Sep 4 12:34:11 UTC 2013
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-sqlite3.
commit c098d7b439ff76be50aa1c63942292f7978e80bc
Author: Jérémy Lal <kapouer at melix.org>
Date: Wed Sep 4 13:48:28 2013 +0200
Imported Upstream version 2.1.15+ds2
---
deps/common-sqlite.gypi | 5 +++
deps/extract.py | 9 +++++
deps/sqlite3.gyp | 93 +++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 107 insertions(+)
diff --git a/deps/common-sqlite.gypi b/deps/common-sqlite.gypi
new file mode 100644
index 0000000..93134c2
--- /dev/null
+++ b/deps/common-sqlite.gypi
@@ -0,0 +1,5 @@
+{
+ 'variables': {
+ 'sqlite_version%':'3071700'
+ }
+}
\ No newline at end of file
diff --git a/deps/extract.py b/deps/extract.py
new file mode 100644
index 0000000..410c931
--- /dev/null
+++ b/deps/extract.py
@@ -0,0 +1,9 @@
+import sys
+import tarfile
+import os
+
+tarball = os.path.abspath(sys.argv[1])
+dirname = os.path.abspath(sys.argv[2])
+tfile = tarfile.open(tarball,'r:gz');
+tfile.extractall(dirname)
+sys.exit(0)
diff --git a/deps/sqlite3.gyp b/deps/sqlite3.gyp
new file mode 100755
index 0000000..48e5879
--- /dev/null
+++ b/deps/sqlite3.gyp
@@ -0,0 +1,93 @@
+{
+ 'includes': [ 'common-sqlite.gypi' ],
+ 'target_defaults': {
+ 'default_configuration': 'Debug',
+ 'configurations': {
+ 'Debug': {
+ 'defines': [ 'DEBUG', '_DEBUG' ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'RuntimeLibrary': 1, # static debug
+ },
+ },
+ },
+ 'Release': {
+ 'defines': [ 'NDEBUG' ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'RuntimeLibrary': 0, # static release
+ },
+ },
+ }
+ },
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ },
+ 'VCLibrarianTool': {
+ },
+ 'VCLinkerTool': {
+ 'GenerateDebugInformation': 'true',
+ },
+ },
+ 'conditions': [
+ ['OS == "win"', {
+ 'defines': [
+ 'WIN32'
+ ],
+ }]
+ ],
+ },
+
+ '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': [
+ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
+ ],
+ 'action': ['python','./extract.py','./sqlite-autoconf-<@(sqlite_version).tar.gz','<(SHARED_INTERMEDIATE_DIR)']
+ }
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/',
+ ]
+ },
+ },
+ {
+ 'target_name': 'sqlite3',
+ 'type': 'static_library',
+ 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/' ],
+ 'dependencies': [
+ 'action_before_build'
+ ],
+ 'sources': [
+ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c'
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/' ],
+ 'defines': [
+ 'SQLITE_THREADSAFE=1',
+ 'SQLITE_ENABLE_FTS3',
+ 'SQLITE_ENABLE_RTREE'
+ ],
+ },
+ 'defines': [
+ '_REENTRANT=1',
+ 'SQLITE_THREADSAFE=1',
+ 'SQLITE_ENABLE_FTS3',
+ 'SQLITE_ENABLE_RTREE'
+ ],
+ 'export_dependent_settings': [
+ 'action_before_build',
+ ]
+ }
+ ]
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-sqlite3.git
More information about the Pkg-javascript-commits
mailing list