• 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("libdm_private_config") {
17  include_dirs = [
18    "include",
19    "../dmserver/include",
20  ]
21}
22
23config("libdm_public_config") {
24  include_dirs = [
25    "../interfaces/innerkits/dm",
26    "../utils/include",
27  ]
28}
29
30## Build libdm.so
31ohos_shared_library("libdm") {
32  sources = [
33    "../dmserver/src/display_manager_proxy.cpp",
34    "src/display.cpp",
35    "src/display_manager.cpp",
36    "src/display_manager_adapter.cpp",
37    "src/screen.cpp",
38    "src/screen_group.cpp",
39    "src/screen_manager.cpp",
40    "src/zidl/display_manager_agent_stub.cpp",
41  ]
42
43  configs = [
44    ":libdm_private_config",
45    "//foundation/window/window_manager/resources/config/build:coverage_flags",
46  ]
47
48  public_configs = [ ":libdm_public_config" ]
49
50  deps = [
51    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
52    "//foundation/window/window_manager/utils:libwmutil",
53  ]
54
55  external_deps = [
56    "c_utils:utils",
57    "hilog_native:libhilog",
58    "ipc:ipc_core",
59    "multimedia_image_framework:image_native",
60    "samgr:samgr_proxy",
61  ]
62
63  part_name = "window_manager"
64  subsystem_name = "window"
65}
66
67group("test") {
68  testonly = true
69  deps = [ "test:test" ]
70}
71