1# 2# Copyright (c) 2020-2022 Huawei Device Co., Ltd. 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15 16import("//base/security/huks/build/config.gni") 17import("//base/security/huks/huks.gni") 18 19group("huks_sdk") { 20 if (os_level == "mini" || os_level == "small") { 21 deps = 22 [ "//base/security/huks/interfaces/inner_api/huks_lite:huks_3.0_sdk" ] 23 if (ohos_build_type == "debug" || hks_enable_test) { 24 deps += [ "//base/security/huks/test:unittest" ] 25 } 26 } 27 if (os_level == "mini" && enable_huks_lite_hap) { 28 deps += [ "//base/security/huks/interfaces/kits/liteapi:ace_kit_huks" ] 29 } 30} 31 32group("huks_server") { 33 if (os_level == "small") { 34 deps = [ 35 "//base/security/huks/interfaces/inner_api/huks_lite:huks_server", 36 37 # script for transfer fils in old path to new path, in case of upgradation 38 "//base/security/huks/interfaces/inner_api/huks_lite:hks_compatibility_bin", 39 "//base/security/huks/services/huks_standard/huks_engine/main/core:huks_engine_core_standard", 40 ] 41 } 42} 43