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

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

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | third_party/sqlite/README.chromium » ('j') | 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 # percentile of Chrome databases in the wild. 73 # percentile of Chrome databases in the wild.
74 # TODO(shess): A 64-bit-specific value could be 1G or more. 74 # TODO(shess): A 64-bit-specific value could be 1G or more.
75 # TODO(shess): Figure out if exceeding this is costly. 75 # TODO(shess): Figure out if exceeding this is costly.
76 "SQLITE_MAX_MMAP_SIZE=268435456", 76 "SQLITE_MAX_MMAP_SIZE=268435456",
77 77
78 # Use a read-only memory map when mmap'ed I/O is enabled to prevent memory 78 # Use a read-only memory map when mmap'ed I/O is enabled to prevent memory
79 # stompers from directly corrupting the database. 79 # stompers from directly corrupting the database.
80 # TODO(shess): Upstream the ability to use this define. 80 # TODO(shess): Upstream the ability to use this define.
81 "SQLITE_MMAP_READ_ONLY=1", 81 "SQLITE_MMAP_READ_ONLY=1",
82 82
83 # By default SQLite pre-allocates 100 pages of pcache data, which will not
84 # be released until the handle is closed. This is contrary to Chromium's
85 # memory-usage goals.
86 "SQLITE_DEFAULT_PCACHE_INITSZ=0",
87
83 # NOTE(shess): Some defines can affect the amalgamation. Those should be 88 # NOTE(shess): Some defines can affect the amalgamation. Those should be
84 # added to google_generate_amalgamation.sh, and the amalgamation 89 # added to google_generate_amalgamation.sh, and the amalgamation
85 # re-generated. Usually this involves disabling features which include 90 # re-generated. Usually this involves disabling features which include
86 # keywords or syntax, for instance SQLITE_OMIT_VIRTUALTABLE omits the 91 # keywords or syntax, for instance SQLITE_OMIT_VIRTUALTABLE omits the
87 # virtual table syntax entirely. Missing an item usually results in 92 # virtual table syntax entirely. Missing an item usually results in
88 # syntax working but execution failing. Review: 93 # syntax working but execution failing. Review:
89 # src/src/parse.py 94 # src/src/parse.py
90 # src/tool/mkkeywordhash.c 95 # src/tool/mkkeywordhash.c
91 ] 96 ]
92 if (is_component_build) { 97 if (is_component_build) {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 "//third_party/icu", 242 "//third_party/icu",
238 ] 243 ]
239 if (is_clang) { 244 if (is_clang) {
240 # src/ext/icu/icu.c uses assert(!"string") which causes warnings about 245 # src/ext/icu/icu.c uses assert(!"string") which causes warnings about
241 # conversion from string literal to bool. 246 # conversion from string literal to bool.
242 configs -= [ "//build/config/clang:extra_warnings" ] 247 configs -= [ "//build/config/clang:extra_warnings" ]
243 } 248 }
244 } 249 }
245 } 250 }
246 } 251 }
OLDNEW
« no previous file with comments | « no previous file | third_party/sqlite/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698