• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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
14import("//build/ohos.gni")
15
16config("cert_manager_config") {
17  include_dirs = [ "include" ]
18}
19
20if (os_level == "standard") {
21  ohos_shared_library("cert_manager_sdk") {
22    sanitize = {
23      cfi = true
24      debug = false
25      blocklist = "//base/security/certificate_manager/cfi_blocklist.txt"
26    }
27    subsystem_name = "security"
28    part_name = "certificate_manager"
29    public_configs = [ ":cert_manager_config" ]
30    defines = [
31      "L2_STANDARD",
32      "_HARDWARE_ROOT_KEY_",
33      "_CM_LOG_ENABLE_",
34    ]
35    include_dirs = [
36      "//base/security/certificate_manager/utils/cm_crypto_adapter",
37      "//commonlibrary/c_utils/base/include",
38    ]
39
40    sources = [ "src/cert_manager_api.c" ]
41
42    cflags = [
43      "-DHILOG_ENABLE",
44      "-Wall",
45      "-Werror",
46    ]
47    deps = [ "//base/security/certificate_manager/frameworks/cert_manager_standard/main:cert_manager_standard_frameworks" ]
48
49    external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
50  }
51}
52#if (os_level == "small" || os_level == "mini") {
53#  group("libcert_managersdk") {
54#  }
55#}
56