• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023-2024 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")
15import("../code_signature.gni")
16
17ohos_source_set("fsverity_sign_src_set") {
18  sanitize = {
19    cfi = true
20    cfi_cross_dso = true
21    debug = false
22  }
23  branch_protector_ret = "pac_ret"
24  sources = [
25    "src/fsverity_utils_helper.cpp",
26    "src/openssl_utils.cpp",
27    "src/pkcs7_data.cpp",
28    "src/pkcs7_generator.cpp",
29    "src/signer_info.cpp",
30  ]
31  include_dirs = [ "include" ]
32  public_configs = [ "${code_signature_root_dir}:common_public_config" ]
33
34  external_deps = [
35    "bounds_checking_function:libsec_shared",
36    "fsverity-utils:libfsverity_utils",
37    "hilog:libhilog",
38    "openssl:libcrypto_shared",
39  ]
40  part_name = "code_signature"
41  subsystem_name = "security"
42}
43