• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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("code_signature") {
17  include_dirs = [ "include" ]
18}
19
20ohos_source_set("code_sign_test_common_source_set") {
21  branch_protector_ret = "pac_ret"
22
23  sanitize = {
24    cfi = true
25    cfi_cross_dso = true
26    debug = false
27  }
28
29  sources = [
30    "src/code_sign_test_common.cpp",
31    "src/fuzz_common.cpp",
32  ]
33
34  public_configs = [ ":code_signature" ]
35
36  cflags = [ "-pipe" ]
37  cflags_cc = [
38    "-Wdate-time",
39    "-Wformat=2",
40    "-Wfloat-equal",
41    "-Wshadow",
42  ]
43
44  if (target_cpu == "arm64") {
45    defines = [ "_ARM64_" ]
46  }
47
48  deps = []
49
50  external_deps = [
51    "access_token:libaccesstoken_sdk",
52    "access_token:libtokenid_sdk",
53    "access_token:libtokensetproc_shared",
54    "c_utils:utils",
55    "hilog:libhilog",
56    "ipc:ipc_core",
57  ]
58  subsystem_name = "security"
59  part_name = "code_signature"
60}
61