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("signature/dlpm.gni") 16 17ohos_hap("dlp_manager") { 18 hap_profile = "entry/src/main/module.json" 19 deps = [ 20 ":dlp_manager_js_assets", 21 ":dlp_manager_resources", 22 ] 23 js_build_mode = "debug" 24 certificate_profile = "signature/dlpmanager.p7b" 25 hap_name = "dlp_manager" 26 part_name = "prebuilt_hap" 27 subsystem_name = "applications" 28 module_install_dir = "app/com.ohos.dlpmanager" 29 if (defined(sign_hap_py_path)) { 30 certificate_profile = "${certificate_profile_path}" 31 key_alias = "dlpmanager" 32 compatible_version = "9" 33 } 34} 35 36ohos_app_scope("dlp_manager_app_profile") { 37 app_profile = "AppScope/app.json" 38 sources = [ "AppScope/resources" ] 39} 40 41ohos_js_assets("dlp_manager_js_assets") { 42 ets2abc = true 43 source_dir = "entry/src/main/ets" 44} 45 46ohos_resources("dlp_manager_resources") { 47 sources = [ "entry/src/main/resources" ] 48 deps = [ ":dlp_manager_app_profile" ] 49 hap_profile = "entry/src/main/module.json" 50} 51