From 6edb157b27cdc127191d8696473bd138527ab93e Mon Sep 17 00:00:00 2001 From: worldants Date: Thu, 10 Feb 2022 08:54:13 +0000 Subject: [PATCH] Signed-off-by: worldants --- bundle.json | 66 ++++++++++++++++++++++++++++ client/BUILD.gn | 2 +- engine/BUILD.gn | 4 +- engine/sa_profile/BUILD.gn | 2 +- interfaces/innerkits/engine/BUILD.gn | 4 +- test/unittest/BUILD.gn | 2 +- 6 files changed, 73 insertions(+), 7 deletions(-) create mode 100644 bundle.json diff --git a/bundle.json b/bundle.json new file mode 100644 index 00000000..5c3085d1 --- /dev/null +++ b/bundle.json @@ -0,0 +1,66 @@ +{ + "name": "@ohos/update_service", + "description": "A system ability started by the init process of OHOS to implement an update", + "version": "3.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "base/update/updateservice" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "update_service", + "subsystem": "updater", + "syscap": [ + "SystemCapability.Updater.update_service" + ], + "features": [], + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [ + "utils_base", + "hiviewdfx_hilog_native", + "ipc", + "safwk", + "samgr_standard", + "napi", + "startup_l2" + ], + "third_party": [ + "curl", + "libxml2", + "cJSON", + "bounds_checking_function", + "openssl" + ] + }, + "build": { + "sub_component": [ + "//base/update/updateservice/client:update", + "//base/update/updateservice/engine:updateservice", + "//base/update/updateservice/engine:updater_sa.rc", + "//base/update/updateservice/engine/sa_profile:updater_sa_profile", + "//base/update/updateservice/interfaces/innerkits/engine:updateservicekits" + ], + "inner_kits": [ + { + "header": { + "header_base":"//base/update/updateservice/interfaces/innerkits/include", + "header_files": [ + "iupdate_callback.h", + "iupdate_service.h", + "update_helper.h", + "update_service_kits_impl.h", + "update_service_kits.h" + ] + }, + "name": "//base/update/updateservice/interfaces/innerkits/engine:updateservicekits" + } + ], + "test": [] + } + } +} \ No newline at end of file diff --git a/client/BUILD.gn b/client/BUILD.gn index ad8d76ba..1762d4d9 100755 --- a/client/BUILD.gn +++ b/client/BUILD.gn @@ -61,5 +61,5 @@ ohos_shared_library("update") { install_enable = true relative_install_dir = "module" - part_name = "updater" + part_name = "update_service" } diff --git a/engine/BUILD.gn b/engine/BUILD.gn index b9d1f8c3..d1d73e0e 100755 --- a/engine/BUILD.gn +++ b/engine/BUILD.gn @@ -20,7 +20,7 @@ ohos_prebuilt_etc("updater_sa.rc") { source = "etc/updater_sa.rc" } relative_install_dir = "init" - part_name = "updater" + part_name = "update_service" } ohos_shared_library("updateservice") { @@ -83,5 +83,5 @@ ohos_shared_library("updateservice") { "startup_l2:syspara", ] - part_name = "updater" + part_name = "update_service" } diff --git a/engine/sa_profile/BUILD.gn b/engine/sa_profile/BUILD.gn index ed848f65..56a847c6 100755 --- a/engine/sa_profile/BUILD.gn +++ b/engine/sa_profile/BUILD.gn @@ -16,5 +16,5 @@ import("//build/ohos/sa_profile/sa_profile.gni") ohos_sa_profile("updater_sa_profile") { sources = [ "3006.xml" ] - part_name = "updater" + part_name = "update_service" } diff --git a/interfaces/innerkits/engine/BUILD.gn b/interfaces/innerkits/engine/BUILD.gn index e662d381..a4ce1192 100755 --- a/interfaces/innerkits/engine/BUILD.gn +++ b/interfaces/innerkits/engine/BUILD.gn @@ -16,7 +16,7 @@ import("//build/ohos.gni") ohos_prebuilt_etc("updater_sa.rc") { source = "etc/updater_sa.rc" relative_install_dir = "init" - part_name = "updater" + part_name = "update_service" } ohos_static_library("updateservicekits") { @@ -60,5 +60,5 @@ ohos_static_library("updateservicekits") { "startup_l2:syspara", ] - part_name = "updater" + part_name = "update_service" } diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index 7ea558a9..3ffa392b 100644 --- a/test/unittest/BUILD.gn +++ b/test/unittest/BUILD.gn @@ -120,5 +120,5 @@ ohos_unittest("updateservice_unittest") { public_configs = [ ":utest_config" ] install_enable = true - part_name = "updater" + part_name = "update_service" } -- Gitee