• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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.
13
14import("//build/ohos.gni")
15import("//build/test.gni")
16import("../../../ressched.gni")
17
18config("client_private_config") {
19  include_dirs = [ "${ressched_common}/include" ]
20}
21
22config("client_public_config") {
23  include_dirs = [ "include" ]
24}
25
26ohos_shared_library("ressched_client") {
27  configs = [ ":client_private_config" ]
28
29  public_configs = [ ":client_public_config" ]
30
31  sources = [
32    "src/res_sched_client.cpp",
33    "src/res_sched_service_proxy.cpp",
34  ]
35
36  public_deps = [ "//third_party/json:nlohmann_json_static" ]
37
38  external_deps = [
39    "c_utils:utils",
40    "hilog:libhilog",
41    "ipc:ipc_single",
42    "samgr:samgr_proxy",
43  ]
44
45  innerapi_tags = [ "platformsdk" ]
46  version_script = "libressched_client.versionscript"
47  subsystem_name = "resourceschedule"
48  part_name = "resource_schedule_service"
49
50  branch_protector_ret = "pac_ret"
51
52  sanitize = {
53    cfi = true
54    cfi_cross_dso = true
55    debug = false
56  }
57}
58