• 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/ohos.gni")
15import("//build/ohos/ace/ace.gni")
16import("//foundation/resourceschedule/work_scheduler/workscheduler.gni")
17
18config("worksched_public_config") {
19  include_dirs = [ "${worksched_root_path}/interfaces/kits/js/napi/include" ]
20}
21
22ohos_shared_library("workscheduler") {
23  public_configs = [ ":worksched_public_config" ]
24
25  sources = [
26    "${worksched_root_path}/interfaces/kits/js/napi/src/common.cpp",
27    "${worksched_root_path}/interfaces/kits/js/napi/src/common_want.cpp",
28    "${worksched_root_path}/interfaces/kits/js/napi/src/get_work_status.cpp",
29    "${worksched_root_path}/interfaces/kits/js/napi/src/init.cpp",
30    "${worksched_root_path}/interfaces/kits/js/napi/src/is_last_work_time_out.cpp",
31    "${worksched_root_path}/interfaces/kits/js/napi/src/obtain_all_works.cpp",
32    "${worksched_root_path}/interfaces/kits/js/napi/src/start_work.cpp",
33    "${worksched_root_path}/interfaces/kits/js/napi/src/stop_and_clear_works.cpp",
34    "${worksched_root_path}/interfaces/kits/js/napi/src/stop_work.cpp",
35  ]
36
37  deps = [
38    "${worksched_frameworks_path}:workschedclient",
39    "${worksched_utils_path}:workschedutils",
40  ]
41
42  external_deps = [
43    "ability_base:base",
44    "ability_base:want",
45    "hiviewdfx_hilog_native:libhilog",
46    "napi:ace_napi",
47  ]
48
49  relative_install_dir = "module/resourceschedule"
50  part_name = "${worksched_native_part_name}"
51  subsystem_name = "resourceschedule"
52}
53