diff --git a/BUILD.gn b/BUILD.gn index f35ac38307551c55586d68f30827f89caee4114e..8178b97f1e75a78ef802f36a5a06d15fb26d787e 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -14,6 +14,9 @@ if (defined(ohos_lite)) { import("//build/lite/config/component/lite_component.gni") if (ohos_kernel_type == "liteos_m") { + lite_component("device_manager_hap") { + features = [] + } lite_component("device_manager") { features = [ "interfaces/inner_kits/native_cpp:devicemanagersdk" ] } @@ -25,6 +28,9 @@ if (defined(ohos_lite)) { deps = [] } } else { + lite_component("device_manager_hap") { + features = [] + } lite_component("device_manager") { features = [ "utils:devicemanagerutils", @@ -47,6 +53,9 @@ if (defined(ohos_lite)) { if (defined(harmony_industry_project) && harmony_industry_project == "MINE_HARMONY") { } + group("device_manager_hap") { + deps = [ "display/entry:DeviceManager_UI" ] + } group("device_manager") { deps = [ "ext:ext_modules", diff --git a/bundle.json b/bundle.json index dd2be1b8dad6fb5ddb3d4c0337a7ddb2e3352cb4..b7071974e9e598be249dc53669f62ab3f4b23389 100644 --- a/bundle.json +++ b/bundle.json @@ -71,7 +71,8 @@ "service_group": [ "//foundation/distributedhardware/device_manager:device_manager", "//foundation/distributedhardware/device_manager/sa_profile:device_manager.cfg", - "//foundation/distributedhardware/device_manager/sa_profile:dm_sa_profile" + "//foundation/distributedhardware/device_manager/sa_profile:dm_sa_profile", + "//foundation/distributedhardware/device_manager:device_manager_hap" ] }, "inner_kits": [{ diff --git a/display/entry/BUILD.gn b/display/entry/BUILD.gn index 60875929a816edf45474359b02dda4e34f99aead..2f75752258380077b0142e32a7890da4dc99deeb 100644 --- a/display/entry/BUILD.gn +++ b/display/entry/BUILD.gn @@ -22,8 +22,8 @@ ohos_hap("DeviceManager_UI") { publicity_file = "../publicity.xml" certificate_profile = "../signature/DeviceManager_UI.p7b" hap_name = "DeviceManager_UI" - part_name = "prebuilt_hap" - subsystem_name = "applications" + part_name = "device_manager" + subsystem_name = "distributedhardware" js_build_mode = "release" module_install_dir = "app/com.ohos.devicemanagerui" if (defined(sign_hap_py_path)) {