• 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")
15
16config("libwm_private_config") {
17  visibility = [ ":*" ]
18
19  include_dirs = [
20    "include",
21    "../wmserver/include",
22    "//foundation/aafwk/standard/frameworks/kits/ability/ability_runtime/include",
23    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include",
24    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/include/appmgr",
25    "//third_party/jsoncpp/include",
26    "//third_party/json/include",
27  ]
28}
29
30config("libwm_public_config") {
31  include_dirs = [
32    "../interfaces/innerkits/wm",
33    "../utils/include",
34  ]
35}
36
37## Build libwm.so
38ohos_shared_library("libwm") {
39  sources = [
40    "../wmserver/src/zidl/window_manager_proxy.cpp",
41    "src/color_parser.cpp",
42    "src/input_transfer_station.cpp",
43    "src/static_call.cpp",
44    "src/vsync_station.cpp",
45    "src/window.cpp",
46    "src/window_adapter.cpp",
47    "src/window_agent.cpp",
48    "src/window_impl.cpp",
49    "src/window_input_channel.cpp",
50    "src/window_manager.cpp",
51    "src/window_manager_agent.cpp",
52    "src/window_option.cpp",
53    "src/window_scene.cpp",
54    "src/zidl/window_manager_agent_stub.cpp",
55    "src/zidl/window_stub.cpp",
56  ]
57
58  configs = [ ":libwm_private_config" ]
59
60  public_configs = [ ":libwm_public_config" ]
61
62  deps = [
63    "//foundation/graphic/standard/rosen/modules/render_service_client:librender_service_client",
64    "//foundation/windowmanager/dm:libdm",
65    "//foundation/windowmanager/utils:libwmutil",
66
67    # vsync
68    "//foundation/graphic/standard/rosen/modules/composer:libcomposer",
69  ]
70
71  external_deps = [
72    "ability_base:want",
73    "ability_runtime:ability_context_native",
74    "ability_runtime:ability_manager",
75    "ace_engine_standard:ace_uicontent",
76    "bundle_framework:appexecfwk_base",
77    "bundle_framework:appexecfwk_core",
78    "bytrace_standard:bytrace_core",
79    "graphic_standard:surface",
80    "hilog_native:libhilog",
81    "inputmethod_native:inputmethod_client",
82    "ipc:ipc_core",
83    "multimedia_image_standard:image_native",
84    "multimodalinput_base:libmmi-client",
85    "napi:ace_napi",
86
87    # because appexecfwk_core depends on global_resmgr
88    "resmgr_standard:global_resmgr",
89    "safwk:system_ability_fwk",
90    "samgr_standard:samgr_proxy",
91    "utils_base:utils",
92  ]
93
94  part_name = "window_manager"
95  subsystem_name = "window"
96}
97
98group("test") {
99  testonly = true
100  deps = [ "test:test" ]
101}
102