diff --git a/interfaces/inner_api/BUILD.gn b/interfaces/inner_api/BUILD.gn index de1ad939d5ce67da8e4e54805bce6d9fb3e49e94..897b5fc73232f6157aaa5aedd998d43fbcd792a7 100644 --- a/interfaces/inner_api/BUILD.gn +++ b/interfaces/inner_api/BUILD.gn @@ -33,6 +33,9 @@ ohos_shared_library("thermalsrv_client") { sources = [ "${thermal_frameworks}/native/thermal_mgr_client.cpp", "${thermal_frameworks}/native/thermal_srv_sensor_info.cpp", + "${thermal_service_zidl}/src/thermal_action_callback_stub.cpp", + "${thermal_service_zidl}/src/thermal_level_callback_stub.cpp", + "${thermal_service_zidl}/src/thermal_temp_callback_stub.cpp", ] configs = [ @@ -52,6 +55,7 @@ ohos_shared_library("thermalsrv_client") { external_deps = [ "bundle_framework:appexecfwk_base", "c_utils:utils", + "hicollie:libhicollie", "hilog:libhilog", "ipc:ipc_core", "samgr:samgr_proxy", diff --git a/services/BUILD.gn b/services/BUILD.gn index c084c8940ea7178b5d804072bfb30f2ee4ddd288..2d6ae5500e180321cce49d5a28cc210ac8f5de17 100644 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -35,6 +35,9 @@ ohos_shared_library("thermalservice") { branch_protector_ret = "pac_ret" sources = [ + "${thermal_service_zidl}/src/thermal_action_callback_proxy.cpp", + "${thermal_service_zidl}/src/thermal_level_callback_proxy.cpp", + "${thermal_service_zidl}/src/thermal_temp_callback_proxy.cpp", "native/src/fan_callback.cpp", "native/src/thermal_action/action/action_airplane.cpp", "native/src/thermal_action/action/action_application_process.cpp", diff --git a/services/zidl/BUILD.gn b/services/zidl/BUILD.gn index 8b269bc585627c09610d4eb90303b4d08ed750ad..54d4b4b594b8f8591f8864ff27c7de93c6291022 100644 --- a/services/zidl/BUILD.gn +++ b/services/zidl/BUILD.gn @@ -53,13 +53,6 @@ ohos_source_set("thermalmgr_proxy") { output_values = get_target_outputs(":thermalmgr_interface") sources = filter_include(output_values, [ "*_proxy.cpp" ]) - sources += [ - "src/thermal_action_callback_proxy.cpp", - "src/thermal_level_callback_proxy.cpp", - "src/thermal_level_callback_stub.cpp", - "src/thermal_temp_callback_proxy.cpp", - ] - configs = [ "${utils_path}:utils_config", ":thermalmgr_ipc_private_config",