1# Copyright (c) 2023 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") 15 16declare_args() { 17 auth_widget_enabled = true 18} 19 20ohos_app_scope("authwidget_app_profile") { 21 app_profile = "./AppScope/app.json" 22 sources = [ "./AppScope/resources" ] 23} 24 25ohos_js_assets("authwidget_js_assets") { 26 ets2abc = true 27 source_dir = "entry/src/main/ets" 28} 29 30ohos_resources("authwidget_resources") { 31 sources = [ "entry/src/main/resources" ] 32 deps = [ ":authwidget_app_profile" ] 33 hap_profile = "entry/src/main/module.json" 34} 35 36ohos_hap("auth_widget") { 37 hap_profile = "entry/src/main/module.json" 38 deps = [ 39 ":authwidget_js_assets", 40 ":authwidget_resources", 41 ] 42 certificate_profile = "signature/auth_widget.p7b" 43 hap_name = "AuthWidget" 44 subsystem_name = "applications" 45 part_name = "prebuilt_hap" 46 module_install_dir = "app/com.ohos.useriam.authwidget" 47} 48