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

Unified Diff: third_party/sqlite/sqlite.gyp

Issue 1312463002: [sql] Browser-side changes to allow sqlite to be a shlib. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check removal of sql/proxy.* Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/amalgamation/sqlite3.c ('k') | third_party/sqlite/src/src/recover.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/sqlite.gyp
diff --git a/third_party/sqlite/sqlite.gyp b/third_party/sqlite/sqlite.gyp
index 5fc4dc18ed49527b458d3770e064dc128f379675..354d88eacababfe6e3dec6ec945b77d28be444c6 100644
--- a/third_party/sqlite/sqlite.gyp
+++ b/third_party/sqlite/sqlite.gyp
@@ -112,7 +112,7 @@
],
}, { # !use_system_sqlite
'product_name': 'sqlite3',
- 'type': 'static_library',
+ 'type': '<(component)',
'sources': [
'amalgamation/sqlite3.h',
'amalgamation/sqlite3.c',
@@ -144,6 +144,12 @@
4244, 4267,
],
'conditions': [
+ ['OS == "win" and component == "shared_library"', {
+ 'defines': ['SQLITE_API=__declspec(dllexport)'],
+ }],
+ ['OS != "win" and component == "shared_library"', {
+ 'defines': ['SQLITE_API=__attribute__((visibility("default")))'],
+ }],
['OS=="linux"', {
'link_settings': {
'libraries': [
@@ -155,6 +161,7 @@
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
+ '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework',
],
},
}],
« no previous file with comments | « third_party/sqlite/amalgamation/sqlite3.c ('k') | third_party/sqlite/src/src/recover.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698