1526fd984Sopenharmony_ci# 2526fd984Sopenharmony_ci# Copyright (c) 2020-2022 Huawei Device Co., Ltd. 3526fd984Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 4526fd984Sopenharmony_ci# you may not use this file except in compliance with the License. 5526fd984Sopenharmony_ci# You may obtain a copy of the License at 6526fd984Sopenharmony_ci# 7526fd984Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 8526fd984Sopenharmony_ci# 9526fd984Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 10526fd984Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 11526fd984Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12526fd984Sopenharmony_ci# See the License for the specific language governing permissions and 13526fd984Sopenharmony_ci# limitations under the License. 14526fd984Sopenharmony_ci# 15526fd984Sopenharmony_ci 16526fd984Sopenharmony_ciimport("//base/security/huks/build/config.gni") 17526fd984Sopenharmony_ciimport("//base/security/huks/huks.gni") 18526fd984Sopenharmony_ci 19526fd984Sopenharmony_cigroup("huks_sdk") { 20526fd984Sopenharmony_ci if (os_level == "mini" || os_level == "small") { 21526fd984Sopenharmony_ci deps = 22526fd984Sopenharmony_ci [ "//base/security/huks/interfaces/inner_api/huks_lite:huks_3.0_sdk" ] 23526fd984Sopenharmony_ci if (ohos_build_type == "debug" || hks_enable_test) { 24526fd984Sopenharmony_ci deps += [ "//base/security/huks/test:unittest" ] 25526fd984Sopenharmony_ci } 26526fd984Sopenharmony_ci } 27526fd984Sopenharmony_ci if (os_level == "mini" && enable_huks_lite_hap) { 28526fd984Sopenharmony_ci deps += [ "//base/security/huks/interfaces/kits/liteapi:ace_kit_huks" ] 29526fd984Sopenharmony_ci } 30526fd984Sopenharmony_ci} 31526fd984Sopenharmony_ci 32526fd984Sopenharmony_cigroup("huks_server") { 33526fd984Sopenharmony_ci if (os_level == "small") { 34526fd984Sopenharmony_ci deps = [ 35526fd984Sopenharmony_ci "//base/security/huks/interfaces/inner_api/huks_lite:huks_server", 36526fd984Sopenharmony_ci 37526fd984Sopenharmony_ci # script for transfer fils in old path to new path, in case of upgradation 38526fd984Sopenharmony_ci "//base/security/huks/interfaces/inner_api/huks_lite:hks_compatibility_bin", 39526fd984Sopenharmony_ci "//base/security/huks/services/huks_standard/huks_engine/main/core:huks_engine_core_standard", 40526fd984Sopenharmony_ci ] 41526fd984Sopenharmony_ci } 42526fd984Sopenharmony_ci} 43