• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("//base/powermgr/thermal_manager/thermalmgr.gni")
15
16config("thermalmgr_ipc_private_config") {
17  include_dirs = [ "${thermal_innerkits}/native/include" ]
18}
19
20config("thermalmgr_ipc_public_config") {
21  include_dirs = [
22    "include",
23    "//base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie",
24  ]
25}
26
27deps_ex = [
28  "bundle_framework:appexecfwk_base",
29  "hiviewdfx_hilog_native:libhilog",
30  "hicollie_native:libhicollie",
31  "ipc:ipc_core",
32  "c_utils:utils",
33]
34
35ohos_shared_library("thermalmgr_stub") {
36  sources = [
37    "${thermal_frameworks}/native/thermal_srv_sensor_info.cpp",
38    "src/thermal_action_callback_stub.cpp",
39    "src/thermal_srv_stub.cpp",
40    "src/thermal_temp_callback_stub.cpp",
41  ]
42
43  configs = [
44    "${utils_path}:utils_config",
45    ":thermalmgr_ipc_private_config",
46  ]
47
48  public_configs = [ ":thermalmgr_ipc_public_config" ]
49
50  external_deps = deps_ex
51
52  subsystem_name = "powermgr"
53  part_name = "thermal_manager"
54}
55
56ohos_shared_library("thermalmgr_proxy") {
57  sources = [
58    "${thermal_manager_path}/frameworks/native/thermal_srv_sensor_info.cpp",
59    "src/thermal_action_callback_proxy.cpp",
60    "src/thermal_level_callback_proxy.cpp",
61    "src/thermal_level_callback_stub.cpp",
62    "src/thermal_srv_proxy.cpp",
63    "src/thermal_temp_callback_proxy.cpp",
64  ]
65
66  configs = [
67    "${utils_path}:utils_config",
68    ":thermalmgr_ipc_private_config",
69  ]
70
71  public_configs = [ ":thermalmgr_ipc_public_config" ]
72
73  external_deps = deps_ex
74
75  subsystem_name = "powermgr"
76  part_name = "thermal_manager"
77}
78