1# Copyright (c) 2023 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. 13import("//foundation/resourceschedule/device_standby/standby_service.gni") 14 15config("standby_utils_common_config") { 16 include_dirs = [ "include" ] 17} 18 19ohos_shared_library("standby_utils_common") { 20 branch_protector_ret = "pac_ret" 21 sanitize = { 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 } 26 sources = [ "src/common_constant.cpp" ] 27 28 public_configs = [ ":standby_utils_common_config" ] 29 30 external_deps = [ 31 "c_utils:utils", 32 "hilog:libhilog", 33 "ipc:ipc_single", 34 ] 35 36 defines = [] 37 if (enable_standby_configpolicy) { 38 external_deps += [ "config_policy:configpolicy_util" ] 39 defines += [ "STANDBY_CONFIG_POLICY_ENABLE" ] 40 } 41 42 subsystem_name = "resourceschedule" 43 part_name = "${standby_service_part_name}" 44} 45