• 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
17config("bgtaskmgr_innerkits_public_config") {
18  include_dirs = [
19    "include",
20    "${bgtaskmgr_frameworks_path}/common/include",
21    "${bgtaskmgr_frameworks_path}/include",
22    "//third_party/json/single_include",
23  ]
24}
25
26ohos_shared_library("bgtaskmgr_innerkits") {
27  sources = [
28    "${bgtaskmgr_frameworks_path}/common/src/bgtaskmgr_log_wrapper.cpp",
29    "${bgtaskmgr_frameworks_path}/src/background_task_manager.cpp",
30    "${bgtaskmgr_frameworks_path}/src/background_task_mgr_proxy.cpp",
31    "${bgtaskmgr_frameworks_path}/src/background_task_subscriber_proxy.cpp",
32    "${bgtaskmgr_frameworks_path}/src/background_task_subscriber_stub.cpp",
33    "${bgtaskmgr_frameworks_path}/src/expired_callback_stub.cpp",
34    "src/background_task_mgr_helper.cpp",
35    "src/background_task_subscriber.cpp",
36    "src/continuous_task_callback_info.cpp",
37    "src/continuous_task_param.cpp",
38    "src/delay_suspend_info.cpp",
39    "src/efficiency_resource_info.cpp",
40    "src/expired_callback.cpp",
41    "src/resource_callback_info.cpp",
42    "src/transient_task_app_info.cpp",
43  ]
44
45  public_configs = [ ":bgtaskmgr_innerkits_public_config" ]
46
47  external_deps = [
48    "ability_runtime:wantagent_innerkits",
49    "c_utils:utils",
50    "hitrace_native:hitrace_meter",
51    "hiviewdfx_hilog_native:libhilog",
52    "ipc:ipc_core",
53    "samgr:samgr_proxy",
54  ]
55
56  subsystem_name = "resourceschedule"
57  part_name = "background_task_mgr"
58}
59