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

Side by Side Diff: third_party/sqlite/sqlite.gyp

Issue 1035903002: Let sqlite use fdatasync() on Linux-based systems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « third_party/sqlite/BUILD.gn ('k') | 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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ['os_posix == 1', { 55 ['os_posix == 1', {
56 'defines': [ 56 'defines': [
57 # Allow xSleep() call on Unix to use usleep() rather than sleep(). 57 # Allow xSleep() call on Unix to use usleep() rather than sleep().
58 # Microsecond precision is better than second precision. Should 58 # Microsecond precision is better than second precision. Should
59 # only affect contended databases via the busy callback. Browser 59 # only affect contended databases via the busy callback. Browser
60 # profile databases are mostly exclusive, but renderer databases may 60 # profile databases are mostly exclusive, but renderer databases may
61 # allow for contention. 61 # allow for contention.
62 'HAVE_USLEEP=1', 62 'HAVE_USLEEP=1',
63 ], 63 ],
64 }], 64 }],
65 ['OS == "linux" or OS == "android"', {
66 'defines': [
67 # Linux provides fdatasync(), a faster equivalent of fsync().
68 'fdatasync=fdatasync',
69 ],
70 }],
Scott Hess - ex-Googler 2015/03/26 17:46:00 I couldn't figure out if this should be here...
Scott Hess - ex-Googler 2015/03/26 21:51:07 I was updating my Linux client, so I patched your
hashimoto 2015/03/27 05:15:02 I chose this place because this |fdatasync| is use
65 ['use_system_sqlite', { 71 ['use_system_sqlite', {
66 'type': 'none', 72 'type': 'none',
67 'direct_dependent_settings': { 73 'direct_dependent_settings': {
68 'defines': [ 74 'defines': [
69 'USE_SYSTEM_SQLITE', 75 'USE_SYSTEM_SQLITE',
70 ], 76 ],
71 }, 77 },
72 78
73 'conditions': [ 79 'conditions': [
74 ['OS == "ios"', { 80 ['OS == "ios"', {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 'msvs_disabled_warnings': [ 131 'msvs_disabled_warnings': [
126 4018, 4244, 4267, 132 4018, 4244, 4267,
127 ], 133 ],
128 'conditions': [ 134 'conditions': [
129 ['OS=="linux"', { 135 ['OS=="linux"', {
130 'link_settings': { 136 'link_settings': {
131 'libraries': [ 137 'libraries': [
132 '-ldl', 138 '-ldl',
133 ], 139 ],
134 }, 140 },
135 }], 141 }],
Scott Hess - ex-Googler 2015/03/26 17:46:00 Or here,
136 ['OS == "mac" or OS == "ios"', { 142 ['OS == "mac" or OS == "ios"', {
137 'link_settings': { 143 'link_settings': {
138 'libraries': [ 144 'libraries': [
139 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework ', 145 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework ',
140 ], 146 ],
141 }, 147 },
142 }], 148 }],
143 ['OS == "android"', { 149 ['OS == "android"', {
144 'defines': [ 150 'defines': [
145 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', 151 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576',
146 'SQLITE_DEFAULT_AUTOVACUUM=1', 152 'SQLITE_DEFAULT_AUTOVACUUM=1',
147 'SQLITE_TEMP_STORE=3', 153 'SQLITE_TEMP_STORE=3',
148 'SQLITE_ENABLE_FTS3_BACKWARDS', 154 'SQLITE_ENABLE_FTS3_BACKWARDS',
149 'SQLITE_DEFAULT_FILE_FORMAT=4', 155 'SQLITE_DEFAULT_FILE_FORMAT=4',
Scott Hess - ex-Googler 2015/03/26 17:46:00 and here.
150 ], 156 ],
151 }], 157 }],
152 ['os_posix == 1 and OS != "mac" and OS != "android"', { 158 ['os_posix == 1 and OS != "mac" and OS != "android"', {
153 'cflags': [ 159 'cflags': [
154 # SQLite doesn't believe in compiler warnings, 160 # SQLite doesn't believe in compiler warnings,
155 # preferring testing. 161 # preferring testing.
156 # http://www.sqlite.org/faq.html#q17 162 # http://www.sqlite.org/faq.html#q17
157 '-Wno-int-to-pointer-cast', 163 '-Wno-int-to-pointer-cast',
158 '-Wno-pointer-to-int-cast', 164 '-Wno-pointer-to-int-cast',
159 ], 165 ],
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 '../icu/icu.gyp:icuuc', 209 '../icu/icu.gyp:icuuc',
204 ], 210 ],
205 'sources': [ 211 'sources': [
206 'src/ext/icu/icu.c', 212 'src/ext/icu/icu.c',
207 ], 213 ],
208 }, 214 },
209 ], 215 ],
210 }], 216 }],
211 ], 217 ],
212 } 218 }
OLDNEW
« no previous file with comments | « third_party/sqlite/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698