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 = [ "include" ] 19} 20 21ohos_shared_library("bgtaskmgr_innerkits") { 22 sources = [ 23 "src/background_task_mgr_helper.cpp", 24 "src/background_task_subscriber.cpp", 25 "src/continuous_task_callback_info.cpp", 26 "src/continuous_task_param.cpp", 27 "src/delay_suspend_info.cpp", 28 "src/expired_callback.cpp", 29 "src/transient_task_app_info.cpp", 30 ] 31 32 public_configs = [ 33 ":bgtaskmgr_innerkits_public_config", 34 "//foundation/resourceschedule/background_task_mgr/frameworks:bgtaskmgr_public_config", 35 ] 36 37 public_deps = [ "${bgtaskmgr_frameworks_path}:bgtaskmgr_fwk" ] 38 39 external_deps = [ 40 "ability_base:want", 41 "ability_runtime:wantagent_innerkits", 42 "bundle_framework:appexecfwk_base", 43 "hiviewdfx_hilog_native:libhilog", 44 "ipc:ipc_core", 45 "safwk:system_ability_fwk", 46 "samgr_standard:samgr_proxy", 47 "utils_base:utils", 48 ] 49 50 subsystem_name = "resourceschedule" 51 part_name = "background_task_mgr" 52} 53