• 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("//base/security/certificate_manager/cert_manager.gni")
15import("//build/ohos.gni")
16
17config("cert_manager_config") {
18  include_dirs = [ "include" ]
19}
20
21ohos_static_library("libcert_manager_common_standard_static") {
22  subsystem_name = "security"
23  part_name = "certificate_manager"
24  branch_protector_ret = "pac_ret"
25  sanitize = {
26    cfi = true
27    cfi_cross_dso = true
28    boundary_sanitize = true
29    debug = false
30    integer_overflow = true
31    ubsan = true
32  }
33
34  public_configs =
35      [ ":cert_manager_config" ]  # Share include files for other gn when deps.
36
37  include_dirs = [ "${cert_manager_root_dir}/interfaces/innerkits/cert_manager_standard/main/include" ]
38  sources = [
39    "src/cm_advsecmode_check.c",
40    "src/cm_param.c",
41    "src/cm_pfx.c",
42    "src/cm_util.c",
43    "src/cm_x509.c",
44  ]
45
46  external_deps = [
47    "c_utils:utils",
48    "init:libbegetutil",
49    "openssl:libcrypto_shared",
50  ]
51  cflags = [
52    "-Wall",
53    "-Werror",
54  ]
55  complete_static_lib = true
56}
57