• 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("../../thermalmgr.gni")
15
16config("thermalsrv_private_config") {
17  include_dirs = [ "${thermal_service_zidl}/include" ]
18}
19
20config("thermalsrv_public_config") {
21  include_dirs = [ "native/include" ]
22}
23
24ohos_shared_library("thermalsrv_client") {
25  sources = [ "${thermal_frameworks}/native/thermal_mgr_client.cpp" ]
26
27  configs = [
28    "${utils_path}:utils_config",
29    ":thermalsrv_private_config",
30    "${utils_path}:coverage_flags",
31  ]
32
33  public_configs = [ ":thermalsrv_public_config" ]
34
35  deps = [ "${thermal_service_zidl}:thermalmgr_proxy" ]
36
37  external_deps = [
38    "bundle_framework:appexecfwk_base",
39    "c_utils:utils",
40    "hilog:libhilog",
41    "ipc:ipc_core",
42    "samgr:samgr_proxy",
43  ]
44  subsystem_name = "powermgr"
45  innerapi_tags = [ "platformsdk" ]
46  part_name = "thermal_manager"
47}
48
49ohos_shared_library("thermalmgr_listener") {
50  sources = [ "${thermal_frameworks}/native/thermal_mgr_listener.cpp" ]
51
52  configs = [
53    "${utils_path}:utils_config",
54    ":thermalsrv_private_config",
55    "${utils_path}:coverage_flags",
56  ]
57
58  public_configs = [ ":thermalsrv_public_config" ]
59
60  deps = [
61    "${thermal_inner_api}:thermalsrv_client",
62    "${thermal_service_zidl}:thermalmgr_proxy",
63  ]
64
65  external_deps = [
66    "bundle_framework:appexecfwk_base",
67    "c_utils:utils",
68    "hilog:libhilog",
69    "ipc:ipc_core",
70  ]
71
72  subsystem_name = "powermgr"
73  part_name = "thermal_manager"
74}
75