diff --git a/frameworks/js/napi/update/BUILD.gn b/frameworks/js/napi/update/BUILD.gn index 0d7b70f12358afdb05e01e73c1982082e5d10715..6da69b06394840da1e5a296ebe3cb6b7ffd99b53 100644 --- a/frameworks/js/napi/update/BUILD.gn +++ b/frameworks/js/napi/update/BUILD.gn @@ -16,21 +16,18 @@ import("../../../../updateengine.gni") import("../session/update_session.gni") ohos_shared_library("$updateengine_client_library_name") { - sources = [] - if (ability_ability_runtime_enable) { - sources += [ - "$updateengine_root_path/frameworks/js/napi/update/common/src/client_helper.cpp", - "$updateengine_root_path/frameworks/js/napi/update/common/src/iupdater.cpp", - "$updateengine_root_path/frameworks/js/napi/update/src/define_property.cpp", - "$updateengine_root_path/frameworks/js/napi/update/src/local_updater.cpp", - "$updateengine_root_path/frameworks/js/napi/update/src/restorer.cpp", - "$updateengine_root_path/frameworks/js/napi/update/src/session_manager.cpp", - "$updateengine_root_path/frameworks/js/napi/update/src/update_client.cpp", - "$updateengine_root_path/frameworks/js/napi/update/src/update_module.cpp", - "$updateengine_root_path/frameworks/js/napi/update/src/update_session.cpp", - ] - sources += session_sources - } + sources = [ + "$updateengine_root_path/frameworks/js/napi/update/common/src/client_helper.cpp", + "$updateengine_root_path/frameworks/js/napi/update/common/src/iupdater.cpp", + "$updateengine_root_path/frameworks/js/napi/update/src/define_property.cpp", + "$updateengine_root_path/frameworks/js/napi/update/src/local_updater.cpp", + "$updateengine_root_path/frameworks/js/napi/update/src/restorer.cpp", + "$updateengine_root_path/frameworks/js/napi/update/src/session_manager.cpp", + "$updateengine_root_path/frameworks/js/napi/update/src/update_client.cpp", + "$updateengine_root_path/frameworks/js/napi/update/src/update_module.cpp", + "$updateengine_root_path/frameworks/js/napi/update/src/update_session.cpp", + ] + sources += session_sources include_dirs = [ "$updateengine_root_path/frameworks/js/napi/update/common/include", @@ -49,13 +46,9 @@ ohos_shared_library("$updateengine_client_library_name") { "c_utils:utils", # sptr "hilog:libhilog", "ipc:ipc_core", - "json:nlohmann_json_static", + "napi:ace_napi", ] - if (ability_ability_runtime_enable) { - external_deps += [ "napi:ace_napi" ] - } - install_enable = true relative_install_dir = "module" part_name = "$updateengine_part_name" diff --git a/interfaces/inner_api/engine/BUILD.gn b/interfaces/inner_api/engine/BUILD.gn index 9dcd2bb1dc12069a9b5ab694a2bffcb5569cf05f..70b3cca56f5ff4f06bd6c279121085cb6b111e94 100644 --- a/interfaces/inner_api/engine/BUILD.gn +++ b/interfaces/inner_api/engine/BUILD.gn @@ -41,9 +41,6 @@ ohos_shared_library("$updateengine_inner_library_name") { branch_protector_ret = "pac_ret" defines = [ "DUAL_ADAPTER" ] - if (!ability_ability_runtime_enable) { - defines += [ "ABILITY_RUNTIME_INNER_ENABLE" ] - } sources = [ "$updateengine_root_path/interfaces/inner_api/engine/src/update_callback.cpp", "$updateengine_root_path/interfaces/inner_api/engine/src/update_callback_stub.cpp", @@ -64,6 +61,7 @@ ohos_shared_library("$updateengine_inner_library_name") { ] external_deps = [ + "ability_runtime:extension_manager", "bounds_checking_function:libsec_static", "c_utils:utils", # sptr "hilog:libhilog", @@ -78,9 +76,6 @@ ohos_shared_library("$updateengine_inner_library_name") { deps += feature_deps external_deps += feature_external_deps - if (ability_ability_runtime_enable) { - external_deps += [ "ability_runtime:extension_manager" ] - } innerapi_tags = [ "platformsdk" ] part_name = "$updateengine_part_name" subsystem_name = "updater" diff --git a/services/engine/engine_sa.gni b/services/engine/engine_sa.gni index 15f808bd0dd0c9eb1642a03851c6f767d3da9fd5..08d97178044d46f6091c94fcd788be66fe67d029 100644 --- a/services/engine/engine_sa.gni +++ b/services/engine/engine_sa.gni @@ -123,10 +123,8 @@ sa_deps += firmware_deps sa_deps += startup_deps sa_external_deps = [ - "ability_base:session_info", "access_token:libaccesstoken_sdk", "access_token:libtokenid_sdk", - "bundle_framework:appexecfwk_core", "cJSON:cjson", "c_utils:utils", # refbase "curl:curl_shared",