• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
16## Build libwmservice.so {{{
17config("libwmservice_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [
21    "include",
22    "//utils/system/safwk/native/include",
23  ]
24
25  cflags = [
26    "-Wall",
27    "-Werror",
28    "-g3",
29  ]
30}
31
32config("libwmservice_public_config") {
33  include_dirs = [
34    "//foundation/graphic/standard/interfaces/innerkits/common",
35    "//foundation/graphic/standard/interfaces/innerkits/wmclient",
36    "//foundation/graphic/standard/interfaces/innerkits/wmservice",
37    "//drivers/peripheral/base",
38    "//drivers/peripheral/display/interfaces/include",
39    "//third_party/bounds_checking_function/include",
40  ]
41}
42
43ohos_shared_library("libwmservice") {
44  sources = [
45    "src/window_manager_service_client.cpp",
46    "src/window_manager_service_client_impl.cpp",
47    "src/window_manager_service_proxy.cpp",
48  ]
49
50  configs = [ ":libwmservice_config" ]
51
52  public_configs = [ ":libwmservice_public_config" ]
53
54  deps = [
55    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
56    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
57    "//foundation/graphic/standard/frameworks/animation_server:libanimation_service",
58    "//foundation/graphic/standard/frameworks/wmserver:wms_protocol",
59    "//third_party/wayland_standard:libwayland_client",
60  ]
61
62  public_deps = [
63    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
64    "//foundation/graphic/standard/utils:promise",
65    "//utils/native/base:utils",
66  ]
67
68  part_name = "graphic_standard"
69  subsystem_name = "graphic"
70}
71
72## Build libwmservice.so }}}
73
74## Build wmservice_test {{{
75config("wmservice_test_config") {
76  visibility = [ ":*" ]
77
78  include_dirs = []
79
80  cflags = [
81    "-Wall",
82    "-Werror",
83    "-g3",
84  ]
85}
86
87ohos_executable("wmservice_test") {
88  install_enable = false
89
90  sources = [ "src/main.cpp" ]
91
92  configs = [ ":wmservice_test_config" ]
93
94  deps = [ ":libwmservice" ]
95
96  part_name = "graphic_standard"
97  subsystem_name = "graphic"
98}
99## Build wmservice_test }}}
100