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

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

Issue 1437823005: [sql] uClibc doesn't provide malloc_usable_size(). (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 # Use pread/pwrite directly rather than emulating them. 72 # Use pread/pwrite directly rather than emulating them.
73 'USE_PREAD=1', 73 'USE_PREAD=1',
74 ], 74 ],
75 }], 75 }],
76 ['OS == "linux" or OS == "android"', { 76 ['OS == "linux" or OS == "android"', {
77 'defines': [ 77 'defines': [
78 # Linux provides fdatasync(), a faster equivalent of fsync(). 78 # Linux provides fdatasync(), a faster equivalent of fsync().
79 'fdatasync=fdatasync', 79 'fdatasync=fdatasync',
80 ], 80 ],
81 }], 81 }],
82 # SQLite wants to track malloc sizes. On OSX it uses malloc_size(), on 82 # Pull in config.h on Linux. This allows use of preprocessor macros
83 # Windows _msize(), elsewhere it handles it manually by enlarging the 83 # which are not available to the build config.
84 # malloc and injecting a field. Enable malloc_usable_size() for Linux.
85 # NOTE(shess): Android does _not_ export malloc_usable_size().
86 ['OS == "linux"', { 84 ['OS == "linux"', {
87 'defines': [ 85 'defines': [
88 'HAVE_MALLOC_H', 86 '_HAVE_SQLITE_CONFIG_H',
89 'HAVE_MALLOC_USABLE_SIZE',
90 ], 87 ],
91 }], 88 }],
92 ['use_system_sqlite', { 89 ['use_system_sqlite', {
93 'type': 'none', 90 'type': 'none',
94 'direct_dependent_settings': { 91 'direct_dependent_settings': {
95 'defines': [ 92 'defines': [
96 'USE_SYSTEM_SQLITE', 93 'USE_SYSTEM_SQLITE',
97 ], 94 ],
98 }, 95 },
99 96
(...skipping 29 matching lines...) Expand all
129 '<!@(pkg-config --libs-only-l sqlite3)', 126 '<!@(pkg-config --libs-only-l sqlite3)',
130 ], 127 ],
131 }, 128 },
132 }], 129 }],
133 ], 130 ],
134 }, { # !use_system_sqlite 131 }, { # !use_system_sqlite
135 # "sqlite3" can cause conflicts with the system library. 132 # "sqlite3" can cause conflicts with the system library.
136 'product_name': 'chromium_sqlite3', 133 'product_name': 'chromium_sqlite3',
137 'type': '<(component)', 134 'type': '<(component)',
138 'sources': [ 135 'sources': [
136 'amalgamation/config.h',
139 'amalgamation/sqlite3.h', 137 'amalgamation/sqlite3.h',
140 'amalgamation/sqlite3.c', 138 'amalgamation/sqlite3.c',
141 ], 139 ],
142 'variables': { 140 'variables': {
143 'clang_warning_flags': [ 141 'clang_warning_flags': [
144 # sqlite contains a few functions that are unused, at least on 142 # sqlite contains a few functions that are unused, at least on
145 # Windows with Chromium's sqlite patches applied 143 # Windows with Chromium's sqlite patches applied
146 # (interiorCursorEOF fts3EvalDeferredPhrase 144 # (interiorCursorEOF fts3EvalDeferredPhrase
147 # fts3EvalSelectDeferred sqlite3Fts3InitHashTable 145 # fts3EvalSelectDeferred sqlite3Fts3InitHashTable
148 # sqlite3Fts3InitTok). 146 # sqlite3Fts3InitTok).
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 'SQLITE_CORE', 247 'SQLITE_CORE',
250 ], 248 ],
251 'sources': [ 249 'sources': [
252 'src/ext/icu/icu.c', 250 'src/ext/icu/icu.c',
253 ], 251 ],
254 }, 252 },
255 ], 253 ],
256 }], 254 }],
257 ], 255 ],
258 } 256 }
OLDNEW
« third_party/sqlite/amalgamation/config.h ('K') | « third_party/sqlite/amalgamation/config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698