2022-03-11 04:16:58 +00:00
|
|
|
# Copyright (C) 2021-2022 Huawei Device Co., Ltd.
|
2021-06-01 16:43:18 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2023-02-28 03:46:09 +00:00
|
|
|
import("//build/ohos.gni")
|
|
|
|
import("//base/security/huks/build/config.gni")
|
2021-06-01 16:43:18 +00:00
|
|
|
|
|
|
|
group("huks_sdk_test") {
|
|
|
|
testonly = true
|
2022-01-20 02:28:39 +00:00
|
|
|
if (os_level == "standard") {
|
2023-02-28 03:46:09 +00:00
|
|
|
if (huks_security_level == "software") {
|
|
|
|
deps = [
|
|
|
|
#"//base/security/huks/test:reliability",
|
|
|
|
"//base/security/huks/test:unittest",
|
|
|
|
]
|
|
|
|
}
|
2022-01-20 02:28:39 +00:00
|
|
|
} else {
|
|
|
|
}
|
2021-06-01 16:43:18 +00:00
|
|
|
}
|
2021-12-27 08:13:49 +00:00
|
|
|
|
2022-09-21 06:42:36 +00:00
|
|
|
group("huks_capi") {
|
|
|
|
if (os_level == "standard") {
|
2022-09-23 11:52:34 +00:00
|
|
|
deps = [ "//base/security/huks/interfaces/kits/c:huks_ndk" ]
|
2022-09-21 06:42:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-27 08:13:49 +00:00
|
|
|
group("huks_napi") {
|
2022-01-20 02:28:39 +00:00
|
|
|
if (os_level == "standard") {
|
|
|
|
if (support_jsapi) {
|
|
|
|
deps = [ "//base/security/huks/interfaces/kits/napi:huks" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-19 06:38:15 +00:00
|
|
|
group("cipher_napi") {
|
|
|
|
if (os_level == "standard") {
|
|
|
|
if (support_jsapi) {
|
|
|
|
deps =
|
|
|
|
[ "//base/security/huks/frameworks/crypto_lite/js/napi:cipher_napi" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-19 09:43:55 +00:00
|
|
|
group("fwk_group") {
|
2022-01-20 02:28:39 +00:00
|
|
|
if (os_level == "standard") {
|
|
|
|
deps = [
|
2022-04-19 06:38:15 +00:00
|
|
|
"//base/security/huks:cipher_napi",
|
2022-09-23 11:52:34 +00:00
|
|
|
"//base/security/huks:huks_capi",
|
2022-01-20 02:28:39 +00:00
|
|
|
"//base/security/huks:huks_napi",
|
|
|
|
"//base/security/huks/frameworks/huks_standard/main:huks_standard_frameworks",
|
|
|
|
]
|
|
|
|
} else if (os_level == "small") {
|
|
|
|
deps = [
|
|
|
|
"//base/security/huks/frameworks/crypto_lite/cipher:cipher_shared",
|
|
|
|
"//base/security/huks/frameworks/crypto_lite/js/builtin:ace_kit_cipher",
|
|
|
|
"//base/security/huks/frameworks/huks_lite:huks_sdk",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
deps = [ "//base/security/huks/frameworks/huks_lite:huks_sdk" ]
|
2021-12-27 08:13:49 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-19 09:43:55 +00:00
|
|
|
|
|
|
|
group("service_group") {
|
|
|
|
if (os_level == "standard") {
|
|
|
|
deps = [
|
|
|
|
"//base/security/huks/services/huks_standard:huks_service",
|
|
|
|
"//base/security/huks/services/huks_standard/huks_engine/main/core:huks_engine_core_standard",
|
|
|
|
"//base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_profile:huks_sa_profile",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group("huks_components") {
|
|
|
|
deps = [
|
|
|
|
"//base/security/huks:fwk_group",
|
|
|
|
"//base/security/huks:service_group",
|
|
|
|
]
|
|
|
|
}
|