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("./signature/locationdialog.gni") 16 17ohos_hap("location_dialog_hap") { 18 hap_profile = "entry/src/main/module.json" 19 20 deps = [ 21 ":location_dialog_js_assets", 22 ":location_dialog_resources", 23 ] 24 25 publicity_file = "publicity.xml" 26 certificate_profile = "signature/locationdialog.p7b" 27 hap_name = "LocationDialog" 28 subsystem_name = "application" 29 part_name = "prebuilt_hap" 30 module_install_dir = "app/LocationDialog" 31 if (defined(sign_hap_py_path)) { 32 certificate_profile = "${certificate_profile_path}" 33 key_alias = "LocationDialog Release" 34 private_key_path = "LocationDialog Release" 35 compatible_version = "10" 36 } 37} 38 39ohos_js_assets("location_dialog_js_assets") { 40 hap_profile = "entry/src/main/module.json" 41 ets2abc = true 42 source_dir = "entry/src/main/ets" 43} 44 45ohos_app_scope("location_dialog_app_profile") { 46 app_profile = "AppScope/app.json" 47 sources = [ "AppScope/resources" ] 48} 49 50ohos_resources("location_dialog_resources") { 51 sources = [ "entry/src/main/resources" ] 52 deps = [ ":location_dialog_app_profile" ] 53 hap_profile = "entry/src/main/module.json" 54} 55 56group("dialog_hap") { 57 deps = [ ":location_dialog_hap" ] 58} 59