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_ciimport("//foundation/resourceschedule/device_standby/standby_service.gni")
1499552fe9Sopenharmony_ci
1599552fe9Sopenharmony_ciconfig("standby_utils_common_config") {
1699552fe9Sopenharmony_ci  include_dirs = [ "include" ]
1799552fe9Sopenharmony_ci}
1899552fe9Sopenharmony_ci
1999552fe9Sopenharmony_ciohos_shared_library("standby_utils_common") {
2099552fe9Sopenharmony_ci  branch_protector_ret = "pac_ret"
2199552fe9Sopenharmony_ci  sanitize = {
2299552fe9Sopenharmony_ci    cfi = true
2399552fe9Sopenharmony_ci    cfi_cross_dso = true
2499552fe9Sopenharmony_ci    debug = false
2599552fe9Sopenharmony_ci  }
2699552fe9Sopenharmony_ci  sources = [ "src/common_constant.cpp" ]
2799552fe9Sopenharmony_ci
2899552fe9Sopenharmony_ci  public_configs = [ ":standby_utils_common_config" ]
2999552fe9Sopenharmony_ci
3099552fe9Sopenharmony_ci  external_deps = [
3199552fe9Sopenharmony_ci    "c_utils:utils",
3299552fe9Sopenharmony_ci    "hilog:libhilog",
3399552fe9Sopenharmony_ci    "ipc:ipc_single",
3499552fe9Sopenharmony_ci  ]
3599552fe9Sopenharmony_ci
3699552fe9Sopenharmony_ci  defines = []
3799552fe9Sopenharmony_ci  if (enable_standby_configpolicy) {
3899552fe9Sopenharmony_ci    external_deps += [ "config_policy:configpolicy_util" ]
3999552fe9Sopenharmony_ci    defines += [ "STANDBY_CONFIG_POLICY_ENABLE" ]
4099552fe9Sopenharmony_ci  }
4199552fe9Sopenharmony_ci
4299552fe9Sopenharmony_ci  subsystem_name = "resourceschedule"
4399552fe9Sopenharmony_ci  part_name = "${standby_service_part_name}"
4499552fe9Sopenharmony_ci}
45