1# Copyright (c) 2021-2024 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. 13import("//build/ohos.gni") 14import("signature/pm.gni") 15 16ohos_app("permission_manager") { 17 deps = [ 18 ":permission_manager_js_assets", 19 ":permission_manager_resources", 20 ] 21 publicity_file = "publicity.xml" 22 certificate_profile = "signature/pm.p7b" 23 hap_name = "permission_manager" 24 part_name = "permission_manager" 25 subsystem_name = "applications" 26 js_build_mode = "release" 27 module_install_dir = "app/com.ohos.permissionmanager" 28 sdk_home = "//prebuilts/ohos-sdk/linux" 29 sdk_type_name = [ "sdk.dir" ] 30 assemble_type = "assembleHap" 31 build_level = "module" 32 build_modules = [ "permissionmanager" ] 33 if (defined(sign_hap_py_path)) { 34 certificate_profile = "${certificate_profile_path}" 35 key_alias = "PermissionManager" 36 private_key_path = "PermissionManager" 37 compatible_version = "9" 38 } 39} 40 41ohos_app_scope("permission_manager_app_profile") { 42 app_profile = "AppScope/app.json" 43 sources = [ "AppScope/resources" ] 44} 45 46ohos_js_assets("permission_manager_js_assets") { 47 ets2abc = true 48 source_dir = "permissionmanager/src/main/ets" 49} 50 51ohos_resources("permission_manager_resources") { 52 sources = [ "permissionmanager/src/main/resources" ] 53 deps = [ ":permission_manager_app_profile" ] 54 hap_profile = "permissionmanager/src/main/module.json" 55} 56