• 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("//foundation/resourceschedule/work_scheduler/workscheduler.gni")
15
16config("worksched_private_config") {
17  include_dirs = [
18    "${worksched_service_path}/zidl/include",
19    "${ability_runtime_path}/frameworks/native/ability/native/",
20    "//foundation/arkui/napi/native_engine",
21  ]
22}
23
24config("worksched_public_config") {
25  include_dirs = [ "include" ]
26}
27
28ohos_shared_library("workschedextension") {
29  branch_protector_ret = "pac_ret"
30
31  sanitize = {
32    cfi = true
33    cfi_cross_dso = true
34    debug = false
35  }
36  sources = [
37    "${worksched_service_path}/zidl/src/work_scheduler_stub.cpp",
38    "${worksched_service_path}/zidl/src/work_scheduler_stub_imp.cpp",
39    "src/js_work_scheduler_extension.cpp",
40    "src/js_work_scheduler_extension_context.cpp",
41    "src/work_scheduler_extension.cpp",
42    "src/work_scheduler_extension_context.cpp",
43    "src/work_scheduler_extension_module_loader.cpp",
44  ]
45
46  configs = [ ":worksched_private_config" ]
47
48  public_configs = [ ":worksched_public_config" ]
49
50  deps = [
51    "${worksched_frameworks_path}:workschedclient",
52    "${worksched_utils_path}:workschedutils",
53  ]
54
55  external_deps = [
56    "ability_base:want",
57    "ability_runtime:ability_context_native",
58    "ability_runtime:app_context",
59    "ability_runtime:extensionkit_native",
60    "ability_runtime:runtime",
61    "common_event_service:cesfwk_innerkits",
62    "eventhandler:libeventhandler",
63    "hilog:libhilog",
64    "ipc:ipc_single",
65    "napi:ace_napi",
66  ]
67
68  relative_install_dir = "extensionability"
69  subsystem_name = "resourceschedule"
70  part_name = "${worksched_native_part_name}"
71}
72