| Index: third_party/sqlite/BUILD.gn
|
| diff --git a/third_party/sqlite/BUILD.gn b/third_party/sqlite/BUILD.gn
|
| index 987ebdbad16e99409ef6012a9deb98d51aecd8b5..866c2449101283f3c98644074a7f009372f102b1 100644
|
| --- a/third_party/sqlite/BUILD.gn
|
| +++ b/third_party/sqlite/BUILD.gn
|
| @@ -11,13 +11,10 @@
|
|
|
| if (!use_system_sqlite) {
|
| config("sqlite_config") {
|
| - if (is_component_build && is_win) {
|
| - defines = [ "SQLITE_API=__declspec(dllimport)" ]
|
| - }
|
| include_dirs = [ "." ]
|
| }
|
|
|
| - component("sqlite") {
|
| + source_set("sqlite") {
|
| sources = [
|
| "amalgamation/sqlite3.c",
|
| "amalgamation/sqlite3.h",
|
| @@ -34,13 +31,6 @@
|
| "SQLITE_SEPARATE_CACHE_POOLS",
|
| "THREADSAFE",
|
| ]
|
| - if (is_component_build) {
|
| - if (is_win) {
|
| - defines += [ "SQLITE_API=__declspec(dllexport)" ]
|
| - } else {
|
| - defines += [ "SQLITE_API=__attribute__((visibility(\"default\")))" ]
|
| - }
|
| - }
|
| if (is_chromeos) {
|
| defines += [
|
| # Despite obvious warnings about not using this flag in deployment, we
|
| @@ -94,10 +84,7 @@
|
| if (is_linux) {
|
| libs = [ "dl" ]
|
| } else if (is_mac || is_ios) {
|
| - libs = [
|
| - "CoreFoundation.framework",
|
| - "CoreServices.framework",
|
| - ]
|
| + libs = [ "CoreFoundation.framework" ]
|
| } else if (is_android) {
|
| defines += [
|
| "SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576",
|
|
|