137a09cd7Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
237a09cd7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
337a09cd7Sopenharmony_ci# you may not use this file except in compliance with the License.
437a09cd7Sopenharmony_ci# You may obtain a copy of the License at
537a09cd7Sopenharmony_ci#
637a09cd7Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
737a09cd7Sopenharmony_ci#
837a09cd7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
937a09cd7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1037a09cd7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1137a09cd7Sopenharmony_ci# See the License for the specific language governing permissions and
1237a09cd7Sopenharmony_ci# limitations under the License.
1337a09cd7Sopenharmony_ci
1437a09cd7Sopenharmony_ciimport("../../thermalmgr.gni")
1537a09cd7Sopenharmony_ci
1637a09cd7Sopenharmony_ciconfig("thermalmgr_ipc_private_config") {
1737a09cd7Sopenharmony_ci  include_dirs = [ "${thermal_inner_api}/native/include" ]
1837a09cd7Sopenharmony_ci}
1937a09cd7Sopenharmony_ci
2037a09cd7Sopenharmony_ciconfig("thermalmgr_ipc_public_config") {
2137a09cd7Sopenharmony_ci  include_dirs = [ "include" ]
2237a09cd7Sopenharmony_ci}
2337a09cd7Sopenharmony_ci
2437a09cd7Sopenharmony_cideps_ex = [
2537a09cd7Sopenharmony_ci  "bundle_framework:appexecfwk_base",
2637a09cd7Sopenharmony_ci  "hilog:libhilog",
2737a09cd7Sopenharmony_ci  "hicollie:libhicollie",
2837a09cd7Sopenharmony_ci  "ipc:ipc_core",
2937a09cd7Sopenharmony_ci  "c_utils:utils",
3037a09cd7Sopenharmony_ci]
3137a09cd7Sopenharmony_ci
3237a09cd7Sopenharmony_ciohos_shared_library("thermalmgr_stub") {
3337a09cd7Sopenharmony_ci  sources = [
3437a09cd7Sopenharmony_ci    "${thermal_frameworks}/native/thermal_srv_sensor_info.cpp",
3537a09cd7Sopenharmony_ci    "src/thermal_action_callback_stub.cpp",
3637a09cd7Sopenharmony_ci    "src/thermal_srv_stub.cpp",
3737a09cd7Sopenharmony_ci    "src/thermal_temp_callback_stub.cpp",
3837a09cd7Sopenharmony_ci  ]
3937a09cd7Sopenharmony_ci
4037a09cd7Sopenharmony_ci  configs = [
4137a09cd7Sopenharmony_ci    "${utils_path}:utils_config",
4237a09cd7Sopenharmony_ci    ":thermalmgr_ipc_private_config",
4337a09cd7Sopenharmony_ci    "${utils_path}:coverage_flags",
4437a09cd7Sopenharmony_ci  ]
4537a09cd7Sopenharmony_ci
4637a09cd7Sopenharmony_ci  public_configs = [ ":thermalmgr_ipc_public_config" ]
4737a09cd7Sopenharmony_ci
4837a09cd7Sopenharmony_ci  external_deps = deps_ex
4937a09cd7Sopenharmony_ci
5037a09cd7Sopenharmony_ci  subsystem_name = "powermgr"
5137a09cd7Sopenharmony_ci  part_name = "thermal_manager"
5237a09cd7Sopenharmony_ci}
5337a09cd7Sopenharmony_ci
5437a09cd7Sopenharmony_ciohos_shared_library("thermalmgr_proxy") {
5537a09cd7Sopenharmony_ci  branch_protector_ret = "pac_ret"
5637a09cd7Sopenharmony_ci
5737a09cd7Sopenharmony_ci  sources = [
5837a09cd7Sopenharmony_ci    "${thermal_manager_path}/frameworks/native/thermal_srv_sensor_info.cpp",
5937a09cd7Sopenharmony_ci    "src/thermal_action_callback_proxy.cpp",
6037a09cd7Sopenharmony_ci    "src/thermal_level_callback_proxy.cpp",
6137a09cd7Sopenharmony_ci    "src/thermal_level_callback_stub.cpp",
6237a09cd7Sopenharmony_ci    "src/thermal_srv_proxy.cpp",
6337a09cd7Sopenharmony_ci    "src/thermal_temp_callback_proxy.cpp",
6437a09cd7Sopenharmony_ci  ]
6537a09cd7Sopenharmony_ci
6637a09cd7Sopenharmony_ci  configs = [
6737a09cd7Sopenharmony_ci    "${utils_path}:utils_config",
6837a09cd7Sopenharmony_ci    ":thermalmgr_ipc_private_config",
6937a09cd7Sopenharmony_ci    "${utils_path}:coverage_flags",
7037a09cd7Sopenharmony_ci  ]
7137a09cd7Sopenharmony_ci
7237a09cd7Sopenharmony_ci  public_configs = [ ":thermalmgr_ipc_public_config" ]
7337a09cd7Sopenharmony_ci
7437a09cd7Sopenharmony_ci  external_deps = deps_ex
7537a09cd7Sopenharmony_ci
7637a09cd7Sopenharmony_ci  subsystem_name = "powermgr"
7737a09cd7Sopenharmony_ci  innerapi_tags = [ "platformsdk" ]
7837a09cd7Sopenharmony_ci  part_name = "thermal_manager"
7937a09cd7Sopenharmony_ci}
80