# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("./signature/BackgroundTaskResources.gni") group("bgtaskmgr_resources") { deps = [ ":backgroundtaskresources_hap" ] } ohos_resources("backgroundtask_res") { sources = [ "main/resources" ] hap_profile = "./main/config.json" } ohos_hap("backgroundtaskresources_hap") { deps = [ ":backgroundtask_res" ] hap_profile = "./main/config.json" hap_name = "BackgroundTaskResources" module_install_dir = "app/com.ohos.backgroundtaskmgr.resources" certificate_profile = "./BackgroundTaskResources.p7b" subsystem_name = "resourceschedule" part_name = "background_task_mgr" publicity_file = "publicity.xml" if (defined(sign_hap_py_path)) { certificate_profile = "${certificate_profile_path}" key_alias = "HwBackgroundTaskMgr release" private_key_path = "HwBackgroundTaskMgr release" compatible_version = "9" } }