179a732c7Sopenharmony_ci# Copyright (c) 2021-2023 Huawei Device Co., Ltd. 279a732c7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 379a732c7Sopenharmony_ci# you may not use this file except in compliance with the License. 479a732c7Sopenharmony_ci# You may obtain a copy of the License at 579a732c7Sopenharmony_ci# 679a732c7Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 779a732c7Sopenharmony_ci# 879a732c7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 979a732c7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1079a732c7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1179a732c7Sopenharmony_ci# See the License for the specific language governing permissions and 1279a732c7Sopenharmony_ci# limitations under the License. 1379a732c7Sopenharmony_ciimport("//build/ohos.gni") 1479a732c7Sopenharmony_ciimport("./DeviceManager_UI.gni") 1579a732c7Sopenharmony_ci 1679a732c7Sopenharmony_ciohos_hap("DeviceManager_UI") { 1779a732c7Sopenharmony_ci hap_profile = "src/main/module.json" 1879a732c7Sopenharmony_ci deps = [ 1979a732c7Sopenharmony_ci ":devicemanager_ui_js_assets", 2079a732c7Sopenharmony_ci ":devicemanager_ui_resources", 2179a732c7Sopenharmony_ci ] 2279a732c7Sopenharmony_ci publicity_file = "../publicity.xml" 2379a732c7Sopenharmony_ci certificate_profile = "../signature/DeviceManager_UI.p7b" 2479a732c7Sopenharmony_ci hap_name = "DeviceManager_UI" 2579a732c7Sopenharmony_ci part_name = "prebuilt_hap" 2679a732c7Sopenharmony_ci subsystem_name = "applications" 2779a732c7Sopenharmony_ci js_build_mode = "release" 2879a732c7Sopenharmony_ci module_install_dir = "app/com.ohos.devicemanagerui" 2979a732c7Sopenharmony_ci if (defined(sign_hap_py_path)) { 3079a732c7Sopenharmony_ci certificate_profile = "${certificate_profile_path}" 3179a732c7Sopenharmony_ci key_alias = "devicemanagerui" 3279a732c7Sopenharmony_ci private_key_path = "devicemanagerui" 3379a732c7Sopenharmony_ci compatible_version = "9" 3479a732c7Sopenharmony_ci } 3579a732c7Sopenharmony_ci} 3679a732c7Sopenharmony_ci 3779a732c7Sopenharmony_ciohos_app_scope("devicemanager_ui_app_profile") { 3879a732c7Sopenharmony_ci app_profile = "../AppScope/app.json" 3979a732c7Sopenharmony_ci sources = [ "../AppScope/resources" ] 4079a732c7Sopenharmony_ci} 4179a732c7Sopenharmony_ci 4279a732c7Sopenharmony_ciohos_js_assets("devicemanager_ui_js_assets") { 4379a732c7Sopenharmony_ci ets2abc = true 4479a732c7Sopenharmony_ci source_dir = "src/main/ets" 4579a732c7Sopenharmony_ci} 4679a732c7Sopenharmony_ci 4779a732c7Sopenharmony_ciohos_resources("devicemanager_ui_resources") { 4879a732c7Sopenharmony_ci sources = [ "src/main/resources" ] 4979a732c7Sopenharmony_ci deps = [ ":devicemanager_ui_app_profile" ] 5079a732c7Sopenharmony_ci hap_profile = "src/main/module.json" 5179a732c7Sopenharmony_ci} 52