fix build warning

Signed-off-by: BruceXuXu <xufeilong2@huawei.com>
Change-Id: Ic7c5a88732deb4482153e2389dedcf04a5407d8a
This commit is contained in:
BruceXuXu 2023-08-08 17:07:53 +08:00
parent 721cc472f3
commit a2120c899d
23 changed files with 509 additions and 38 deletions

View File

@ -39,6 +39,11 @@ ohos_unittest("dm_display_test") {
sources = [ "display_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_display_change_unit_test") {
@ -47,6 +52,11 @@ ohos_unittest("dm_display_change_unit_test") {
sources = [ "display_change_unit_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_display_power_unit_test") {
@ -55,6 +65,11 @@ ohos_unittest("dm_display_power_unit_test") {
sources = [ "display_power_unit_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_screenshot_test") {
@ -63,6 +78,11 @@ ohos_unittest("dm_screenshot_test") {
sources = [ "screenshot_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_screen_manager_test") {
@ -73,6 +93,11 @@ ohos_unittest("dm_screen_manager_test") {
sources = [ "screen_manager_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_screen_test") {
@ -81,6 +106,11 @@ ohos_unittest("dm_screen_test") {
sources = [ "screen_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_screen_group_test") {
@ -89,6 +119,11 @@ ohos_unittest("dm_screen_group_test") {
sources = [ "screen_group_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_display_manager_adapter_test") {
@ -97,6 +132,11 @@ ohos_unittest("dm_display_manager_adapter_test") {
sources = [ "display_manager_adapter_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_display_manager_test") {
@ -107,6 +147,11 @@ ohos_unittest("dm_display_manager_test") {
sources = [ "display_manager_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dm_display_manager_agent_stub_test") {
@ -115,6 +160,11 @@ ohos_unittest("dm_display_manager_agent_stub_test") {
sources = [ "display_manager_agent_stub_test.cpp" ]
deps = [ ":dm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
## Build dm_unittest_common.a {{{

View File

@ -40,6 +40,11 @@ ohos_unittest("dmserver_abstract_screen_controller_test") {
sources = [ "abstract_screen_controller_test.cpp" ]
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_display_manager_agent_controller_test") {
@ -48,6 +53,11 @@ ohos_unittest("dmserver_display_manager_agent_controller_test") {
sources = [ "display_manager_agent_controller_test.cpp" ]
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_abstract_display_test") {
@ -56,6 +66,11 @@ ohos_unittest("dmserver_abstract_display_test") {
sources = [ "abstract_display_test.cpp" ]
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_display_manager_service_test") {
@ -64,6 +79,11 @@ ohos_unittest("dmserver_display_manager_service_test") {
sources = [ "display_manager_service_test.cpp" ]
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_display_manager_proxy_test") {
@ -73,7 +93,11 @@ ohos_unittest("dmserver_display_manager_proxy_test") {
deps = [ ":dmserver_unittest_common" ]
external_deps = [ "graphic_2d:surface" ]
external_deps = [
"c_utils:utils",
"graphic_2d:surface",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_screen_rotation_controller_test") {
@ -83,9 +107,14 @@ ohos_unittest("dmserver_screen_rotation_controller_test") {
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
if (window_manager_feature_subscribe_motion) {
if (defined(global_parts_info) && defined(global_parts_info.msdp_motion)) {
external_deps = [ "motion:motion_interface_native" ]
external_deps += [ "motion:motion_interface_native" ]
defines = [ "WM_SUBSCRIBE_MOTION_ENABLE" ]
}
}
@ -97,6 +126,11 @@ ohos_unittest("dmserver_display_dumper_test") {
sources = [ "display_dumper_test.cpp" ]
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_display_cutout_controller_test") {
@ -105,6 +139,11 @@ ohos_unittest("dmserver_display_cutout_controller_test") {
sources = [ "display_cutout_controller_test.cpp" ]
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_abstract_screen_test") {
@ -113,6 +152,11 @@ ohos_unittest("dmserver_abstract_screen_test") {
sources = [ "abstract_screen_test.cpp" ]
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_abstract_display_controller_test") {
@ -121,6 +165,11 @@ ohos_unittest("dmserver_abstract_display_controller_test") {
sources = [ "abstract_display_controller_test.cpp" ]
deps = [ ":dmserver_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("dmserver_display_manager_config_test") {
@ -134,7 +183,11 @@ ohos_unittest("dmserver_display_manager_config_test") {
"//third_party/libxml2:libxml2",
]
external_deps = [ "config_policy:configpolicy_util" ]
external_deps = [
"c_utils:utils",
"config_policy:configpolicy_util",
"hilog:libhilog",
]
}
## Build dmserver_unittest_common.a {{{

View File

@ -53,7 +53,9 @@ ohos_shared_library("libwindow_extension_client") {
"ability_base:session_info",
"ability_base:want",
"ability_runtime:ability_manager",
"c_utils:utils",
"graphic_2d:librender_service_client",
"hilog:libhilog",
"hitrace:hitrace_meter",
"input:libmmi-client",
"ipc:ipc_single",

View File

@ -30,6 +30,11 @@ ohos_unittest("snapshot_utils_test") {
sources = [ "snapshot_utils_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("snapshot_display_test") {
@ -38,6 +43,11 @@ ohos_unittest("snapshot_display_test") {
sources = [ "snapshot_display_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
## Build utils_unittest_common.a {{{
@ -80,6 +90,7 @@ ohos_static_library("utils_unittest_common") {
"access_token:libaccesstoken_sdk",
"access_token:libnativetoken",
"access_token:libtoken_setproc",
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
]

View File

@ -37,7 +37,10 @@ ohos_executable("demo_mirror_screen_listener") {
"//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base",
]
external_deps = [ "c_utils:utils" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
part_name = "window_manager"
subsystem_name = "window"
@ -81,6 +84,11 @@ ohos_executable("demo_snapshot_virtual_screen") {
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
part_name = "window_manager"
subsystem_name = "window"
}
@ -98,7 +106,10 @@ ohos_executable("demo_system_sub_window") {
"//foundation/graphic/graphic_2d/rosen/modules/render_service_base:librender_service_base",
]
external_deps = [ "c_utils:utils" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
part_name = "window_manager"
subsystem_name = "window"
@ -114,7 +125,11 @@ ohos_executable("demo_freeze_display") {
"//foundation/multimedia/image_framework/interfaces/innerkits/include",
]
deps = [ "${window_base_path}/dm:libdm" ]
external_deps = [ "image_framework:image_native" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"image_framework:image_native",
]
part_name = "window_manager"
subsystem_name = "window"
}
@ -132,7 +147,10 @@ ohos_executable("demo_water_mark_listener") {
"${window_base_path}/wm:libwm",
]
external_deps = [ "c_utils:utils" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
part_name = "window_manager"
subsystem_name = "window"
@ -159,6 +177,7 @@ ohos_executable("demo_session_manager") {
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_core",
]

View File

@ -36,7 +36,10 @@ ohos_fuzztest("DisplayManagerFuzzTest") {
"${window_base_path}/dm:libdm",
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
]
external_deps = [ "c_utils:utils" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
###############################################################################

View File

@ -37,7 +37,10 @@ ohos_fuzztest("DisplayManagerIPCFuzzTest") {
"${window_base_path}/dm:libdm",
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
"samgr:samgr_proxy",
]

View File

@ -39,7 +39,10 @@ ohos_fuzztest("ScreenFuzzTest") {
"${window_base_path}/utils:libwmutil",
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
]
external_deps = [ "c_utils:utils" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
###############################################################################

View File

@ -37,7 +37,10 @@ ohos_fuzztest("ScreenManagerFuzzTest") {
"${window_base_path}/dm:libdm",
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
]
external_deps = [ "c_utils:utils" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
###############################################################################

View File

@ -42,6 +42,8 @@ ohos_fuzztest("WindowIPCFuzzTest") {
external_deps = [
"ability_runtime:ability_manager",
"c_utils:utils",
"hilog:libhilog",
"input:libmmi-client",
"ipc:ipc_single",
"samgr:samgr_proxy",

View File

@ -41,6 +41,7 @@ ohos_fuzztest("WindowManagerFuzzTest") {
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
]
}

View File

@ -57,6 +57,7 @@ ohos_fuzztest("WindowSceneFuzzTest") {
"ace_engine:ace_uicontent",
"c_utils:utils",
"graphic_2d:librender_service_client",
"hilog:libhilog",
"ipc:ipc_single",
"napi:ace_napi",
]

View File

@ -45,6 +45,7 @@ ohos_fuzztest("WindowUtilMathFuzzTest") {
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
]
}

View File

@ -36,6 +36,11 @@ ohos_systemtest("dms_private_window_test") {
sources = [ "private_window_test.cpp" ]
deps = [ ":dms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_systemtest("dms_display_minimal_test") {
@ -44,6 +49,11 @@ ohos_systemtest("dms_display_minimal_test") {
sources = [ "display_minimal_test.cpp" ]
deps = [ ":dms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_systemtest("dms_display_manager_test") {
@ -52,6 +62,11 @@ ohos_systemtest("dms_display_manager_test") {
sources = [ "display_manager_test.cpp" ]
deps = [ ":dms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_systemtest("dms_display_power_test") {
@ -60,6 +75,11 @@ ohos_systemtest("dms_display_power_test") {
sources = [ "display_power_test.cpp" ]
deps = [ ":dms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_systemtest("dms_display_change_test") {
@ -68,6 +88,11 @@ ohos_systemtest("dms_display_change_test") {
sources = [ "display_change_test.cpp" ]
deps = [ ":dms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_systemtest("dms_screenshot_test") {
@ -76,6 +101,11 @@ ohos_systemtest("dms_screenshot_test") {
sources = [ "screenshot_test.cpp" ]
deps = [ ":dms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_systemtest("dms_screen_manager_test") {
@ -85,7 +115,11 @@ ohos_systemtest("dms_screen_manager_test") {
deps = [ ":dms_systemtest_common" ]
external_deps = [ "init:libbegetutil" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"init:libbegetutil",
]
}
ohos_systemtest("dms_screen_gamut_test") {
@ -94,6 +128,11 @@ ohos_systemtest("dms_screen_gamut_test") {
sources = [ "screen_gamut_test.cpp" ]
deps = [ ":dms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
## Build dms_systemtest_common.a {{{
@ -141,6 +180,7 @@ ohos_static_library("dms_systemtest_common") {
"access_token:libaccesstoken_sdk",
"access_token:libnativetoken",
"access_token:libtoken_setproc",
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
]

View File

@ -51,6 +51,7 @@ ohos_systemtest("window_extension_connection_test") {
external_deps = [
"ability_base:want",
"c_utils:utils",
"hilog:libhilog",
"input:libmmi-client",
]
}

View File

@ -56,7 +56,11 @@ ohos_systemtest("wms_window_layout_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_effect_test") {
@ -66,7 +70,11 @@ ohos_systemtest("wms_window_effect_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_multi_ability_test") {
@ -76,7 +84,11 @@ ohos_systemtest("wms_window_multi_ability_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_subwindow_test") {
@ -86,7 +98,11 @@ ohos_systemtest("wms_window_subwindow_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "bundle_framework:appexecfwk_base" ]
external_deps = [
"bundle_framework:appexecfwk_base",
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_systemtest("wms_window_systemsubwindow_test") {
@ -98,6 +114,8 @@ ohos_systemtest("wms_window_systemsubwindow_test") {
external_deps = [
"bundle_framework:appexecfwk_base",
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
@ -111,7 +129,9 @@ ohos_systemtest("wms_window_dialogwindow_test") {
external_deps = [
"bundle_framework:appexecfwk_base",
"c_utils:utils",
"common_event_service:cesfwk_innerkits",
"hilog:libhilog",
]
}
@ -122,7 +142,11 @@ ohos_systemtest("wms_window_immersive_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_focus_test") {
@ -132,7 +156,11 @@ ohos_systemtest("wms_window_focus_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_split_immersive_test") {
@ -142,7 +170,11 @@ ohos_systemtest("wms_window_split_immersive_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_split_test") {
@ -152,7 +184,11 @@ ohos_systemtest("wms_window_split_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_move_drag_test") {
@ -164,6 +200,8 @@ ohos_systemtest("wms_window_move_drag_test") {
external_deps = [
"bundle_framework:appexecfwk_base",
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
@ -175,7 +213,11 @@ ohos_systemtest("wms_window_input_method_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_gamut_test") {
@ -185,7 +227,11 @@ ohos_systemtest("wms_window_gamut_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_gesture_navigation_enabled_test") {
@ -194,6 +240,11 @@ ohos_systemtest("wms_window_gesture_navigation_enabled_test") {
sources = [ "window_gesture_navigation_enabled_test.cpp" ]
deps = [ ":wms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_systemtest("wms_window_input_test") {
@ -203,7 +254,11 @@ ohos_systemtest("wms_window_input_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_visibility_info_test") {
@ -213,7 +268,11 @@ ohos_systemtest("wms_window_visibility_info_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_display_zoom_test") {
@ -223,7 +282,11 @@ ohos_systemtest("wms_window_display_zoom_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_drag_test") {
@ -233,7 +296,11 @@ ohos_systemtest("wms_window_drag_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_raisetoapptop_test") {
@ -243,7 +310,11 @@ ohos_systemtest("wms_window_raisetoapptop_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_rotation_test") {
@ -253,7 +324,11 @@ ohos_systemtest("wms_window_rotation_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_occupied_area_change_test") {
@ -263,7 +338,11 @@ ohos_systemtest("wms_window_occupied_area_change_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_touch_outside_test") {
@ -273,7 +352,11 @@ ohos_systemtest("wms_window_touch_outside_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_mode_support_info_test") {
@ -283,7 +366,11 @@ ohos_systemtest("wms_window_mode_support_info_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_app_floating_window_test") {
@ -294,7 +381,9 @@ ohos_systemtest("wms_window_app_floating_window_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [
"c_utils:utils",
"common_event_service:cesfwk_innerkits",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
@ -306,7 +395,11 @@ ohos_systemtest("wms_window_animation_transition_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
ohos_systemtest("wms_window_water_mark_test") {
@ -316,7 +409,11 @@ ohos_systemtest("wms_window_water_mark_test") {
deps = [ ":wms_systemtest_common" ]
external_deps = [ "power_manager:powermgr_client" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"power_manager:powermgr_client",
]
}
## Build wms_systemtest_common.a {{{
@ -380,6 +477,8 @@ ohos_static_library("wms_systemtest_common") {
"ability_base:zuri",
"ability_runtime:ability_context_native",
"bundle_framework:appexecfwk_base",
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
"power_manager:powermgr_client",
]

View File

@ -41,6 +41,11 @@ ohos_unittest("utils_display_info_test") {
sources = [ "display_info_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("utils_screen_info_test") {
@ -50,7 +55,11 @@ ohos_unittest("utils_screen_info_test") {
deps = [ ":utils_unittest_common" ]
external_deps = [ "graphic_2d:surface" ]
external_deps = [
"c_utils:utils",
"graphic_2d:surface",
"hilog:libhilog",
]
}
ohos_unittest("utils_screen_group_info_test") {
@ -60,7 +69,11 @@ ohos_unittest("utils_screen_group_info_test") {
deps = [ ":utils_unittest_common" ]
external_deps = [ "graphic_2d:surface" ]
external_deps = [
"c_utils:utils",
"graphic_2d:surface",
"hilog:libhilog",
]
}
ohos_unittest("utils_string_test") {
@ -69,6 +82,11 @@ ohos_unittest("utils_string_test") {
sources = [ "string_util_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("utils_window_property_test") {
@ -77,6 +95,11 @@ ohos_unittest("utils_window_property_test") {
sources = [ "window_property_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("utils_wm_math_test") {
@ -85,6 +108,11 @@ ohos_unittest("utils_wm_math_test") {
sources = [ "wm_math_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("utils_surface_draw_test") {
@ -101,6 +129,8 @@ ohos_unittest("utils_surface_draw_test") {
"ability_runtime:ability_manager",
"ability_runtime:abilitykit_native",
"ace_engine:ace_uicontent",
"c_utils:utils",
"hilog:libhilog",
"input:libmmi-client",
"ipc:ipc_single",
"napi:ace_napi",
@ -117,6 +147,8 @@ ohos_unittest("utils_window_helper_test") {
external_deps = [
"ability_runtime:ability_manager",
"bundle_framework:appexecfwk_base",
"c_utils:utils",
"hilog:libhilog",
]
}
@ -126,6 +158,11 @@ ohos_unittest("utils_perform_reporter_test") {
sources = [ "perform_reporter_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("utils_cutout_info_test") {
@ -134,6 +171,11 @@ ohos_unittest("utils_cutout_info_test") {
sources = [ "cutout_info_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("utils_all_test") {
@ -145,6 +187,8 @@ ohos_unittest("utils_all_test") {
external_deps = [
"ability_runtime:ability_manager",
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
]
}
@ -155,6 +199,11 @@ ohos_unittest("utils_wm_occlusion_region_test") {
sources = [ "wm_occlusion_region_test.cpp" ]
deps = [ ":utils_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("utils_window_transition_info_test") {
@ -166,6 +215,8 @@ ohos_unittest("utils_window_transition_info_test") {
external_deps = [
"ability_runtime:ability_manager",
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
]
}

View File

@ -37,6 +37,7 @@ ohos_shared_library("screensessionmanager_napi") {
external_deps = [
"ability_runtime:runtime",
"c_utils:utils",
"graphic_2d:librender_service_client",
"hilog:libhilog",
"napi:ace_napi",

View File

@ -96,7 +96,9 @@ ohos_shared_library("screen_session") {
deps = [ "${window_base_path}/utils:libwmutil" ]
external_deps = [
"c_utils:utils",
"graphic_2d:librender_service_client",
"hilog:libhilog",
"init:libbegetutil",
]

View File

@ -201,6 +201,7 @@ ohos_shared_library("session_manager") {
"ability_base:session_info",
"ability_base:want",
"ability_runtime:mission_info",
"c_utils:utils",
"graphic_2d:librender_service_client",
"hilog:libhilog",
"image_framework:image_native",

View File

@ -38,6 +38,7 @@ ohos_shared_library("session_manager_service") {
external_deps = [
"ability_runtime:ability_manager",
"c_utils:utils",
"graphic_2d:librender_service_client",
"hilog:libhilog",
"ipc:ipc_single",

View File

@ -42,6 +42,8 @@ ohos_unittest("ws_session_test") {
external_deps = [
"ability_base:session_info",
"ability_base:want",
"c_utils:utils",
"hilog:libhilog",
]
}
@ -51,6 +53,10 @@ ohos_unittest("ws_screen_cutout_controller_test") {
sources = [ "screen_cutout_controller_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_screen_scene_config_test") {
@ -59,6 +65,11 @@ ohos_unittest("ws_screen_scene_config_test") {
sources = [ "screen_scene_config_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_screen_session_manager_test") {
@ -67,6 +78,11 @@ ohos_unittest("ws_screen_session_manager_test") {
sources = [ "screen_session_manager_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_window_scene_config_test") {
@ -75,6 +91,11 @@ ohos_unittest("ws_window_scene_config_test") {
sources = [ "window_scene_config_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_scene_session_manager_test") {
@ -83,6 +104,11 @@ ohos_unittest("ws_scene_session_manager_test") {
sources = [ "scene_session_manager_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_scene_session_manager_proxy_test") {
@ -91,6 +117,11 @@ ohos_unittest("ws_scene_session_manager_proxy_test") {
sources = [ "scene_session_manager_proxy_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_session_manager_agent_controller_test") {
@ -99,6 +130,11 @@ ohos_unittest("ws_session_manager_agent_controller_test") {
sources = [ "session_manager_agent_controller_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_session_manager_test") {
@ -107,6 +143,11 @@ ohos_unittest("ws_session_manager_test") {
sources = [ "session_manager_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_scene_session_manager_stub_test") {
@ -115,6 +156,11 @@ ohos_unittest("ws_scene_session_manager_stub_test") {
sources = [ "scene_session_manager_stub_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("ws_scene_session_test") {
@ -123,6 +169,11 @@ ohos_unittest("ws_scene_session_test") {
sources = [ "scene_session_test.cpp" ]
deps = [ ":ws_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
## Build ws_unittest_common.a {{{

View File

@ -45,8 +45,13 @@ ohos_unittest("wm_window_manager_test") {
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
if (efficiency_manager_enable) {
external_deps = [ "efficiency_manager:suspend_manager_client" ]
external_deps += [ "efficiency_manager:suspend_manager_client" ]
defines = [ "EFFICIENCY_MANAGER_ENABLE" ]
}
}
@ -58,7 +63,11 @@ ohos_unittest("wm_window_impl_test") {
deps = [ ":wm_unittest_common" ]
external_deps = [ "common_event_service:cesfwk_innerkits" ]
external_deps = [
"c_utils:utils",
"common_event_service:cesfwk_innerkits",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_scene_effect_test") {
@ -67,6 +76,11 @@ ohos_unittest("wm_window_scene_effect_test") {
sources = [ "window_scene_effect_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_session_impl_test") {
@ -75,6 +89,11 @@ ohos_unittest("wm_window_session_impl_test") {
sources = [ "window_session_impl_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_effect_test") {
@ -83,6 +102,11 @@ ohos_unittest("wm_window_effect_test") {
sources = [ "window_effect_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_input_transfer_station_test") {
@ -91,6 +115,11 @@ ohos_unittest("wm_input_transfer_station_test") {
sources = [ "input_transfer_station_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_input_channel_test") {
@ -99,6 +128,11 @@ ohos_unittest("wm_window_input_channel_test") {
sources = [ "window_input_channel_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_option_test") {
@ -107,6 +141,11 @@ ohos_unittest("wm_window_option_test") {
sources = [ "window_option_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_scene_test") {
@ -116,7 +155,11 @@ ohos_unittest("wm_window_scene_test") {
deps = [ ":wm_unittest_common" ]
external_deps = [ "common_event_service:cesfwk_innerkits" ]
external_deps = [
"c_utils:utils",
"common_event_service:cesfwk_innerkits",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_test") {
@ -126,7 +169,11 @@ ohos_unittest("wm_window_test") {
deps = [ ":wm_unittest_common" ]
external_deps = [ "common_event_service:cesfwk_innerkits" ]
external_deps = [
"c_utils:utils",
"common_event_service:cesfwk_innerkits",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_impl_listener_test") {
@ -135,6 +182,11 @@ ohos_unittest("wm_window_impl_listener_test") {
sources = [ "window_impl_listener_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_proxy_test") {
@ -143,6 +195,11 @@ ohos_unittest("wm_window_proxy_test") {
sources = [ "window_proxy_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_stub_test") {
@ -151,6 +208,11 @@ ohos_unittest("wm_window_stub_test") {
sources = [ "window_stub_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_scene_session_impl_test") {
@ -159,6 +221,11 @@ ohos_unittest("wm_window_scene_session_impl_test") {
sources = [ "window_scene_session_impl_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
ohos_unittest("wm_window_manager_stub_proxy_test") {
@ -167,6 +234,11 @@ ohos_unittest("wm_window_manager_stub_proxy_test") {
sources = [ "window_manager_agent_stub_test.cpp" ]
deps = [ ":wm_unittest_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
}
## Build wm_unittest_common.a {{{