• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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(
14    "//foundation/resourceschedule/device_standby/standby_service.gni")
15
16config("standby_utils_common_config") {
17  include_dirs = [ "include" ]
18}
19
20ohos_shared_library("standby_utils_common") {
21  sources = [
22    "src/common_constant.cpp",
23    "src/standby_service_log.cpp",
24  ]
25
26  public_configs = [ ":standby_utils_common_config" ]
27
28  external_deps = [
29    "c_utils:utils",
30    "hilog:libhilog",
31    "ipc:ipc_single",
32  ]
33
34  defines = []
35  if (enable_standby_configpolicy) {
36    external_deps += [ "config_policy:configpolicy_util" ]
37    defines += [ "STANDBY_CONFIG_POLICY_ENABLE" ]
38  }
39
40  subsystem_name = "resourceschedule"
41  part_name = "${standby_service_part_name}"
42}
43