• 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
20ohos_static_library("libcert_manager_common_standard_static") {
21  subsystem_name = "security"
22  part_name = "certificate_manager"
23  defines = [
24    "L2_STANDARD",
25    "_CM_LOG_ENABLE_",
26  ]
27  public_configs =
28      [ ":cert_manager_config" ]  # Share include files for other gn when deps.
29
30  include_dirs = [
31    "//commonlibrary/c_utils/base/include",
32    "//third_party/openssl/include",
33  ]
34
35  sources = [
36    "src/cm_param.c",
37    "src/cm_pfx.c",
38    "src/cm_x509.c",
39  ]
40
41  deps = [ "//third_party/openssl:libcrypto_shared" ]
42  external_deps = [
43    "c_utils:utils",
44    "huks:libhukssdk",
45  ]
46  cflags = [
47    "-DHILOG_ENABLE",
48    "-Wall",
49    "-Werror",
50  ]
51  complete_static_lib = true
52}
53