OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2008 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # Ripped and modded from chrome. |
| 6 |
| 7 Import('env') |
| 8 |
| 9 env = env.Clone( |
| 10 ) |
| 11 |
| 12 env.Replace( |
| 13 SQLITE_DIR = '$THIRD_PARTY_DIR/sqlite_google', |
| 14 CPPPATH = [ |
| 15 # from Chrome |
| 16 # '$ICU38_DIR/public/common', |
| 17 # '$ICU38_DIR/public/i18n', |
| 18 |
| 19 '$SQLITE_DIR/src', |
| 20 '$SQLITE_DIR/preprocessed', |
| 21 ], |
| 22 ) |
| 23 |
| 24 env.Append( |
| 25 # from Chrome |
| 26 # CPPDEFINES = [ |
| 27 # 'U_STATIC_IMPLEMENTATION', |
| 28 # 'SQLITE_ENABLE_FTS2', |
| 29 # 'SQLITE_ENABLE_BROKEN_FTS2', |
| 30 # 'SQLITE_ENABLE_ICU', |
| 31 # 'SQLITE_SECURE_DELETE', |
| 32 # 'THREADSAFE', |
| 33 # ['_HAS_EXCEPTIONS', '0'], |
| 34 # ], |
| 35 |
| 36 CPPDEFINES = [ |
| 37 'SQLITE_CORE', |
| 38 'SQLITE_ENABLE_FTS1', |
| 39 'SQLITE_ENABLE_BROKEN_FTS1', |
| 40 'SQLITE_ENABLE_FTS2', |
| 41 'SQLITE_ENABLE_BROKEN_FTS2', |
| 42 'THREADSAFE=1', |
| 43 'SQLITE_DEFAULT_FILE_PERMISSIONS=0600', |
| 44 'SQLITE_OMIT_ATTACH=1', |
| 45 'SQLITE_OMIT_LOAD_EXTENSION=1', |
| 46 'SQLITE_OMIT_VACUUM=1', |
| 47 'SQLITE_TRANSACTION_DEFAULT_IMMEDIATE=1', |
| 48 ], |
| 49 ) |
| 50 |
| 51 if env['PLATFORM'] == 'win32': |
| 52 env.Append( |
| 53 CPPFLAGS = [ |
| 54 # from Chrome |
| 55 '/TC', |
| 56 '/wd4800', |
| 57 '/wd4244', |
| 58 |
| 59 # from Gears |
| 60 '/wd4018', |
| 61 '/wd4146', |
| 62 ], |
| 63 ) |
| 64 |
| 65 input_files = [ |
| 66 '$SQLITE_DIR/src/alter.c', |
| 67 '$SQLITE_DIR/src/analyze.c', |
| 68 '$SQLITE_DIR/src/attach.c', |
| 69 '$SQLITE_DIR/src/auth.c', |
| 70 '$SQLITE_DIR/src/btree.c', |
| 71 '$SQLITE_DIR/src/build.c', |
| 72 '$SQLITE_DIR/src/callback.c', |
| 73 '$SQLITE_DIR/src/complete.c', |
| 74 '$SQLITE_DIR/src/date.c', |
| 75 '$SQLITE_DIR/src/delete.c', |
| 76 '$SQLITE_DIR/src/expr.c', |
| 77 '$SQLITE_DIR/ext/fts1/fts1.c', |
| 78 '$SQLITE_DIR/ext/fts1/fts1_hash.c', |
| 79 # '$SQLITE_DIR/ext/fts1/fts1_icu.c', |
| 80 '$SQLITE_DIR/ext/fts1/fts1_porter.c', |
| 81 # '$SQLITE_DIR/ext/fts1/fts1_tokenizer.c', |
| 82 '$SQLITE_DIR/ext/fts1/fts1_tokenizer1.c', |
| 83 '$SQLITE_DIR/ext/fts2/fts2.c', |
| 84 '$SQLITE_DIR/ext/fts2/fts2_hash.c', |
| 85 # '$SQLITE_DIR/ext/fts2/fts2_icu.c', |
| 86 '$SQLITE_DIR/ext/fts2/fts2_porter.c', |
| 87 # '$SQLITE_DIR/ext/fts2/fts2_tokenizer.c', |
| 88 '$SQLITE_DIR/ext/fts2/fts2_tokenizer1.c', |
| 89 '$SQLITE_DIR/src/func.c', |
| 90 '$SQLITE_DIR/src/hash.c', |
| 91 '$SQLITE_DIR/src/insert.c', |
| 92 '$SQLITE_DIR/src/legacy.c', |
| 93 '$SQLITE_DIR/src/loadext.c', |
| 94 '$SQLITE_DIR/src/main.c', |
| 95 '$SQLITE_DIR/src/malloc.c', |
| 96 '$SQLITE_DIR/preprocessed/opcodes.c', |
| 97 '$SQLITE_DIR/src/os.c', |
| 98 '$SQLITE_DIR/src/os_win.c', |
| 99 '$SQLITE_DIR/src/pager.c', |
| 100 '$SQLITE_DIR/preprocessed/parse.c', |
| 101 '$SQLITE_DIR/src/pragma.c', |
| 102 '$SQLITE_DIR/src/prepare.c', |
| 103 '$SQLITE_DIR/src/printf.c', |
| 104 '$SQLITE_DIR/src/random.c', |
| 105 '$SQLITE_DIR/src/select.c', |
| 106 # '$SQLITE_DIR/src/shell.c', |
| 107 '$SQLITE_DIR/src/table.c', |
| 108 '$SQLITE_DIR/src/tokenize.c', |
| 109 '$SQLITE_DIR/src/trigger.c', |
| 110 '$SQLITE_DIR/src/update.c', |
| 111 '$SQLITE_DIR/src/utf.c', |
| 112 '$SQLITE_DIR/src/util.c', |
| 113 '$SQLITE_DIR/src/vacuum.c', |
| 114 '$SQLITE_DIR/src/vdbe.c', |
| 115 '$SQLITE_DIR/src/vdbeapi.c', |
| 116 '$SQLITE_DIR/src/vdbeaux.c', |
| 117 '$SQLITE_DIR/src/vdbeblob.c', |
| 118 '$SQLITE_DIR/src/vdbefifo.c', |
| 119 '$SQLITE_DIR/src/vdbemem.c', |
| 120 '$SQLITE_DIR/src/vtab.c', |
| 121 '$SQLITE_DIR/src/where.c', |
| 122 ] |
| 123 |
| 124 env.ChromeStaticLibrary('sqlite-gears', input_files) |
OLD | NEW |