• 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("libwmutil_private_config") {
17  include_dirs = [
18    "include",
19    "//foundation/windowmanager/dmserver/include",
20    "../interfaces/innerkits/dm",
21    "../interfaces/innerkits/wm",
22  ]
23}
24
25config("libwmutil_public_config") {
26  include_dirs = [ "//foundation/windowmanager/utils/include" ]
27}
28
29## Build libwmutil.so
30ohos_shared_library("libwmutil") {
31  sources = [
32    "src/agent_death_recipient.cpp",
33    "src/display_info.cpp",
34    "src/screen_group_info.cpp",
35    "src/screen_info.cpp",
36    "src/singleton_container.cpp",
37    "src/surface_reader.cpp",
38    "src/surface_reader_handler_impl.cpp",
39    "src/window_property.cpp",
40    "src/wm_trace.cpp",
41  ]
42
43  configs = [ ":libwmutil_private_config" ]
44
45  public_configs = [ ":libwmutil_public_config" ]
46
47  deps = [ "//foundation/graphic/standard/rosen/modules/render_service_base:librender_service_base" ]
48
49  external_deps = [
50    "bytrace_standard:bytrace_core",
51    "graphic_standard:surface",
52    "hilog_native:libhilog",
53    "ipc:ipc_core",
54    "multimedia_image_standard:image_native",
55    "utils_base:utils",
56  ]
57
58  part_name = "window_manager"
59  subsystem_name = "window"
60}
61