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

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

Issue 1322463002: [sqlite] Respect the gyp and gn component switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 '<!@(pkg-config --libs-only-L --libs-only-other sqlite3)', 109 '<!@(pkg-config --libs-only-L --libs-only-other sqlite3)',
110 ], 110 ],
111 'libraries': [ 111 'libraries': [
112 '<!@(pkg-config --libs-only-l sqlite3)', 112 '<!@(pkg-config --libs-only-l sqlite3)',
113 ], 113 ],
114 }, 114 },
115 }], 115 }],
116 ], 116 ],
117 }, { # !use_system_sqlite 117 }, { # !use_system_sqlite
118 'product_name': 'sqlite3', 118 'product_name': 'sqlite3',
119 'type': 'static_library', 119 'type': '<(component)',
120 'sources': [ 120 'sources': [
121 'amalgamation/sqlite3.h', 121 'amalgamation/sqlite3.h',
122 'amalgamation/sqlite3.c', 122 'amalgamation/sqlite3.c',
123 ], 123 ],
124 'variables': { 124 'variables': {
125 'clang_warning_flags': [ 125 'clang_warning_flags': [
126 # sqlite contains a few functions that are unused, at least on 126 # sqlite contains a few functions that are unused, at least on
127 # Windows with Chromium's sqlite patches applied 127 # Windows with Chromium's sqlite patches applied
128 # (interiorCursorEOF fts3EvalDeferredPhrase 128 # (interiorCursorEOF fts3EvalDeferredPhrase
129 # fts3EvalSelectDeferred sqlite3Fts3InitHashTable 129 # fts3EvalSelectDeferred sqlite3Fts3InitHashTable
(...skipping 11 matching lines...) Expand all
141 'direct_dependent_settings': { 141 'direct_dependent_settings': {
142 'include_dirs': [ 142 'include_dirs': [
143 '.', 143 '.',
144 '../..', 144 '../..',
145 ], 145 ],
146 }, 146 },
147 'msvs_disabled_warnings': [ 147 'msvs_disabled_warnings': [
148 4244, 4267, 148 4244, 4267,
149 ], 149 ],
150 'conditions': [ 150 'conditions': [
151 ['OS == "win" and component == "shared_library"', {
152 'defines': ['SQLITE_API=__declspec(dllexport)'],
153 'direct_dependent_settings': {
154 'defines': ['SQLITE_API=__declspec(dllimport)'],
155 },
156 }],
157 ['OS != "win" and component == "shared_library"', {
158 'defines': ['SQLITE_API=__attribute__((visibility("default")))'],
159 }],
151 ['OS=="linux"', { 160 ['OS=="linux"', {
152 'link_settings': { 161 'link_settings': {
153 'libraries': [ 162 'libraries': [
154 '-ldl', 163 '-ldl',
155 ], 164 ],
156 }, 165 },
157 }], 166 }],
158 ['OS == "mac" or OS == "ios"', { 167 ['OS == "mac" or OS == "ios"', {
159 'link_settings': { 168 'link_settings': {
160 'libraries': [ 169 'libraries': [
161 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework ', 170 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework ',
171 '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework',
162 ], 172 ],
163 }, 173 },
164 }], 174 }],
165 ['OS == "android"', { 175 ['OS == "android"', {
166 'defines': [ 176 'defines': [
167 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', 177 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576',
168 'SQLITE_DEFAULT_AUTOVACUUM=1', 178 'SQLITE_DEFAULT_AUTOVACUUM=1',
169 'SQLITE_TEMP_STORE=3', 179 'SQLITE_TEMP_STORE=3',
170 'SQLITE_ENABLE_FTS3_BACKWARDS', 180 'SQLITE_ENABLE_FTS3_BACKWARDS',
171 'SQLITE_DEFAULT_FILE_FORMAT=4', 181 'SQLITE_DEFAULT_FILE_FORMAT=4',
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 'SQLITE_CORE', 233 'SQLITE_CORE',
224 ], 234 ],
225 'sources': [ 235 'sources': [
226 'src/ext/icu/icu.c', 236 'src/ext/icu/icu.c',
227 ], 237 ],
228 }, 238 },
229 ], 239 ],
230 }], 240 }],
231 ], 241 ],
232 } 242 }
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