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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 }], | 133 }], |
134 ], | 134 ], |
135 }, { # !use_system_sqlite | 135 }, { # !use_system_sqlite |
136 # "sqlite3" can cause conflicts with the system library. | 136 # "sqlite3" can cause conflicts with the system library. |
137 'product_name': 'chromium_sqlite3', | 137 'product_name': 'chromium_sqlite3', |
138 'type': '<(component)', | 138 'type': '<(component)', |
139 'sources': [ | 139 'sources': [ |
140 'amalgamation/config.h', | 140 'amalgamation/config.h', |
141 'amalgamation/sqlite3.h', | 141 'amalgamation/sqlite3.h', |
142 'amalgamation/sqlite3.c', | 142 'amalgamation/sqlite3.c', |
| 143 'ext/recover.c', |
143 ], | 144 ], |
144 'variables': { | 145 'variables': { |
145 'clang_warning_flags': [ | 146 'clang_warning_flags': [ |
146 # sqlite contains a few functions that are unused, at least on | 147 # sqlite contains a few functions that are unused, at least on |
147 # Windows with Chromium's sqlite patches applied | 148 # Windows with Chromium's sqlite patches applied |
148 # (interiorCursorEOF fts3EvalDeferredPhrase | 149 # (interiorCursorEOF fts3EvalDeferredPhrase |
149 # fts3EvalSelectDeferred sqlite3Fts3InitHashTable | 150 # fts3EvalSelectDeferred sqlite3Fts3InitHashTable |
150 # sqlite3Fts3InitTok). | 151 # sqlite3Fts3InitTok). |
151 '-Wno-unused-function', | 152 '-Wno-unused-function', |
152 ], | 153 ], |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 { | 243 { |
243 'target_name': 'sqlite_regexp', | 244 'target_name': 'sqlite_regexp', |
244 'type': 'static_library', | 245 'type': 'static_library', |
245 'dependencies': [ | 246 'dependencies': [ |
246 '../icu/icu.gyp:icui18n', | 247 '../icu/icu.gyp:icui18n', |
247 '../icu/icu.gyp:icuuc', | 248 '../icu/icu.gyp:icuuc', |
248 ], | 249 ], |
249 'defines': [ | 250 'defines': [ |
250 # Necessary to statically compile the extension. | 251 # Necessary to statically compile the extension. |
251 'SQLITE_CORE', | 252 'SQLITE_CORE', |
| 253 # I don't even. |
| 254 'SQLITE_CORE_NOT_REALLY', |
252 ], | 255 ], |
253 'sources': [ | 256 'sources': [ |
| 257 'ext/recover.c', |
254 'src/ext/icu/icu.c', | 258 'src/ext/icu/icu.c', |
255 ], | 259 ], |
256 'variables': { | 260 'variables': { |
257 'clang_warning_flags_unset': [ | 261 'clang_warning_flags_unset': [ |
258 # icu.c uses assert(!"foo") instead of assert(false && "foo") | 262 # icu.c uses assert(!"foo") instead of assert(false && "foo") |
259 '-Wstring-conversion', | 263 '-Wstring-conversion', |
260 ], | 264 ], |
261 }, | 265 }, |
262 }, | 266 }, |
263 ], | 267 ], |
264 }], | 268 }], |
265 ], | 269 ], |
266 } | 270 } |
OLD | NEW |