199552fe9Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 299552fe9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 399552fe9Sopenharmony_ci# you may not use this file except in compliance with the License. 499552fe9Sopenharmony_ci# You may obtain a copy of the License at 599552fe9Sopenharmony_ci# 699552fe9Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 799552fe9Sopenharmony_ci# 899552fe9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 999552fe9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1099552fe9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1199552fe9Sopenharmony_ci# See the License for the specific language governing permissions and 1299552fe9Sopenharmony_ci# limitations under the License. 1399552fe9Sopenharmony_ci 1499552fe9Sopenharmony_ciimport("//build/ohos.gni") 1599552fe9Sopenharmony_ciimport("//foundation/resourceschedule/device_standby/standby_service.gni") 1699552fe9Sopenharmony_ci 1799552fe9Sopenharmony_ciconfig("standby_innerkits_public_config") { 1899552fe9Sopenharmony_ci include_dirs = [ 1999552fe9Sopenharmony_ci "include", 2099552fe9Sopenharmony_ci "${standby_service_frameworks_path}/include", 2199552fe9Sopenharmony_ci "${standby_utils_common_path}/include", 2299552fe9Sopenharmony_ci ] 2399552fe9Sopenharmony_ci} 2499552fe9Sopenharmony_ci 2599552fe9Sopenharmony_ciohos_shared_library("standby_innerkits") { 2699552fe9Sopenharmony_ci branch_protector_ret = "pac_ret" 2799552fe9Sopenharmony_ci sanitize = { 2899552fe9Sopenharmony_ci cfi = true 2999552fe9Sopenharmony_ci cfi_cross_dso = true 3099552fe9Sopenharmony_ci debug = false 3199552fe9Sopenharmony_ci } 3299552fe9Sopenharmony_ci sources = [ 3399552fe9Sopenharmony_ci "src/allow_info.cpp", 3499552fe9Sopenharmony_ci "src/allow_type.cpp", 3599552fe9Sopenharmony_ci "src/resourcce_request.cpp", 3699552fe9Sopenharmony_ci "src/standby_service_client.cpp", 3799552fe9Sopenharmony_ci "src/standby_service_proxy.cpp", 3899552fe9Sopenharmony_ci "src/standby_service_subscriber_stub.cpp", 3999552fe9Sopenharmony_ci ] 4099552fe9Sopenharmony_ci 4199552fe9Sopenharmony_ci public_configs = [ ":standby_innerkits_public_config" ] 4299552fe9Sopenharmony_ci 4399552fe9Sopenharmony_ci deps = [ 4499552fe9Sopenharmony_ci "${standby_service_frameworks_path}:standby_fwk", 4599552fe9Sopenharmony_ci "${standby_utils_common_path}:standby_utils_common", 4699552fe9Sopenharmony_ci ] 4799552fe9Sopenharmony_ci 4899552fe9Sopenharmony_ci external_deps = [ 4999552fe9Sopenharmony_ci "c_utils:utils", 5099552fe9Sopenharmony_ci "hilog:libhilog", 5199552fe9Sopenharmony_ci "ipc:ipc_single", 5299552fe9Sopenharmony_ci "json:nlohmann_json_static", 5399552fe9Sopenharmony_ci "samgr:samgr_proxy", 5499552fe9Sopenharmony_ci ] 5599552fe9Sopenharmony_ci 5699552fe9Sopenharmony_ci innerapi_tags = [ "platformsdk" ] 5799552fe9Sopenharmony_ci subsystem_name = "resourceschedule" 5899552fe9Sopenharmony_ci part_name = "${standby_service_part_name}" 5999552fe9Sopenharmony_ci 6099552fe9Sopenharmony_ci version_script = "libstandby_innerkits.versionscript" 6199552fe9Sopenharmony_ci} 62