# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
import("//build/ohos/sa_profile/sa_profile.gni")
import("../user_auth_framework.gni")
ohos_sa_profile("userauth_sa_profile") {
sources = []
if (user_auth_framework_enable_dynamic_load) {
sources += [
"dynamic_load/901.json",
"dynamic_load/921.json",
"dynamic_load/931.json",
]
} else {
sources += [
"default/901.json",
"default/921.json",
"default/931.json",
]
}
part_name = "user_auth_framework"
}
ohos_prebuilt_etc("useriam.init") {
if (user_auth_framework_enable_dynamic_load) {
source = "dynamic_load/useriam.cfg"
} else {
source = "default/useriam.cfg"
}
relative_install_dir = "init"
subsystem_name = "useriam"
part_name = "user_auth_framework"
}
group("useriam_init_group") {
if (user_auth_framework_has_ext) {
deps = []
} else {
deps = [ ":useriam.init" ]
}
}