1794c9f46Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2794c9f46Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3794c9f46Sopenharmony_ci# you may not use this file except in compliance with the License. 4794c9f46Sopenharmony_ci# You may obtain a copy of the License at 5794c9f46Sopenharmony_ci# 6794c9f46Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7794c9f46Sopenharmony_ci# 8794c9f46Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9794c9f46Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10794c9f46Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11794c9f46Sopenharmony_ci# See the License for the specific language governing permissions and 12794c9f46Sopenharmony_ci# limitations under the License. 13794c9f46Sopenharmony_ci 14794c9f46Sopenharmony_ciimport("//build/ohos.gni") 15794c9f46Sopenharmony_ciimport("./DHardware_UI.gni") 16794c9f46Sopenharmony_ci 17794c9f46Sopenharmony_ciohos_hap("DHardware_UI") { 18794c9f46Sopenharmony_ci hap_profile = "entry/src/main/module.json" 19794c9f46Sopenharmony_ci deps = [ 20794c9f46Sopenharmony_ci ":DHardware_UI_js_assets", 21794c9f46Sopenharmony_ci ":DHardware_UI_resources", 22794c9f46Sopenharmony_ci ] 23794c9f46Sopenharmony_ci publicity_file = "../publicity.xml" 24794c9f46Sopenharmony_ci certificate_profile = "signature/DHardware_UI.p7b" 25794c9f46Sopenharmony_ci hap_name = "DHardware_UI" 26794c9f46Sopenharmony_ci part_name = "prebuilt_hap" 27794c9f46Sopenharmony_ci subsystem_name = "applications" 28794c9f46Sopenharmony_ci js_build_mode = "release" 29794c9f46Sopenharmony_ci module_install_dir = "app/DHardware_UI" 30794c9f46Sopenharmony_ci if (defined(sign_hap_py_path)) { 31794c9f46Sopenharmony_ci certificate_profile = "${certificate_profile_path}" 32794c9f46Sopenharmony_ci key_alias = "DHardwareUI Release" 33794c9f46Sopenharmony_ci private_key_path = "DHardwareUI Release" 34794c9f46Sopenharmony_ci compatible_version = "12" 35794c9f46Sopenharmony_ci } 36794c9f46Sopenharmony_ci} 37794c9f46Sopenharmony_ci 38794c9f46Sopenharmony_ciohos_app_scope("DHardware_UI_app_profile") { 39794c9f46Sopenharmony_ci app_profile = "AppScope/app.json" 40794c9f46Sopenharmony_ci sources = [ "AppScope/resources" ] 41794c9f46Sopenharmony_ci} 42794c9f46Sopenharmony_ci 43794c9f46Sopenharmony_ciohos_js_assets("DHardware_UI_js_assets") { 44794c9f46Sopenharmony_ci ets2abc = true 45794c9f46Sopenharmony_ci source_dir = "entry/src/main/ets" 46794c9f46Sopenharmony_ci} 47794c9f46Sopenharmony_ci 48794c9f46Sopenharmony_ciohos_resources("DHardware_UI_resources") { 49794c9f46Sopenharmony_ci sources = [ "entry/src/main/resources" ] 50794c9f46Sopenharmony_ci deps = [ ":DHardware_UI_app_profile" ] 51794c9f46Sopenharmony_ci hap_profile = "entry/src/main/module.json" 52794c9f46Sopenharmony_ci} 53