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/oobe_datashare_utils.cpp",
32    "../common/src/oobe_manager.cpp",
33  ]
34
35  deps = []
36
37  external_deps = [
38    "ability_base:zuri",
39    "ability_runtime:dataobs_manager",
40    "c_utils:utils",
41    "data_share:datashare_consumer",
42    "hilog:libhilog",
43    "ipc:ipc_core",
44    "safwk:system_ability_fwk",
45    "samgr:samgr_proxy",
46  ]
47
48  public_external_deps = [ "ffrt:libffrt" ]
49  subsystem_name = "resourceschedule"
50  part_name = "resource_schedule_service"
51  branch_protector_ret = "pac_ret"
52
53  sanitize = {
54    cfi = true
55    cfi_cross_dso = true
56    debug = false
57  }
58}
59