OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'use_system_sqlite%': 0, | 7 'use_system_sqlite%': 0, |
8 'required_sqlite_version': '3.6.1', | 8 'required_sqlite_version': '3.6.1', |
9 }, | 9 }, |
10 'target_defaults': { | 10 'target_defaults': { |
11 'defines': [ | 11 'defines': [ |
12 'SQLITE_CORE', | 12 'SQLITE_CORE', |
13 'SQLITE_ENABLE_FTS3', | 13 'SQLITE_ENABLE_FTS3', |
| 14 # New unicode61 tokenizer with built-in tables. |
| 15 'SQLITE_DISABLE_FTS3_UNICODE', |
| 16 # Chromium currently does not enable fts4, disable extra code. |
| 17 'SQLITE_DISABLE_FTS4_DEFERRED', |
14 'SQLITE_ENABLE_ICU', | 18 'SQLITE_ENABLE_ICU', |
15 'SQLITE_ENABLE_MEMORY_MANAGEMENT', | 19 'SQLITE_ENABLE_MEMORY_MANAGEMENT', |
16 'SQLITE_SECURE_DELETE', | 20 'SQLITE_SECURE_DELETE', |
| 21 # Custom flag to tweak pcache pools. |
| 22 # TODO(shess): This shouldn't use faux-SQLite naming. |
17 'SQLITE_SEPARATE_CACHE_POOLS', | 23 'SQLITE_SEPARATE_CACHE_POOLS', |
| 24 # TODO(shess): SQLite adds mutexes to protect structures which cross |
| 25 # threads. In theory Chromium should be able to turn this off for a |
| 26 # slight speed boost. |
18 'THREADSAFE', | 27 'THREADSAFE', |
| 28 # TODO(shess): Figure out why this is here. Nobody references it |
| 29 # directly. |
19 '_HAS_EXCEPTIONS=0', | 30 '_HAS_EXCEPTIONS=0', |
| 31 # NOTE(shess): Some defines can affect the amalgamation. Those should be |
| 32 # added to google_generate_amalgamation.sh, and the amalgamation |
| 33 # re-generated. Usually this involves disabling features which include |
| 34 # keywords or syntax, for instance SQLITE_OMIT_VIRTUALTABLE omits the |
| 35 # virtual table syntax entirely. Missing an item usually results in |
| 36 # syntax working but execution failing. Review: |
| 37 # src/src/parse.py |
| 38 # src/tool/mkkeywordhash.c |
20 ], | 39 ], |
21 }, | 40 }, |
22 'targets': [ | 41 'targets': [ |
23 { | 42 { |
24 'target_name': 'sqlite', | 43 'target_name': 'sqlite', |
25 'conditions': [ | 44 'conditions': [ |
26 [ 'chromeos==1' , { | 45 [ 'chromeos==1' , { |
27 'defines': [ | 46 'defines': [ |
28 # Despite obvious warnings about not using this flag | 47 # Despite obvious warnings about not using this flag |
29 # in deployment, we are turning off sync in ChromeOS | 48 # in deployment, we are turning off sync in ChromeOS |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 '../icu/icu.gyp:icuuc', | 244 '../icu/icu.gyp:icuuc', |
226 ], | 245 ], |
227 'sources': [ | 246 'sources': [ |
228 'src/ext/icu/icu.c', | 247 'src/ext/icu/icu.c', |
229 ], | 248 ], |
230 }, | 249 }, |
231 ], | 250 ], |
232 }], | 251 }], |
233 ], | 252 ], |
234 } | 253 } |
OLD | NEW |