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("cipher_napi") { 44 if (os_level == "standard") { 45 if (support_jsapi) { 46 deps = 47 [ "//base/security/huks/frameworks/crypto_lite/js/napi:cipher_napi" ] 48 } 49 } 50} 51 52group("fwk_group") { 53 if (os_level == "standard") { 54 deps = [ 55 "//base/security/huks:cipher_napi", 56 "//base/security/huks:huks_capi", 57 "//base/security/huks:huks_napi", 58 "//base/security/huks/frameworks/huks_standard/main:huks_standard_frameworks", 59 ] 60 } else if (os_level == "small") { 61 deps = [ 62 "//base/security/huks/frameworks/crypto_lite/cipher:cipher_shared", 63 "//base/security/huks/frameworks/crypto_lite/js/builtin:ace_kit_cipher", 64 "//base/security/huks/frameworks/huks_lite:huks_sdk", 65 ] 66 } else { 67 deps = [ "//base/security/huks/frameworks/huks_lite:huks_sdk" ] 68 } 69} 70 71group("service_group") { 72 if (os_level == "standard") { 73 deps = [ 74 "//base/security/huks/services/huks_standard:huks_service", 75 "//base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_profile:huks_sa_profile", 76 ] 77 if (huks_use_rkc_in_standard) { 78 deps += [ "//base/security/huks/services/huks_standard/huks_service/main:hks_compatibility_bin" ] 79 } 80 if (huks_security_level == "software") { 81 deps += [ "//base/security/huks/services/huks_standard/huks_engine/main/core:huks_engine_core_standard" ] 82 } 83 } else if (os_level == "small") { 84 deps = [ "//base/security/huks/frameworks/huks_lite:huks_server" ] 85 } 86} 87 88group("huks_components") { 89 deps = [ 90 "//base/security/huks:fwk_group", 91 "//base/security/huks:service_group", 92 ] 93} 94