diff --git a/services/test/moduletest/BUILD.gn b/services/test/moduletest/BUILD.gn index 326e85ee237fe971a03bdfaefbe136f8324b79f1..4aa8dee5e028e1f4f63ad7406e7d3f8bda1fe1f4 100644 --- a/services/test/moduletest/BUILD.gn +++ b/services/test/moduletest/BUILD.gn @@ -14,6 +14,7 @@ import("//base/notification/distributed_notification_service/notification.gni") import("//build/ohos.gni") import("//build/test.gni") +import("//foundation/ability/ability_runtime/ability_runtime.gni") module_output_path = "${component_name}/moduletest" @@ -97,6 +98,10 @@ ohos_moduletest("ans_module_test") { defines = [ "DEVICE_USAGE_STATISTICS_ENABLE" ] } + if (ability_runtime_graphics) { + external_deps += [ "window_manager:libdm" ] + } + subsystem_name = "${subsystem_name}" part_name = "${component_name}" }