• 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/thermal_manager/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  ]
31
32  public_configs = [ ":thermalsrv_public_config" ]
33
34  deps = [ "${thermal_service_zidl}:thermalmgr_proxy" ]
35
36  external_deps = [
37    "bundle_framework:appexecfwk_base",
38    "c_utils:utils",
39    "hiviewdfx_hilog_native:libhilog",
40    "ipc:ipc_core",
41    "samgr:samgr_proxy",
42  ]
43  subsystem_name = "powermgr"
44  part_name = "thermal_manager"
45}
46
47ohos_shared_library("thermalmgr_listener") {
48  sources = [ "${thermal_frameworks}/native/thermal_mgr_listener.cpp" ]
49
50  configs = [
51    "${utils_path}:utils_config",
52    ":thermalsrv_private_config",
53  ]
54
55  public_configs = [ ":thermalsrv_public_config" ]
56
57  deps = [
58    "${thermal_innerkits}:thermalsrv_client",
59    "${thermal_service_zidl}:thermalmgr_proxy",
60  ]
61
62  external_deps = [
63    "bundle_framework:appexecfwk_base",
64    "c_utils:utils",
65    "hiviewdfx_hilog_native:libhilog",
66    "ipc:ipc_core",
67  ]
68
69  subsystem_name = "powermgr"
70  part_name = "thermal_manager"
71}
72