OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 config("sqlite_config") { | 5 config("sqlite_config") { |
6 include_dirs = [ "." ] | 6 include_dirs = [ "." ] |
7 } | 7 } |
8 | 8 |
9 source_set("sqlite") { | 9 source_set("sqlite") { |
10 sources = [ | 10 sources = [ |
11 "amalgamation/sqlite3.c", | 11 "amalgamation/sqlite3.c", |
12 "amalgamation/sqlite3.h", | 12 "amalgamation/sqlite3.h", |
13 ] | 13 ] |
14 | 14 |
15 cflags = [] | 15 cflags = [] |
16 defines = [ | 16 defines = [ |
17 "SQLITE_CORE", | |
18 "SQLITE_ENABLE_FTS3", | 17 "SQLITE_ENABLE_FTS3", |
19 "SQLITE_DISABLE_FTS3_UNICODE", | 18 "SQLITE_DISABLE_FTS3_UNICODE", |
20 "SQLITE_DISABLE_FTS4_DEFERRED", | 19 "SQLITE_DISABLE_FTS4_DEFERRED", |
21 "SQLITE_ENABLE_ICU", | 20 "SQLITE_ENABLE_ICU", |
22 "SQLITE_ENABLE_MEMORY_MANAGEMENT", | 21 "SQLITE_ENABLE_MEMORY_MANAGEMENT", |
23 "SQLITE_SECURE_DELETE", | 22 "SQLITE_SECURE_DELETE", |
24 "SQLITE_SEPARATE_CACHE_POOLS", | 23 "SQLITE_SEPARATE_CACHE_POOLS", |
25 "THREADSAFE", | 24 "THREADSAFE", |
26 "_HAS_EXCEPTIONS=0", | 25 "_HAS_EXCEPTIONS=0", |
27 ] | 26 ] |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 93 |
95 deps = [ | 94 deps = [ |
96 ":sqlite", | 95 ":sqlite", |
97 "//third_party/icu", | 96 "//third_party/icu", |
98 ] | 97 ] |
99 } | 98 } |
100 } | 99 } |
101 | 100 |
102 if (is_ios) { | 101 if (is_ios) { |
103 source_set("sqlite_regexp") { | 102 source_set("sqlite_regexp") { |
| 103 defines += [ |
| 104 # Necessary to statically compile the extension. |
| 105 "SQLITE_CORE", |
| 106 ] |
104 sources = [ | 107 sources = [ |
105 "src/ext/icu/icu.c", | 108 "src/ext/icu/icu.c", |
106 ] | 109 ] |
107 deps = [ | 110 deps = [ |
108 "//third_party/icu", | 111 "//third_party/icu", |
109 ] | 112 ] |
110 } | 113 } |
111 } | 114 } |
OLD | NEW |