• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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/config/components/idl_tool/idl.gni")
15import("//foundation/resourceschedule/work_scheduler/workscheduler.gni")
16
17idl_gen_interface("work_scheduler_interface") {
18  src_idl = rebase_path("IWorkScheduler.idl")
19  log_domainid = "0xD001712"
20  log_tag = "WORK_SCHEDULER"
21}
22
23config("worksched_public_config") {
24  include_dirs = [
25    "include",
26    "${target_gen_dir}",
27  ]
28}
29
30ohos_source_set("workschedservice_zidl_stub") {
31  branch_protector_ret = "pac_ret"
32  sanitize = {
33    cfi = true
34    cfi_cross_dso = true
35    debug = false
36  }
37  public_configs = [ ":worksched_public_config" ]
38  output_values = get_target_outputs(":work_scheduler_interface")
39  sources = filter_include(output_values, [ "*_stub.cpp" ])
40  deps = [
41    ":work_scheduler_interface",
42    "${worksched_frameworks_path}:workschedclient",
43  ]
44  external_deps = [
45    "ability_base:want",
46    "c_utils:utils",
47    "hilog:libhilog",
48    "ipc:ipc_core",
49    "ipc:ipc_napi",
50  ]
51  subsystem_name = "resourceschedule"
52  part_name = "${worksched_native_part_name}"
53}
54
55ohos_source_set("workschedservice_zidl_proxy") {
56  branch_protector_ret = "pac_ret"
57  sanitize = {
58    cfi = true
59    cfi_cross_dso = true
60    debug = false
61  }
62  public_configs = [ ":worksched_public_config" ]
63  output_values = get_target_outputs(":work_scheduler_interface")
64  sources = filter_include(output_values, [ "*_proxy.cpp" ])
65  deps = [
66    ":work_scheduler_interface",
67    "${worksched_frameworks_path}:workschedclient",
68  ]
69  external_deps = [
70    "ability_base:want",
71    "c_utils:utils",
72    "hilog:libhilog",
73    "ipc:ipc_core",
74    "ipc:ipc_napi",
75  ]
76  subsystem_name = "resourceschedule"
77  part_name = "${worksched_native_part_name}"
78}
79