1# Copyright (c) 2023 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
14declare_args() {
15  certificate_framework_enabled = true
16}
17
18group("certificate_framework_component") {
19  if (os_level == "standard") {
20    deps = [ "frameworks:certificate_framework_lib" ]
21  }
22}
23
24group("certificate_framework_test") {
25  testonly = true
26  if (os_level == "standard") {
27    deps = [ "test/unittest:cf_test" ]
28  }
29}
30
31group("certificate_framework_fuzztest") {
32  testonly = true
33  deps = []
34  if (os_level == "standard") {
35    deps += [
36      "test/fuzztest/cfcreate_fuzzer:fuzztest",
37      "test/fuzztest/cfgetandcheck_fuzzer:fuzztest",
38      "test/fuzztest/cfparam_fuzzer:fuzztest",
39      "test/fuzztest/v1.0/x509certchain_fuzzer:fuzztest",
40      "test/fuzztest/v1.0/x509certificate_fuzzer:fuzztest",
41      "test/fuzztest/v1.0/x509crl_fuzzer:fuzztest",
42      "test/fuzztest/v1.0/x509distinguishedname_fuzzer:fuzztest",
43    ]
44  }
45}
46