From 79455c200759eeb58ce3da12bdc5c468e4d5acec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E9=98=B3=E6=BA=A2?= Date: Sat, 13 Sep 2025 16:29:36 +0800 Subject: [PATCH] =?UTF-8?q?hiappevent=E4=BE=9D=E8=B5=96=E5=BA=93=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢阳溢 --- BUILD.gn | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 34881857a1..31c70e6b37 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -341,6 +341,7 @@ ohos_shared_library("fmskit_native") { public_configs = [ ":fmskit_public_config" ] sources = [ "interfaces/kits/native/src/form_caller_mgr.cpp", + "interfaces/inner_api/src/form_event_hiappevent.cpp", "interfaces/kits/native/src/form_errors.cpp", "interfaces/kits/native/src/form_host_caller.cpp", "interfaces/kits/native/src/form_host_client.cpp", @@ -381,6 +382,8 @@ ohos_shared_library("fmskit_native") { } if (hiappevent_global_part_enabled) { defines += [ "NO_RUNTIME_EMULATOR" ] + + external_deps += [ "hiappevent:hiappevent_innerapi" ] } } @@ -457,7 +460,6 @@ ohos_shared_library("form_manager") { sources = [ "interfaces/inner_api/src/form_ashmem.cpp", "interfaces/inner_api/src/form_ecological_rule_param.cpp", - "interfaces/inner_api/src/form_event_hiappevent.cpp", "interfaces/inner_api/src/form_host_proxy.cpp", "interfaces/inner_api/src/form_host_stub.cpp", "interfaces/inner_api/src/form_info_filter.cpp", @@ -519,13 +521,6 @@ ohos_shared_library("form_manager") { subsystem_name = "ability" innerapi_tags = [ "platformsdk" ] part_name = "form_fwk" - - defines = [] - if (hiappevent_global_part_enabled) { - defines += [ "NO_RUNTIME_EMULATOR" ] - - external_deps += [ "hiappevent:hiappevent_innerapi" ] - } } ohos_prebuilt_etc("form_config") { -- Gitee