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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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': '<(component)', | 119 'type': 'static_library', |
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 Loading... |
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 }], | |
160 ['OS=="linux"', { | 151 ['OS=="linux"', { |
161 'link_settings': { | 152 'link_settings': { |
162 'libraries': [ | 153 'libraries': [ |
163 '-ldl', | 154 '-ldl', |
164 ], | 155 ], |
165 }, | 156 }, |
166 }], | 157 }], |
167 ['OS == "mac" or OS == "ios"', { | 158 ['OS == "mac" or OS == "ios"', { |
168 'link_settings': { | 159 'link_settings': { |
169 'libraries': [ | 160 'libraries': [ |
170 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework
', | 161 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework
', |
171 '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework', | |
172 ], | 162 ], |
173 }, | 163 }, |
174 }], | 164 }], |
175 ['OS == "android"', { | 165 ['OS == "android"', { |
176 'defines': [ | 166 'defines': [ |
177 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', | 167 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', |
178 'SQLITE_DEFAULT_AUTOVACUUM=1', | 168 'SQLITE_DEFAULT_AUTOVACUUM=1', |
179 'SQLITE_TEMP_STORE=3', | 169 'SQLITE_TEMP_STORE=3', |
180 'SQLITE_ENABLE_FTS3_BACKWARDS', | 170 'SQLITE_ENABLE_FTS3_BACKWARDS', |
181 'SQLITE_DEFAULT_FILE_FORMAT=4', | 171 'SQLITE_DEFAULT_FILE_FORMAT=4', |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 'SQLITE_CORE', | 223 'SQLITE_CORE', |
234 ], | 224 ], |
235 'sources': [ | 225 'sources': [ |
236 'src/ext/icu/icu.c', | 226 'src/ext/icu/icu.c', |
237 ], | 227 ], |
238 }, | 228 }, |
239 ], | 229 ], |
240 }], | 230 }], |
241 ], | 231 ], |
242 } | 232 } |
OLD | NEW |