Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: third_party/sqlite/BUILD.gn

Issue 1286273004: Rename is_chromeos in sqlite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review optimization Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 defines = [ 24 defines = [
25 "SQLITE_ENABLE_FTS3", 25 "SQLITE_ENABLE_FTS3",
26 "SQLITE_DISABLE_FTS3_UNICODE", 26 "SQLITE_DISABLE_FTS3_UNICODE",
27 "SQLITE_DISABLE_FTS4_DEFERRED", 27 "SQLITE_DISABLE_FTS4_DEFERRED",
28 "SQLITE_ENABLE_ICU", 28 "SQLITE_ENABLE_ICU",
29 "SQLITE_ENABLE_MEMORY_MANAGEMENT", 29 "SQLITE_ENABLE_MEMORY_MANAGEMENT",
30 "SQLITE_SECURE_DELETE", 30 "SQLITE_SECURE_DELETE",
31 "SQLITE_SEPARATE_CACHE_POOLS", 31 "SQLITE_SEPARATE_CACHE_POOLS",
32 "THREADSAFE", 32 "THREADSAFE",
33 ] 33 ]
34 if (is_chromeos) { 34 if (is_chromeos_os) {
35 defines += [ 35 defines += [
36 # Despite obvious warnings about not using this flag in deployment, we 36 # Despite obvious warnings about not using this flag in deployment, we
37 # are turning off sync in ChromeOS and relying on the underlying 37 # are turning off sync in ChromeOS and relying on the underlying
38 # journaling filesystem to do error recovery properly. It's much faster. 38 # journaling filesystem to do error recovery properly. It's much faster.
39 "SQLITE_NO_SYNC", 39 "SQLITE_NO_SYNC",
40 ] 40 ]
41 } 41 }
42 if (is_posix) { 42 if (is_posix) {
43 defines += [ 43 defines += [
44 # Allow xSleep() call on Unix to use usleep() rather than sleep(), so it 44 # Allow xSleep() call on Unix to use usleep() rather than sleep(), so it
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 "//third_party/icu", 150 "//third_party/icu",
151 ] 151 ]
152 if (is_clang) { 152 if (is_clang) {
153 # src/ext/icu/icu.c uses assert(!"string") which causes warnings about 153 # src/ext/icu/icu.c uses assert(!"string") which causes warnings about
154 # conversion from string literal to bool. 154 # conversion from string literal to bool.
155 configs -= [ "//build/config/clang:extra_warnings" ] 155 configs -= [ "//build/config/clang:extra_warnings" ]
156 } 156 }
157 } 157 }
158 } 158 }
159 } 159 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698