1# Copyright (c) 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("./DHardware_UI.gni") 16 17ohos_hap("DHardware_UI") { 18 hap_profile = "entry/src/main/module.json" 19 deps = [ 20 ":DHardware_UI_js_assets", 21 ":DHardware_UI_resources", 22 ] 23 certificate_profile = "signature/DHardware_UI.p7b" 24 hap_name = "DHardware_UI" 25 part_name = "prebuilt_hap" 26 subsystem_name = "applications" 27 js_build_mode = "release" 28 module_install_dir = "app/DHardware_UI" 29 if (defined(sign_hap_py_path)) { 30 certificate_profile = "${certificate_profile_path}" 31 key_alias = "DHardwareUI Release" 32 private_key_path = "DHardwareUI Release" 33 compatible_version = "11" 34 } 35} 36 37ohos_app_scope("DHardware_UI_app_profile") { 38 app_profile = "AppScope/app.json" 39 sources = [ "AppScope/resources" ] 40} 41 42ohos_js_assets("DHardware_UI_js_assets") { 43 ets2abc = true 44 source_dir = "entry/src/main/ets" 45} 46 47ohos_resources("DHardware_UI_resources") { 48 sources = [ "entry/src/main/resources" ] 49 deps = [ ":DHardware_UI_app_profile" ] 50 hap_profile = "entry/src/main/module.json" 51} 52