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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 '<!@(pkg-config --libs-only-L --libs-only-other sqlite3)', | 105 '<!@(pkg-config --libs-only-L --libs-only-other sqlite3)', |
106 ], | 106 ], |
107 'libraries': [ | 107 'libraries': [ |
108 '<!@(pkg-config --libs-only-l sqlite3)', | 108 '<!@(pkg-config --libs-only-l sqlite3)', |
109 ], | 109 ], |
110 }, | 110 }, |
111 }], | 111 }], |
112 ], | 112 ], |
113 }, { # !use_system_sqlite | 113 }, { # !use_system_sqlite |
114 'product_name': 'sqlite3', | 114 'product_name': 'sqlite3', |
115 'type': 'static_library', | 115 'type': '<(component)', |
116 'sources': [ | 116 'sources': [ |
117 'amalgamation/sqlite3.h', | 117 'amalgamation/sqlite3.h', |
118 'amalgamation/sqlite3.c', | 118 'amalgamation/sqlite3.c', |
119 ], | 119 ], |
120 'variables': { | 120 'variables': { |
121 'clang_warning_flags': [ | 121 'clang_warning_flags': [ |
122 # sqlite contains a few functions that are unused, at least on | 122 # sqlite contains a few functions that are unused, at least on |
123 # Windows with Chromium's sqlite patches applied | 123 # Windows with Chromium's sqlite patches applied |
124 # (interiorCursorEOF fts3EvalDeferredPhrase | 124 # (interiorCursorEOF fts3EvalDeferredPhrase |
125 # fts3EvalSelectDeferred sqlite3Fts3InitHashTable | 125 # fts3EvalSelectDeferred sqlite3Fts3InitHashTable |
(...skipping 11 matching lines...) Expand all Loading... |
137 'direct_dependent_settings': { | 137 'direct_dependent_settings': { |
138 'include_dirs': [ | 138 'include_dirs': [ |
139 '.', | 139 '.', |
140 '../..', | 140 '../..', |
141 ], | 141 ], |
142 }, | 142 }, |
143 'msvs_disabled_warnings': [ | 143 'msvs_disabled_warnings': [ |
144 4244, 4267, | 144 4244, 4267, |
145 ], | 145 ], |
146 'conditions': [ | 146 'conditions': [ |
| 147 ['OS == "win" and component == "shared_library"', { |
| 148 'defines': ['SQLITE_API=__declspec(dllexport)'], |
| 149 }], |
| 150 ['OS != "win" and component == "shared_library"', { |
| 151 'defines': ['SQLITE_API=__attribute__((visibility("default")))'], |
| 152 }], |
147 ['OS=="linux"', { | 153 ['OS=="linux"', { |
148 'link_settings': { | 154 'link_settings': { |
149 'libraries': [ | 155 'libraries': [ |
150 '-ldl', | 156 '-ldl', |
151 ], | 157 ], |
152 }, | 158 }, |
153 }], | 159 }], |
154 ['OS == "mac" or OS == "ios"', { | 160 ['OS == "mac" or OS == "ios"', { |
155 'link_settings': { | 161 'link_settings': { |
156 'libraries': [ | 162 'libraries': [ |
157 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework
', | 163 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework
', |
| 164 '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework', |
158 ], | 165 ], |
159 }, | 166 }, |
160 }], | 167 }], |
161 ['OS == "android"', { | 168 ['OS == "android"', { |
162 'defines': [ | 169 'defines': [ |
163 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', | 170 'SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576', |
164 'SQLITE_DEFAULT_AUTOVACUUM=1', | 171 'SQLITE_DEFAULT_AUTOVACUUM=1', |
165 'SQLITE_TEMP_STORE=3', | 172 'SQLITE_TEMP_STORE=3', |
166 'SQLITE_ENABLE_FTS3_BACKWARDS', | 173 'SQLITE_ENABLE_FTS3_BACKWARDS', |
167 'SQLITE_DEFAULT_FILE_FORMAT=4', | 174 'SQLITE_DEFAULT_FILE_FORMAT=4', |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 'SQLITE_CORE', | 226 'SQLITE_CORE', |
220 ], | 227 ], |
221 'sources': [ | 228 'sources': [ |
222 'src/ext/icu/icu.c', | 229 'src/ext/icu/icu.c', |
223 ], | 230 ], |
224 }, | 231 }, |
225 ], | 232 ], |
226 }], | 233 }], |
227 ], | 234 ], |
228 } | 235 } |
OLD | NEW |