• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/ohos.gni")
16
17config("hiview_service_stub_public_config") {
18  visibility = [ "*:*" ]
19
20  include_dirs = [
21    "include",
22    "$hiview_adapter/service/common/include",
23    "$hiview_base/utility/include",
24    "$hiview_service",
25  ]
26}
27
28ohos_source_set("hiview_service_stub") {
29  branch_protector_ret = "pac_ret"
30  sanitize = {
31    cfi = true
32    cfi_cross_dso = true
33    cfi_vcall_icall_only = true
34    debug = false
35  }
36
37  public_configs = [
38    ":hiview_service_stub_public_config",
39    "../client:hiview_service_stub_inner_public_config",
40  ]
41
42  include_dirs = [
43    "$hiview_base/include",
44    "$hiview_interfaces/inner_api/unified_collection",
45  ]
46
47  sources = [
48    "../common/src/app_caller_parcelable.cpp",
49    "../common/src/hiview_file_info.cpp",
50    "../common/src/memory_caller_parcelable.cpp",
51    "src/hiview_log_config_manager.cpp",
52    "src/hiview_service_ability.cpp",
53  ]
54
55  deps = [
56    "$hiview_base:hiviewbase",
57    "../client:hiview_service_stub_inner",
58  ]
59
60  external_deps = [
61    "access_token:libaccesstoken_sdk",
62    "bundle_framework:appexecfwk_core",
63    "c_utils:utils",
64    "hicollie:libhicollie",
65    "hilog:libhilog",
66    "ipc:ipc_single",
67    "jsoncpp:jsoncpp",
68    "safwk:system_ability_fwk",
69    "samgr:samgr_proxy",
70  ]
71
72  part_name = "hiview"
73  subsystem_name = "hiviewdfx"
74}
75