• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
13
14group("huks_sdk_test") {
15  testonly = true
16  if (os_level == "standard") {
17    deps = [
18      #"//base/security/huks/test:reliability",
19      "//base/security/huks/test:unittest",
20    ]
21  } else {
22  }
23}
24
25group("huks_capi") {
26  if (os_level == "standard") {
27    deps = [ "//base/security/huks/interfaces/kits/c:huks_ndk" ]
28  }
29}
30
31group("huks_napi") {
32  if (os_level == "standard") {
33    if (support_jsapi) {
34      deps = [ "//base/security/huks/interfaces/kits/napi:huks" ]
35    }
36  }
37}
38
39group("cipher_napi") {
40  if (os_level == "standard") {
41    if (support_jsapi) {
42      deps =
43          [ "//base/security/huks/frameworks/crypto_lite/js/napi:cipher_napi" ]
44    }
45  }
46}
47
48group("fwk_group") {
49  if (os_level == "standard") {
50    deps = [
51      "//base/security/huks:cipher_napi",
52      "//base/security/huks:huks_capi",
53      "//base/security/huks:huks_napi",
54      "//base/security/huks/frameworks/huks_standard/main:huks_standard_frameworks",
55    ]
56  } else if (os_level == "small") {
57    deps = [
58      "//base/security/huks/frameworks/crypto_lite/cipher:cipher_shared",
59      "//base/security/huks/frameworks/crypto_lite/js/builtin:ace_kit_cipher",
60      "//base/security/huks/frameworks/huks_lite:huks_sdk",
61    ]
62  } else {
63    deps = [ "//base/security/huks/frameworks/huks_lite:huks_sdk" ]
64  }
65}
66
67group("service_group") {
68  if (os_level == "standard") {
69    deps = [
70      "//base/security/huks/services/huks_standard:huks_service",
71      "//base/security/huks/services/huks_standard/huks_engine/main/core:huks_engine_core_standard",
72      "//base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_profile:huks_sa_profile",
73    ]
74  }
75}
76
77group("huks_components") {
78  deps = [
79    "//base/security/huks:fwk_group",
80    "//base/security/huks:service_group",
81  ]
82}
83