• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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
14import("//base/security/certificate_manager/cert_manager.gni")
15import("//build/ohos.gni")
16
17config("cert_manager_config") {
18  include_dirs = [ "include" ]
19}
20
21if (os_level == "standard") {
22  ohos_shared_library("cert_manager_sdk") {
23    branch_protector_ret = "pac_ret"
24    sanitize = {
25      cfi = true
26      cfi_cross_dso = true
27      boundary_sanitize = true
28      debug = false
29      integer_overflow = true
30      ubsan = true
31    }
32    subsystem_name = "security"
33    innerapi_tags = [
34      "platformsdk",
35      "chipsetsdk",
36      "sasdk",
37    ]
38    part_name = "certificate_manager"
39    public_configs = [ ":cert_manager_config" ]
40
41    sources = [ "../source/cert_manager_api.c" ]
42
43    cflags = [
44      "-Wall",
45      "-Werror",
46    ]
47    deps = [ "${cert_manager_root_dir}/frameworks/cert_manager_standard/main:cert_manager_standard_frameworks" ]
48
49    external_deps = [
50      "bounds_checking_function:libsec_shared",
51      "hilog:libhilog",
52    ]
53  }
54}
55#if (os_level == "small" || os_level == "mini") {
56#  group("libcert_managersdk") {
57#  }
58#}
59