• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("../../../access_token.gni")
16
17config("proxy_death_handler_configs") {
18  visibility = [ ":*" ]
19  include_dirs = [ "include" ]
20}
21
22ohos_source_set("proxy_death_stub") {
23  subsystem_name = "security"
24  part_name = "access_token"
25  sanitize = {
26    cfi = true
27    cfi_cross_dso = true
28    debug = false
29  }
30  branch_protector_ret = "pac_ret"
31
32  include_dirs = [ "include" ]
33
34  sources = [ "src/proxy_death_callback_stub.cpp" ]
35
36  cflags_cc = [ "-DHILOG_ENABLE" ]
37  configs = [
38    "${access_token_path}/config:access_token_compile_flags",
39    "${access_token_path}/config:coverage_flags",
40  ]
41  public_configs = [ ":proxy_death_handler_configs" ]
42
43  external_deps = [
44    "c_utils:utils",
45    "hilog:libhilog",
46    "ipc:ipc_single",
47  ]
48}
49
50ohos_source_set("proxy_death_handler") {
51  subsystem_name = "security"
52  part_name = "access_token"
53  sanitize = {
54    cfi = true
55    cfi_cross_dso = true
56    debug = false
57  }
58  branch_protector_ret = "pac_ret"
59
60  include_dirs = [ "include" ]
61
62  sources = [
63    "src/proxy_death_handler.cpp",
64    "src/proxy_death_recipient.cpp",
65  ]
66
67  cflags_cc = [ "-DHILOG_ENABLE" ]
68  configs = [
69    "${access_token_path}/config:access_token_compile_flags",
70    "${access_token_path}/config:coverage_flags",
71  ]
72  public_configs = [ ":proxy_death_handler_configs" ]
73
74  deps = [ "${access_token_path}/frameworks/common:accesstoken_common_cxx" ]
75
76  external_deps = [
77    "c_utils:utils",
78    "hilog:libhilog",
79    "ipc:ipc_single",
80  ]
81}
82