diff --git a/bundle.json b/bundle.json index 4b3ca904e064db31b970b68e38a83dc4da9e561c..86c1f004b69300e039fb67019079f5577169e4b4 100644 --- a/bundle.json +++ b/bundle.json @@ -30,6 +30,7 @@ "hitrace", "hilog", "hisysevent", + "eventhandler", "json", "libuv", "cJSON", diff --git a/toolchain_config.gni b/toolchain_config.gni index e02bd052a388858f80c789fc5bf48fda87ffb463..5c2c5be38837ae3f22a70498aa9f943f6a922c53 100644 --- a/toolchain_config.gni +++ b/toolchain_config.gni @@ -76,6 +76,7 @@ enable_bytrace = enable_hitrace = !ark_standalone_build && !(defined(is_arkui_x) && is_arkui_x) && is_ohos && is_standard_system +enable_eventhandler = is_ohos && is_standard_system && !is_arkui_x hiviewdfx_deps = [] hiviewdfx_ext_deps = [] @@ -94,6 +95,9 @@ if (enable_hitrace) { if (enable_hilog) { hiviewdfx_ext_deps += [ "hilog:libhilog" ] } +if (enable_eventhandler) { + hiviewdfx_ext_deps += [ "eventhandler:libeventhandler" ] +} enable_target_compilation = !ark_standalone_build && !is_mac && !(defined(is_arkui_x) && is_arkui_x) &&