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': { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 ], | 91 ], |
92 }], | 92 }], |
93 ['use_system_sqlite', { | 93 ['use_system_sqlite', { |
94 'type': 'none', | 94 'type': 'none', |
95 'direct_dependent_settings': { | 95 'direct_dependent_settings': { |
96 'defines': [ | 96 'defines': [ |
97 'USE_SYSTEM_SQLITE', | 97 'USE_SYSTEM_SQLITE', |
98 ], | 98 ], |
99 }, | 99 }, |
100 | 100 |
| 101 'dependencies': [ |
| 102 'sqlite_recover', |
| 103 ], |
| 104 |
101 'conditions': [ | 105 'conditions': [ |
102 ['OS == "ios"', { | 106 ['OS == "ios"', { |
103 'dependencies': [ | 107 'dependencies': [ |
104 'sqlite_regexp', | 108 'sqlite_regexp', |
105 ], | 109 ], |
106 'link_settings': { | 110 'link_settings': { |
107 'xcode_settings': { | 111 'xcode_settings': { |
108 'OTHER_LDFLAGS': [ | 112 'OTHER_LDFLAGS': [ |
109 '-lsqlite3', | 113 '-lsqlite3', |
110 ], | 114 ], |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 ], | 212 ], |
209 }], | 213 }], |
210 ], | 214 ], |
211 }], | 215 }], |
212 ], | 216 ], |
213 'includes': [ | 217 'includes': [ |
214 # Disable LTO due to ELF section name out of range | 218 # Disable LTO due to ELF section name out of range |
215 # crbug.com/422251 | 219 # crbug.com/422251 |
216 '../../build/android/disable_gcc_lto.gypi', | 220 '../../build/android/disable_gcc_lto.gypi', |
217 ], | 221 ], |
| 222 }, { |
| 223 # Virtual table used by sql::Recovery to recover corrupt databases, for |
| 224 # use with USE_SYSTEM_SQLITE. |
| 225 'target_name': 'sqlite_recover', |
| 226 'type': 'static_library', |
| 227 'sources': [ |
| 228 # TODO(shess): Move out of the SQLite source tree, perhaps to ext/. |
| 229 'src/src/recover_varint.c', |
| 230 'src/src/recover.c', |
| 231 'src/src/recover.h', |
| 232 ], |
218 }, | 233 }, |
219 ], | 234 ], |
220 'conditions': [ | 235 'conditions': [ |
221 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" and not
use_system_sqlite', { | 236 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" and not
use_system_sqlite', { |
222 'targets': [ | 237 'targets': [ |
223 { | 238 { |
224 'target_name': 'sqlite_shell', | 239 'target_name': 'sqlite_shell', |
225 'type': 'executable', | 240 'type': 'executable', |
226 'dependencies': [ | 241 'dependencies': [ |
227 '../icu/icu.gyp:icuuc', | 242 '../icu/icu.gyp:icuuc', |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 'clang_warning_flags_unset': [ | 275 'clang_warning_flags_unset': [ |
261 # icu.c uses assert(!"foo") instead of assert(false && "foo") | 276 # icu.c uses assert(!"foo") instead of assert(false && "foo") |
262 '-Wstring-conversion', | 277 '-Wstring-conversion', |
263 ], | 278 ], |
264 }, | 279 }, |
265 }, | 280 }, |
266 ], | 281 ], |
267 }], | 282 }], |
268 ], | 283 ], |
269 } | 284 } |
OLD | NEW |