1# Copyright (c) 2022 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("//build/ohos/sa_profile/sa_profile.gni") 16import("../user_auth_framework.gni") 17 18ohos_sa_profile("userauth_sa_profile") { 19 sources = [] 20 if (user_auth_framework_enable_dynamic_load) { 21 sources += [ 22 "dynamic_load/901.json", 23 "dynamic_load/921.json", 24 "dynamic_load/931.json", 25 ] 26 } else { 27 sources += [ 28 "default/901.json", 29 "default/921.json", 30 "default/931.json", 31 ] 32 } 33 34 part_name = "user_auth_framework" 35} 36 37ohos_prebuilt_etc("useriam.init") { 38 if (user_auth_framework_enable_dynamic_load) { 39 source = "dynamic_load/useriam.cfg" 40 } else { 41 source = "default/useriam.cfg" 42 } 43 relative_install_dir = "init" 44 45 subsystem_name = "useriam" 46 part_name = "user_auth_framework" 47} 48