15c735df2Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
25c735df2Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
35c735df2Sopenharmony_ci# you may not use this file except in compliance with the License.
45c735df2Sopenharmony_ci# You may obtain a copy of the License at
55c735df2Sopenharmony_ci#
65c735df2Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
75c735df2Sopenharmony_ci#
85c735df2Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
95c735df2Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
105c735df2Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115c735df2Sopenharmony_ci# See the License for the specific language governing permissions and
125c735df2Sopenharmony_ci# limitations under the License.
135c735df2Sopenharmony_ci
145c735df2Sopenharmony_ciimport("//build/ohos.gni")
155c735df2Sopenharmony_ciimport("./signature/locationdialog.gni")
165c735df2Sopenharmony_ci
175c735df2Sopenharmony_ciohos_hap("location_dialog_hap") {
185c735df2Sopenharmony_ci  hap_profile = "entry/src/main/module.json"
195c735df2Sopenharmony_ci
205c735df2Sopenharmony_ci  deps = [
215c735df2Sopenharmony_ci    ":location_dialog_js_assets",
225c735df2Sopenharmony_ci    ":location_dialog_resources",
235c735df2Sopenharmony_ci  ]
245c735df2Sopenharmony_ci
255c735df2Sopenharmony_ci  publicity_file = "publicity.xml"
265c735df2Sopenharmony_ci  certificate_profile = "signature/locationdialog.p7b"
275c735df2Sopenharmony_ci  hap_name = "LocationDialog"
285c735df2Sopenharmony_ci  subsystem_name = "application"
295c735df2Sopenharmony_ci  part_name = "prebuilt_hap"
305c735df2Sopenharmony_ci  module_install_dir = "app/LocationDialog"
315c735df2Sopenharmony_ci  if (defined(sign_hap_py_path)) {
325c735df2Sopenharmony_ci    certificate_profile = "${certificate_profile_path}"
335c735df2Sopenharmony_ci    key_alias = "LocationDialog Release"
345c735df2Sopenharmony_ci    private_key_path = "LocationDialog Release"
355c735df2Sopenharmony_ci    compatible_version = "10"
365c735df2Sopenharmony_ci  }
375c735df2Sopenharmony_ci}
385c735df2Sopenharmony_ci
395c735df2Sopenharmony_ciohos_js_assets("location_dialog_js_assets") {
405c735df2Sopenharmony_ci  hap_profile = "entry/src/main/module.json"
415c735df2Sopenharmony_ci  ets2abc = true
425c735df2Sopenharmony_ci  source_dir = "entry/src/main/ets"
435c735df2Sopenharmony_ci}
445c735df2Sopenharmony_ci
455c735df2Sopenharmony_ciohos_app_scope("location_dialog_app_profile") {
465c735df2Sopenharmony_ci  app_profile = "AppScope/app.json"
475c735df2Sopenharmony_ci  sources = [ "AppScope/resources" ]
485c735df2Sopenharmony_ci}
495c735df2Sopenharmony_ci
505c735df2Sopenharmony_ciohos_resources("location_dialog_resources") {
515c735df2Sopenharmony_ci  sources = [ "entry/src/main/resources" ]
525c735df2Sopenharmony_ci  deps = [ ":location_dialog_app_profile" ]
535c735df2Sopenharmony_ci  hap_profile = "entry/src/main/module.json"
545c735df2Sopenharmony_ci}
555c735df2Sopenharmony_ci
565c735df2Sopenharmony_cigroup("dialog_hap") {
575c735df2Sopenharmony_ci  deps = [ ":location_dialog_hap" ]
585c735df2Sopenharmony_ci}
59