summaryrefslogtreecommitdiffstats
path: root/gears/SConscript.sqlite
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 18:24:30 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 18:24:30 +0000
commit186f560e16c1e93189fd21571f2ba754ebe18118 (patch)
tree5fcfb11e65d0025cffc3d7c079564fb74f3ac4d3 /gears/SConscript.sqlite
parent9cdaf0f648394c1affc52b7f92cc1d99f235e1b6 (diff)
downloadchromium_src-186f560e16c1e93189fd21571f2ba754ebe18118.zip
chromium_src-186f560e16c1e93189fd21571f2ba754ebe18118.tar.gz
chromium_src-186f560e16c1e93189fd21571f2ba754ebe18118.tar.bz2
Initial Gears SConscript file. A bit messy. Only builds chrome+dbg and
IE+dbg configurations. Review URL: http://codereview.chromium.org/232 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript.sqlite')
-rw-r--r--gears/SConscript.sqlite124
1 files changed, 124 insertions, 0 deletions
diff --git a/gears/SConscript.sqlite b/gears/SConscript.sqlite
new file mode 100644
index 0000000..66a0367
--- /dev/null
+++ b/gears/SConscript.sqlite
@@ -0,0 +1,124 @@
+# Copyright (c) 2008 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Ripped and modded from chrome.
+
+Import('env')
+
+env = env.Clone(
+)
+
+env.Replace(
+ SQLITE_DIR = '$THIRD_PARTY_DIR/sqlite_google',
+ CPPPATH = [
+# from Chrome
+# '$ICU38_DIR/public/common',
+# '$ICU38_DIR/public/i18n',
+
+ '$SQLITE_DIR/src',
+ '$SQLITE_DIR/preprocessed',
+ ],
+)
+
+env.Append(
+# from Chrome
+# CPPDEFINES = [
+# 'U_STATIC_IMPLEMENTATION',
+# 'SQLITE_ENABLE_FTS2',
+# 'SQLITE_ENABLE_BROKEN_FTS2',
+# 'SQLITE_ENABLE_ICU',
+# 'SQLITE_SECURE_DELETE',
+# 'THREADSAFE',
+# ['_HAS_EXCEPTIONS', '0'],
+# ],
+
+ CPPDEFINES = [
+ 'SQLITE_CORE',
+ 'SQLITE_ENABLE_FTS1',
+ 'SQLITE_ENABLE_BROKEN_FTS1',
+ 'SQLITE_ENABLE_FTS2',
+ 'SQLITE_ENABLE_BROKEN_FTS2',
+ 'THREADSAFE=1',
+ 'SQLITE_DEFAULT_FILE_PERMISSIONS=0600',
+ 'SQLITE_OMIT_ATTACH=1',
+ 'SQLITE_OMIT_LOAD_EXTENSION=1',
+ 'SQLITE_OMIT_VACUUM=1',
+ 'SQLITE_TRANSACTION_DEFAULT_IMMEDIATE=1',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Append(
+ CPPFLAGS = [
+ # from Chrome
+ '/TC',
+ '/wd4800',
+ '/wd4244',
+
+ # from Gears
+ '/wd4018',
+ '/wd4146',
+ ],
+ )
+
+input_files = [
+ '$SQLITE_DIR/src/alter.c',
+ '$SQLITE_DIR/src/analyze.c',
+ '$SQLITE_DIR/src/attach.c',
+ '$SQLITE_DIR/src/auth.c',
+ '$SQLITE_DIR/src/btree.c',
+ '$SQLITE_DIR/src/build.c',
+ '$SQLITE_DIR/src/callback.c',
+ '$SQLITE_DIR/src/complete.c',
+ '$SQLITE_DIR/src/date.c',
+ '$SQLITE_DIR/src/delete.c',
+ '$SQLITE_DIR/src/expr.c',
+ '$SQLITE_DIR/ext/fts1/fts1.c',
+ '$SQLITE_DIR/ext/fts1/fts1_hash.c',
+# '$SQLITE_DIR/ext/fts1/fts1_icu.c',
+ '$SQLITE_DIR/ext/fts1/fts1_porter.c',
+# '$SQLITE_DIR/ext/fts1/fts1_tokenizer.c',
+ '$SQLITE_DIR/ext/fts1/fts1_tokenizer1.c',
+ '$SQLITE_DIR/ext/fts2/fts2.c',
+ '$SQLITE_DIR/ext/fts2/fts2_hash.c',
+# '$SQLITE_DIR/ext/fts2/fts2_icu.c',
+ '$SQLITE_DIR/ext/fts2/fts2_porter.c',
+# '$SQLITE_DIR/ext/fts2/fts2_tokenizer.c',
+ '$SQLITE_DIR/ext/fts2/fts2_tokenizer1.c',
+ '$SQLITE_DIR/src/func.c',
+ '$SQLITE_DIR/src/hash.c',
+ '$SQLITE_DIR/src/insert.c',
+ '$SQLITE_DIR/src/legacy.c',
+ '$SQLITE_DIR/src/loadext.c',
+ '$SQLITE_DIR/src/main.c',
+ '$SQLITE_DIR/src/malloc.c',
+ '$SQLITE_DIR/preprocessed/opcodes.c',
+ '$SQLITE_DIR/src/os.c',
+ '$SQLITE_DIR/src/os_win.c',
+ '$SQLITE_DIR/src/pager.c',
+ '$SQLITE_DIR/preprocessed/parse.c',
+ '$SQLITE_DIR/src/pragma.c',
+ '$SQLITE_DIR/src/prepare.c',
+ '$SQLITE_DIR/src/printf.c',
+ '$SQLITE_DIR/src/random.c',
+ '$SQLITE_DIR/src/select.c',
+# '$SQLITE_DIR/src/shell.c',
+ '$SQLITE_DIR/src/table.c',
+ '$SQLITE_DIR/src/tokenize.c',
+ '$SQLITE_DIR/src/trigger.c',
+ '$SQLITE_DIR/src/update.c',
+ '$SQLITE_DIR/src/utf.c',
+ '$SQLITE_DIR/src/util.c',
+ '$SQLITE_DIR/src/vacuum.c',
+ '$SQLITE_DIR/src/vdbe.c',
+ '$SQLITE_DIR/src/vdbeapi.c',
+ '$SQLITE_DIR/src/vdbeaux.c',
+ '$SQLITE_DIR/src/vdbeblob.c',
+ '$SQLITE_DIR/src/vdbefifo.c',
+ '$SQLITE_DIR/src/vdbemem.c',
+ '$SQLITE_DIR/src/vtab.c',
+ '$SQLITE_DIR/src/where.c',
+]
+
+env.ChromeStaticLibrary('sqlite-gears', input_files)