• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15config("libwms_config") {
16  visibility = [ ":*" ]
17
18  include_dirs = [
19    "include",
20    "include/window_snapshot",
21    "//utils/system/safwk/native/include",
22    "//foundation/window/window_manager/interfaces/innerkits/wm",
23    "//foundation/window/window_manager/interfaces/innerkits/dm",
24    "//foundation/window/window_manager/wm/include",
25    "//foundation/window/window_manager/utils/include",
26    "//foundation/window/window_manager/dm/include",
27    "//foundation/window/window_manager/dmserver/include",
28  ]
29}
30
31ohos_shared_library("libwms") {
32  if (use_musl) {
33    if (use_jemalloc && use_jemalloc_dfx_intf) {
34      defines = [ "CONFIG_USE_JEMALLOC_DFX_INTF" ]
35    }
36  }
37  sources = [
38    "../wm/src/zidl/window_manager_agent_proxy.cpp",
39    "../wm/src/zidl/window_proxy.cpp",
40    "src/accessibility_connection.cpp",
41    "src/avoid_area_controller.cpp",
42    "src/display_group_controller.cpp",
43    "src/display_group_info.cpp",
44    "src/display_zoom_controller.cpp",
45    "src/drag_controller.cpp",
46    "src/freeze_controller.cpp",
47    "src/inner_window.cpp",
48    "src/input_window_monitor.cpp",
49    "src/memory_guard.cpp",
50    "src/minimize_app.cpp",
51    "src/remote_animation.cpp",
52    "src/starting_window.cpp",
53    "src/window_common_event.cpp",
54    "src/window_controller.cpp",
55    "src/window_dumper.cpp",
56    "src/window_inner_manager.cpp",
57    "src/window_layout_policy.cpp",
58    "src/window_layout_policy_cascade.cpp",
59    "src/window_layout_policy_tile.cpp",
60    "src/window_manager_agent_controller.cpp",
61    "src/window_manager_config.cpp",
62    "src/window_manager_service.cpp",
63    "src/window_node.cpp",
64    "src/window_node_container.cpp",
65    "src/window_node_state_machine.cpp",
66    "src/window_pair.cpp",
67    "src/window_root.cpp",
68    "src/window_snapshot/snapshot_controller.cpp",
69    "src/window_snapshot/snapshot_proxy.cpp",
70    "src/window_snapshot/snapshot_stub.cpp",
71    "src/window_zorder_policy.cpp",
72    "src/zidl/ressched_report.cpp",
73    "src/zidl/window_manager_stub.cpp",
74  ]
75
76  configs = [
77    ":libwms_config",
78    "//foundation/window/window_manager/resources/config/build:coverage_flags",
79  ]
80
81  deps = [
82    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
83    "//foundation/window/window_manager/dmserver:libdms",
84    "//foundation/window/window_manager/etc:wms_etc",
85    "//foundation/window/window_manager/utils:libwmutil",
86    "//foundation/window/window_manager/wm:libwm",
87    "//third_party/libxml2:libxml2",
88  ]
89
90  external_deps = [
91    "ability_base:want",
92    "ability_runtime:ability_manager",
93    "c_utils:utils",
94    "common_event_service:cesfwk_innerkits",
95    "config_policy:configpolicy_util",
96    "display_manager:displaymgr",
97    "eventhandler:libeventhandler",
98    "graphic_standard:window_animation",
99    "hicollie_native:libhicollie",
100    "hilog_native:libhilog",
101    "hisysevent_native:libhisysevent",
102    "hitrace_native:hitrace_meter",
103    "input:libmmi-client",
104    "ipc:ipc_core",
105    "power_manager:powermgr_client",
106    "safwk:system_ability_fwk",
107  ]
108
109  if (is_standard_system) {
110    external_deps += [ "init:libbegetutil" ]
111  } else {
112    external_deps += [ "init_lite:libbegetutil" ]
113  }
114
115  part_name = "window_manager"
116  subsystem_name = "window"
117}
118
119group("test") {
120  testonly = true
121  deps = [ "test:test" ]
122}
123