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
114 lines
3.3 KiB
Plaintext
114 lines
3.3 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/ohos.gni")
|
|
import("//foundation/window/window_manager/windowmanager_aafwk.gni")
|
|
|
|
config("libwm_private_config") {
|
|
visibility = [ ":*" ]
|
|
|
|
include_dirs = [
|
|
"include",
|
|
"../wmserver/include",
|
|
"${ability_runtime_path}/interfaces/kits/native/ability/ability_runtime",
|
|
"${ability_runtime_inner_api_path}/ability_manager/include",
|
|
"${ability_runtime_inner_api_path}/app_manager/include/appmgr",
|
|
]
|
|
}
|
|
|
|
config("libwm_public_config") {
|
|
include_dirs = [
|
|
"../interfaces/innerkits/wm",
|
|
"../utils/include",
|
|
]
|
|
}
|
|
|
|
## Build libwm.so
|
|
ohos_shared_library("libwm") {
|
|
sources = [
|
|
"../wmserver/src/zidl/window_manager_proxy.cpp",
|
|
"src/color_parser.cpp",
|
|
"src/input_transfer_station.cpp",
|
|
"src/static_call.cpp",
|
|
"src/vsync_station.cpp",
|
|
"src/window.cpp",
|
|
"src/window_accessibility_controller.cpp",
|
|
"src/window_adapter.cpp",
|
|
"src/window_agent.cpp",
|
|
"src/window_impl.cpp",
|
|
"src/window_input_channel.cpp",
|
|
"src/window_manager.cpp",
|
|
"src/window_manager_agent.cpp",
|
|
"src/window_option.cpp",
|
|
"src/window_scene.cpp",
|
|
"src/zidl/window_manager_agent_stub.cpp",
|
|
"src/zidl/window_stub.cpp",
|
|
]
|
|
|
|
configs = [
|
|
":libwm_private_config",
|
|
"//foundation/window/window_manager/resources/config/build:coverage_flags",
|
|
]
|
|
|
|
public_configs = [ ":libwm_public_config" ]
|
|
|
|
deps = [
|
|
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
|
|
"//foundation/window/window_manager/dm:libdm",
|
|
"//foundation/window/window_manager/utils:libwmutil",
|
|
|
|
# vsync
|
|
"//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
|
|
]
|
|
|
|
external_deps = [
|
|
"ability_base:want",
|
|
"ability_runtime:ability_context_native",
|
|
"ability_runtime:ability_manager",
|
|
"ace_engine:ace_uicontent",
|
|
"bundle_framework:appexecfwk_base",
|
|
"bundle_framework:appexecfwk_core",
|
|
"graphic_standard:surface",
|
|
"graphic_standard:window_animation",
|
|
"hicollie_native:libhicollie",
|
|
"hilog_native:libhilog",
|
|
"hisysevent_native:libhisysevent",
|
|
"imf:inputmethod_client",
|
|
"input:libmmi-client",
|
|
"ipc:ipc_core",
|
|
"multimedia_image_standard:image",
|
|
"multimedia_image_standard:image_native",
|
|
"napi:ace_napi",
|
|
|
|
# because appexecfwk_core depends on global_resmgr
|
|
"c_utils:utils",
|
|
"resource_management:global_resmgr",
|
|
"safwk:system_ability_fwk",
|
|
"samgr:samgr_proxy",
|
|
]
|
|
|
|
defines = []
|
|
if (efficiency_manager_enable) {
|
|
external_deps += [ "efficiency_manager:suspend_manager_client" ]
|
|
defines += [ "EFFICIENCY_MANAGER_ENABLE" ]
|
|
}
|
|
|
|
part_name = "window_manager"
|
|
subsystem_name = "window"
|
|
}
|
|
|
|
group("test") {
|
|
testonly = true
|
|
deps = [ "test:test" ]
|
|
}
|