Chromium Code Reviews| 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 declare_args() { | 5 declare_args() { |
| 6 # Controls whether the build should uses the version of sqlite3 library | 6 # Controls whether the build should uses the version of sqlite3 library |
| 7 # shipped with the system (currently only supported on iOS) or the one | 7 # shipped with the system (currently only supported on iOS) or the one |
| 8 # shipped with Chromium source. | 8 # shipped with Chromium source. |
| 9 use_system_sqlite = is_ios | 9 use_system_sqlite = is_ios |
| 10 } | 10 } |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 libs = [ "sqlite3" ] | 218 libs = [ "sqlite3" ] |
| 219 } else { | 219 } else { |
| 220 assert(false, "extra flags to use system sqlite3 library missing") | 220 assert(false, "extra flags to use system sqlite3 library missing") |
| 221 } | 221 } |
| 222 } | 222 } |
| 223 | 223 |
| 224 source_set("sqlite") { | 224 source_set("sqlite") { |
| 225 public_configs = [ ":sqlite_config" ] | 225 public_configs = [ ":sqlite_config" ] |
| 226 if (is_ios) { | 226 if (is_ios) { |
| 227 deps = [ | 227 deps = [ |
| 228 ":sqlite_recover", | |
|
Scott Hess - ex-Googler
2016/03/10 18:14:50
This change was obviously suggested from the sqlit
| |
| 228 ":sqlite_regexp", | 229 ":sqlite_regexp", |
| 229 ] | 230 ] |
| 230 } | 231 } |
| 231 } | 232 } |
| 232 | 233 |
| 233 if (is_ios) { | 234 if (is_ios) { |
| 235 source_set("sqlite_recover") { | |
| 236 sources = [ | |
| 237 # TODO(shess): Move out of the SQLite source tree, perhaps to ext/. | |
| 238 "src/src/recover.c", | |
| 239 "src/src/recover.h", | |
| 240 "src/src/recover_varint.c", | |
| 241 ] | |
| 242 } | |
| 243 | |
| 234 source_set("sqlite_regexp") { | 244 source_set("sqlite_regexp") { |
| 235 defines = [ | 245 defines = [ |
| 236 # Necessary to statically compile the extension. | 246 # Necessary to statically compile the extension. |
| 237 "SQLITE_CORE", | 247 "SQLITE_CORE", |
| 238 "SQLITE_ENABLE_ICU", | 248 "SQLITE_ENABLE_ICU", |
| 239 "SQLITE_ENABLE_MEMORY_MANAGEMENT", | 249 "SQLITE_ENABLE_MEMORY_MANAGEMENT", |
| 240 ] | 250 ] |
| 241 sources = [ | 251 sources = [ |
| 242 "src/ext/icu/icu.c", | 252 "src/ext/icu/icu.c", |
| 243 ] | 253 ] |
| 244 deps = [ | 254 deps = [ |
| 245 "//third_party/icu", | 255 "//third_party/icu", |
| 246 ] | 256 ] |
| 247 if (is_clang) { | 257 if (is_clang) { |
| 248 # src/ext/icu/icu.c uses assert(!"string") which causes warnings about | 258 # src/ext/icu/icu.c uses assert(!"string") which causes warnings about |
| 249 # conversion from string literal to bool. | 259 # conversion from string literal to bool. |
| 250 configs -= [ "//build/config/clang:extra_warnings" ] | 260 configs -= [ "//build/config/clang:extra_warnings" ] |
| 251 } | 261 } |
| 252 } | 262 } |
| 253 } | 263 } |
| 254 } | 264 } |
| OLD | NEW |