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