• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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.
13
14import("//build/ohos.gni")
15import("../ressched.gni")
16
17config("common_private_config") {
18  include_dirs = [ "${ressched_common}/include" ]
19}
20
21config("common_public_config") {
22  include_dirs = [ "include" ]
23}
24
25ohos_shared_library("ressched_common_utils") {
26  configs = [ ":common_public_config" ]
27
28  public_configs = [ ":common_private_config" ]
29
30  sources = [
31    "../common/src/batch_log_printer.cpp",
32    "../common/src/oobe_datashare_utils.cpp",
33    "../common/src/oobe_manager.cpp",
34    "../common/src/res_json_type.cpp",
35    "../common/src/res_sched_file_util.cpp",
36    "../common/src/res_sched_json_util.cpp",
37    "../common/src/res_sched_string_util.cpp",
38    "../common/src/res_sched_system_util.cpp",
39    "../common/src/res_sched_time_util.cpp",
40  ]
41
42  deps = []
43
44  external_deps = [
45    "ability_base:zuri",
46    "ability_runtime:dataobs_manager",
47    "c_utils:utils",
48    "config_policy:configpolicy_util",
49    "data_share:datashare_consumer",
50    "hilog:libhilog",
51    "init:libbegetutil",
52    "ipc:ipc_core",
53    "json:nlohmann_json_static",
54    "safwk:system_ability_fwk",
55    "samgr:samgr_proxy",
56  ]
57
58  public_external_deps = [ "ffrt:libffrt" ]
59  subsystem_name = "resourceschedule"
60  part_name = "resource_schedule_service"
61  branch_protector_ret = "pac_ret"
62
63  sanitize = {
64    cfi = true
65    cfi_cross_dso = true
66    debug = false
67  }
68}
69