| 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 15 matching lines...) Expand all Loading... |
| 26 [ 'chromeos==1' , { | 26 [ 'chromeos==1' , { |
| 27 'defines': [ | 27 'defines': [ |
| 28 # Despite obvious warnings about not using this flag | 28 # Despite obvious warnings about not using this flag |
| 29 # in deployment, we are turning off sync in ChromeOS | 29 # in deployment, we are turning off sync in ChromeOS |
| 30 # and relying on the underlying journaling filesystem | 30 # and relying on the underlying journaling filesystem |
| 31 # to do error recovery properly. It's much faster. | 31 # to do error recovery properly. It's much faster. |
| 32 'SQLITE_NO_SYNC', | 32 'SQLITE_NO_SYNC', |
| 33 ], | 33 ], |
| 34 }, | 34 }, |
| 35 ], | 35 ], |
| 36 ['os_posix == 1', { |
| 37 'defines': [ |
| 38 # Allow xSleep() call on Unix to use usleep() rather than sleep(). |
| 39 # Microsecond precision is better than second precision. Should |
| 40 # only affect contended databases via the busy callback. Browser |
| 41 # profile databases are mostly exclusive, but renderer databases may |
| 42 # allow for contention. |
| 43 'HAVE_USLEEP=1', |
| 44 ], |
| 45 }], |
| 36 ['use_system_sqlite', { | 46 ['use_system_sqlite', { |
| 37 'type': 'none', | 47 'type': 'none', |
| 38 'direct_dependent_settings': { | 48 'direct_dependent_settings': { |
| 39 'defines': [ | 49 'defines': [ |
| 40 'USE_SYSTEM_SQLITE', | 50 'USE_SYSTEM_SQLITE', |
| 41 ], | 51 ], |
| 42 }, | 52 }, |
| 43 | 53 |
| 44 'conditions': [ | 54 'conditions': [ |
| 45 ['OS == "ios"', { | 55 ['OS == "ios"', { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 }], | 135 }], |
| 126 ['OS == "mac" or OS == "ios"', { | 136 ['OS == "mac" or OS == "ios"', { |
| 127 'link_settings': { | 137 'link_settings': { |
| 128 'libraries': [ | 138 'libraries': [ |
| 129 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework
', | 139 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework
', |
| 130 ], | 140 ], |
| 131 }, | 141 }, |
| 132 }], | 142 }], |
| 133 ['OS == "android"', { | 143 ['OS == "android"', { |
| 134 'defines': [ | 144 'defines': [ |
| 135 'HAVE_USLEEP=1', | |
| 136 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', | 145 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', |
| 137 'SQLITE_DEFAULT_AUTOVACUUM=1', | 146 'SQLITE_DEFAULT_AUTOVACUUM=1', |
| 138 'SQLITE_TEMP_STORE=3', | 147 'SQLITE_TEMP_STORE=3', |
| 139 'SQLITE_ENABLE_FTS3_BACKWARDS', | 148 'SQLITE_ENABLE_FTS3_BACKWARDS', |
| 140 'SQLITE_DEFAULT_FILE_FORMAT=4', | 149 'SQLITE_DEFAULT_FILE_FORMAT=4', |
| 141 ], | 150 ], |
| 142 }], | 151 }], |
| 143 ['os_posix == 1 and OS != "mac" and OS != "android"', { | 152 ['os_posix == 1 and OS != "mac" and OS != "android"', { |
| 144 'cflags': [ | 153 'cflags': [ |
| 145 # SQLite doesn't believe in compiler warnings, | 154 # SQLite doesn't believe in compiler warnings, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 '../icu/icu.gyp:icuuc', | 225 '../icu/icu.gyp:icuuc', |
| 217 ], | 226 ], |
| 218 'sources': [ | 227 'sources': [ |
| 219 'src/ext/icu/icu.c', | 228 'src/ext/icu/icu.c', |
| 220 ], | 229 ], |
| 221 }, | 230 }, |
| 222 ], | 231 ], |
| 223 }], | 232 }], |
| 224 ], | 233 ], |
| 225 } | 234 } |
| OLD | NEW |