diff --git a/BUILD.gn b/BUILD.gn index 3b03c3791046de8e2318c198c969cf877be217e9..be2d45b2fe6aadd308ade90e10077b051cfd80f7 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -160,7 +160,6 @@ ohos_executable("sqlite3") { include_dirs = [ "$sqlite_patched_dir/include" ] sources = [ "$sqlite_patched_dir/src/shell.c", - "$sqlite_patched_dir/src/sqlite3.c", ] defines = [ @@ -195,7 +194,15 @@ ohos_executable("sqlite3") { "-Wno-implicit-fallthrough", ] - deps = [ "//third_party/sqlite/patch:apply_patch" ] + deps = [ + ":sqlite", + "//third_party/sqlite/patch:apply_patch", + ] + + external_deps = [ "c_utils:utils" ] + configs = [ ":sqlite3_private_config" ] + part_name = "sqlite" + subsystem_name = "thirdparty" } if (is_mingw || is_mac) { diff --git a/bundle.json b/bundle.json index b733d959f77b1571557362debe2efd21b3b2745b..b2b3d2c807d8deec543415e31768e49bcc9f70c3 100644 --- a/bundle.json +++ b/bundle.json @@ -31,6 +31,7 @@ "build": { "sub_component": [ "//third_party/sqlite:sqlite", + "//third_party/sqlite:sqlite3", "//third_party/sqlite:sqliteicu" ], "inner_kits": [