1# Copyright (C) 2021-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. 13import("//base/security/huks/build/config.gni") 14import("//build/ohos.gni") 15 16group("huks_sdk_test") { 17 testonly = true 18 if (os_level == "standard") { 19 if (huks_test_suite_running_environment == "system") { 20 deps = [ 21 #"//base/security/huks/test:reliability", 22 "//base/security/huks/test:unittest", 23 ] 24 } 25 } else { 26 } 27} 28 29group("huks_capi") { 30 if (os_level == "standard") { 31 deps = [ "//base/security/huks/interfaces/kits/c:huks_ndk" ] 32 } 33} 34 35group("huks_napi") { 36 if (os_level == "standard") { 37 if (support_jsapi) { 38 deps = [ "//base/security/huks/interfaces/kits/napi:huks" ] 39 } 40 } 41} 42 43group("huks_cjapi") { 44 if (os_level == "standard") { 45 deps = [ "//base/security/huks/interfaces/kits/cj:cj_huks_ffi" ] 46 } 47} 48 49group("cipher_napi") { 50 if (os_level == "standard") { 51 if (support_jsapi) { 52 deps = 53 [ "//base/security/huks/frameworks/crypto_lite/js/napi:cipher_napi" ] 54 } 55 } 56} 57 58group("fwk_group") { 59 if (os_level == "standard") { 60 deps = [ 61 ":huks_cjapi", 62 "//base/security/huks:cipher_napi", 63 "//base/security/huks:huks_capi", 64 "//base/security/huks:huks_napi", 65 "//base/security/huks/frameworks/huks_standard/main:huks_standard_frameworks", 66 ] 67 } else if (os_level == "small") { 68 deps = [ 69 "//base/security/huks/frameworks/crypto_lite/cipher:cipher_shared", 70 "//base/security/huks/frameworks/crypto_lite/js/builtin:ace_kit_cipher", 71 "//base/security/huks/frameworks/huks_lite:huks_sdk", 72 ] 73 } else { 74 deps = [ "//base/security/huks/frameworks/huks_lite:huks_sdk" ] 75 } 76} 77 78group("service_group") { 79 if (os_level == "standard") { 80 deps = [ 81 "//base/security/huks/services/huks_standard:huks_service", 82 "//base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_profile:huks_sa_profile", 83 ] 84 if (huks_use_rkc_in_standard) { 85 deps += [ "//base/security/huks/services/huks_standard/huks_service/main:hks_compatibility_bin" ] 86 } 87 if (huks_security_level == "software") { 88 deps += [ "//base/security/huks/services/huks_standard/huks_engine/main/core:huks_engine_core_standard" ] 89 } 90 } else if (os_level == "small") { 91 deps = [ "//base/security/huks/frameworks/huks_lite:huks_server" ] 92 } 93} 94 95group("huks_components") { 96 deps = [ 97 "//base/security/huks:fwk_group", 98 "//base/security/huks:service_group", 99 ] 100} 101