• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14import("//build/ohos.gni")
15
16config("cert_framework_config") {
17  include_dirs = [
18    "../../interfaces/innerkits/certificate",
19    "../../interfaces/innerkits/common",
20    "../../interfaces/innerkits/include",
21  ]
22}
23
24ohos_shared_library("certificate_framework_core") {
25  branch_protector_ret = "pac_ret"
26  sanitize = {
27    cfi = true
28    cfi_cross_dso = true
29    boundary_sanitize = true
30    debug = false
31    integer_overflow = true
32    ubsan = true
33  }
34  subsystem_name = "security"
35  innerapi_tags = [ "platformsdk" ]
36  part_name = "certificate_framework"
37  public_configs = [ ":cert_framework_config" ]
38  configs = [ "../../config/build:coverage_flag" ]
39  include_dirs = [ "life/inc" ]
40  sources = [ "life/cf_api.c" ]
41
42  deps = [
43    "../ability:libcertificate_framework_ability",
44    "../adapter:libcertificate_framework_adapter",
45    "../common:libcertificate_framework_common_static",
46    "cert:libcertificate_framework_cert_object",
47    "extension:libcertificate_framework_extension_object",
48    "v1.0:libcertificate_framework_vesion1",
49  ]
50
51  external_deps = [
52    "c_utils:utils",
53    "crypto_framework:crypto_framework_lib",
54    "hilog:libhilog",
55  ]
56
57  ldflags = [ "-Wl,--whole-archive" ]
58
59  cflags = [
60    "-DHILOG_ENABLE",
61    "-Wall",
62    "-Werror",
63  ]
64}
65