• 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("//base/powermgr/display_manager/displaymgr.gni")
15
16config("displaymgr_private_config") {
17  include_dirs = [
18    "${displaymgr_service_path}/zidl/include",
19    "//base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie",
20    "//base/powermgr/power_manager/interfaces/innerkits/native/include",
21    "//utils/system/safwk/native/include",
22  ]
23}
24
25config("displaymgr_public_config") {
26  include_dirs = [ "native/include" ]
27}
28
29ohos_shared_library("displaymgr") {
30  sources = [
31    "${displaymgr_framework_path}/native/display_power_mgr_client.cpp",
32    "${displaymgr_service_path}/zidl/src/display_power_callback_stub.cpp",
33    "${displaymgr_service_path}/zidl/src/display_power_mgr_proxy.cpp",
34  ]
35
36  configs = [
37    "${displaymgr_utils_path}:utils_config",
38    ":displaymgr_private_config",
39  ]
40
41  public_configs = [ ":displaymgr_public_config" ]
42
43  deps = [ "//utils/native/base:utils" ]
44
45  external_deps = [
46    "hicollie_native:libhicollie",
47    "hiviewdfx_hilog_native:libhilog",
48    "ipc:ipc_core",
49    "safwk:system_ability_fwk",
50    "samgr_standard:samgr_proxy",
51  ]
52
53  part_name = "${displaymgr_native_part_name}"
54}
55