mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-06-30 21:47:58 -04:00
ea6e5a9811
Signed-off-by: huangxiaolinabc123 <huangxiaolin12@huawei.com> Change-Id: I9419cc44ce778f46c364abca424f8fb1c308a629
167 lines
4.9 KiB
Plaintext
167 lines
4.9 KiB
Plaintext
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//build/test.gni")
|
|
import("//foundation/window/window_manager/windowmanager_aafwk.gni")
|
|
module_out_path = "window_manager/wm"
|
|
|
|
group("unittest") {
|
|
testonly = true
|
|
|
|
deps = [
|
|
":wm_input_transfer_station_test",
|
|
":wm_window_effect_test",
|
|
":wm_window_impl_test",
|
|
":wm_window_input_channel_test",
|
|
":wm_window_option_test",
|
|
":wm_window_scene_test",
|
|
":wm_window_test",
|
|
":wms_window_snapshot_test",
|
|
]
|
|
}
|
|
|
|
ohos_unittest("wm_window_impl_test") {
|
|
module_out_path = module_out_path
|
|
|
|
sources = [ "window_impl_test.cpp" ]
|
|
|
|
deps = [ ":wm_unittest_common" ]
|
|
}
|
|
|
|
ohos_unittest("wm_window_effect_test") {
|
|
module_out_path = module_out_path
|
|
|
|
sources = [ "window_effect_test.cpp" ]
|
|
|
|
deps = [ ":wm_unittest_common" ]
|
|
}
|
|
|
|
ohos_unittest("wm_input_transfer_station_test") {
|
|
module_out_path = module_out_path
|
|
|
|
sources = [ "input_transfer_station_test.cpp" ]
|
|
|
|
deps = [ ":wm_unittest_common" ]
|
|
}
|
|
|
|
ohos_unittest("wm_window_input_channel_test") {
|
|
module_out_path = module_out_path
|
|
|
|
sources = [ "window_input_channel_test.cpp" ]
|
|
|
|
deps = [ ":wm_unittest_common" ]
|
|
}
|
|
|
|
ohos_unittest("wm_window_option_test") {
|
|
module_out_path = module_out_path
|
|
|
|
sources = [ "window_option_test.cpp" ]
|
|
|
|
deps = [ ":wm_unittest_common" ]
|
|
}
|
|
|
|
ohos_unittest("wm_window_scene_test") {
|
|
module_out_path = module_out_path
|
|
|
|
sources = [ "window_scene_test.cpp" ]
|
|
|
|
deps = [ ":wm_unittest_common" ]
|
|
}
|
|
|
|
ohos_unittest("wm_window_test") {
|
|
module_out_path = module_out_path
|
|
|
|
sources = [ "window_test.cpp" ]
|
|
|
|
deps = [ ":wm_unittest_common" ]
|
|
}
|
|
|
|
ohos_unittest("wms_window_snapshot_test") {
|
|
module_out_path = module_out_path
|
|
|
|
sources = [ "window_snapshot_test.cpp" ]
|
|
|
|
deps = [ ":wm_unittest_common" ]
|
|
}
|
|
|
|
## Build wm_unittest_common.a {{{
|
|
config("wm_unittest_common_public_config") {
|
|
include_dirs = [
|
|
"//foundation/window/window_manager/wm/include",
|
|
"//foundation/window/window_manager/wmserver/include",
|
|
"//foundation/window/window_manager/wmserver/include/window_snapshot",
|
|
"//foundation/window/window_manager/interfaces/innerkits/wm",
|
|
"//foundation/window/window_manager/utils/include",
|
|
"//commonlibrary/c_utils/base/include",
|
|
"//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
|
|
"//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
|
|
"//third_party/googletest/googlemock/include",
|
|
|
|
# for abilityContext
|
|
"${ability_runtime_path}/interfaces/kits/native/ability/ability_runtime",
|
|
"${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context",
|
|
"//base/global/resource_management/interfaces/inner_api/include",
|
|
"//third_party/node/deps/icu-small/source/common",
|
|
"${ability_runtime_inner_api_path}/ability_manager/include",
|
|
|
|
# abilityContext end
|
|
]
|
|
|
|
cflags = [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-g3",
|
|
"-Dprivate=public",
|
|
"-Dprotected=public",
|
|
]
|
|
}
|
|
|
|
ohos_static_library("wm_unittest_common") {
|
|
visibility = [ ":*" ]
|
|
testonly = true
|
|
|
|
public_configs = [
|
|
":wm_unittest_common_public_config",
|
|
"//foundation/window/window_manager/resources/config/build:coverage_flags",
|
|
]
|
|
|
|
public_deps = [
|
|
"//base/powermgr/power_manager/interfaces/innerkits:powermgr_client",
|
|
|
|
# need delete it for abilitycontext
|
|
"${ability_runtime_inner_api_path}/ability_manager:ability_manager",
|
|
"//commonlibrary/c_utils/base:utils",
|
|
"//foundation/arkui/ace_engine/interfaces/inner_api/ace:ace_uicontent",
|
|
"//foundation/arkui/napi:ace_napi",
|
|
"//foundation/graphic/graphic_2d/rosen/modules/animation/window_animation:window_animation",
|
|
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
|
|
"//foundation/multimodalinput/input/frameworks/proxy:libmmi-client",
|
|
"//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk:system_ability_fwk",
|
|
"//foundation/window/window_manager/dm:libdm",
|
|
"//foundation/window/window_manager/dmserver:libdms",
|
|
"//foundation/window/window_manager/utils:libwmutil",
|
|
"//foundation/window/window_manager/wm:libwm",
|
|
"//foundation/window/window_manager/wmserver:libwms",
|
|
"//third_party/googletest:gmock",
|
|
"//third_party/googletest:gtest_main",
|
|
]
|
|
|
|
external_deps = [
|
|
"ability_base:want",
|
|
"ability_runtime:ability_context_native",
|
|
"bundle_framework:appexecfwk_base",
|
|
"ipc:ipc_core",
|
|
]
|
|
}
|
|
## Build wm_unittest_common.a }}}
|