• 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("//foundation/resourceschedule/background_task_mgr/bgtaskmgr.gni")
16
17cflags = []
18
19config("bgtaskmgr_public_config") {
20  include_dirs = [ "napi/include" ]
21}
22
23ohos_shared_library("backgroundtaskmanager") {
24  sources = [
25    "napi/src/bg_continuous_task_napi_module.cpp",
26    "napi/src/cancel_suspend_delay.cpp",
27    "napi/src/common.cpp",
28    "napi/src/get_remaining_delay_time.cpp",
29    "napi/src/init.cpp",
30    "napi/src/request_suspend_delay.cpp",
31  ]
32
33  public_configs = [ ":bgtaskmgr_public_config" ]
34
35  deps = [
36    "${bgtaskmgr_frameworks_path}:bgtaskmgr_fwk",
37    "${bgtaskmgr_interfaces_path}/innerkits:bgtaskmgr_innerkits",
38  ]
39
40  external_deps = [
41    "ability_base:want",
42    "ability_runtime:ability_context_native",
43    "ability_runtime:abilitykit_native",
44    "ability_runtime:napi_base_context",
45    "ability_runtime:wantagent_innerkits",
46    "bundle_framework:appexecfwk_base",
47    "dmsfwk_standard:zuri",
48    "hiviewdfx_hilog_native:libhilog",
49    "ipc:ipc_core",
50    "napi:ace_napi",
51    "safwk:system_ability_fwk",
52    "samgr_standard:samgr_proxy",
53    "utils_base:utils",
54  ]
55  relative_install_dir = "module"
56  subsystem_name = "resourceschedule"
57  part_name = "background_task_mgr"
58}
59