• 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
17ohos_prebuilt_etc("cert_manager_service.rc") {
18  source = "cert_manager_service.cfg"
19  relative_install_dir = "init"
20  subsystem_name = "security"
21  part_name = "certificate_manager"
22}
23
24ohos_shared_library("cert_manager_service") {
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  part_name = "certificate_manager"
36  defines = []
37
38  if (!certificate_manager_feature_ca_enabled) {
39    defines += [ "CERTIFICATE_MANAGER_FEATURE_CA_DISABLED" ]
40  }
41  if (!certificate_manager_feature_credential_enabled) {
42    defines += [ "CERTIFICATE_MANAGER_FEATURE_CREDENTIAL_DISABLED" ]
43  }
44
45  deps = [
46    ":cert_manager_service.rc",
47    "cert_manager_engine/main/rdb:libcert_manager_rdb_static",
48    "cert_manager_service/main/os_dependency:libcert_manager_service_os_dependency_standard_static",
49  ]
50  external_deps = [
51    "hilog:libhilog",
52    "ipc:ipc_core",
53    "safwk:system_ability_fwk",
54    "samgr:samgr_proxy",
55  ]
56}
57