1686862fbSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
2686862fbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3686862fbSopenharmony_ci# you may not use this file except in compliance with the License.
4686862fbSopenharmony_ci# You may obtain a copy of the License at
5686862fbSopenharmony_ci#
6686862fbSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7686862fbSopenharmony_ci#
8686862fbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9686862fbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10686862fbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11686862fbSopenharmony_ci# See the License for the specific language governing permissions and
12686862fbSopenharmony_ci# limitations under the License.
13686862fbSopenharmony_ci
14686862fbSopenharmony_ciimport("//build/ohos.gni")
15686862fbSopenharmony_ciimport("//build/ohos_var.gni")
16686862fbSopenharmony_ciimport("../dmsfwk.gni")
17686862fbSopenharmony_ci
18686862fbSopenharmony_ciohos_shared_library("distributed_sched_utils") {
19686862fbSopenharmony_ci  sanitize = {
20686862fbSopenharmony_ci    cfi = true
21686862fbSopenharmony_ci    cfi_cross_dso = true
22686862fbSopenharmony_ci    debug = false
23686862fbSopenharmony_ci  }
24686862fbSopenharmony_ci
25686862fbSopenharmony_ci  include_dirs = [
26686862fbSopenharmony_ci    "${dms_path}/common/include",
27686862fbSopenharmony_ci    "${dms_path}/interfaces/innerkits/common/include",
28686862fbSopenharmony_ci    "${dms_path}/services/dtbschedmgr/include",
29686862fbSopenharmony_ci  ]
30686862fbSopenharmony_ci
31686862fbSopenharmony_ci  sources = [ "src/distributed_sched_utils.cpp" ]
32686862fbSopenharmony_ci
33686862fbSopenharmony_ci  deps = []
34686862fbSopenharmony_ci
35686862fbSopenharmony_ci  external_deps = [
36686862fbSopenharmony_ci    "ability_runtime:ability_manager",
37686862fbSopenharmony_ci    "cJSON:cjson",
38686862fbSopenharmony_ci    "c_utils:utils",
39686862fbSopenharmony_ci    "config_policy:configpolicy_util",
40686862fbSopenharmony_ci    "hilog:libhilog",
41686862fbSopenharmony_ci  ]
42686862fbSopenharmony_ci
43686862fbSopenharmony_ci  install_images = [ system_base_dir ]
44686862fbSopenharmony_ci  relative_install_dir = "platformsdk"
45686862fbSopenharmony_ci  part_name = "dmsfwk"
46686862fbSopenharmony_ci  subsystem_name = "ability"
47686862fbSopenharmony_ci}
48