• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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.
13import("//base/hiviewdfx/hiview/hiview.gni")
14import("//build/ohos.gni")
15
16config("hiview_param_update_config") {
17  visibility = [ "*:*" ]
18  include_dirs = [
19    "include",
20    "$hiview_core/include",
21    "$hiview_root/utility/common_utils/include",
22  ]
23}
24
25ohos_prebuilt_etc("hiviewparam_update") {
26  source = "hiviewparam_update"
27  part_name = "hiview"
28  subsystem_name = "hiviewdfx"
29  relative_install_dir = "hiview"
30}
31
32ohos_source_set("hiview_param_update") {
33  branch_protector_ret = "pac_ret"
34  sanitize = {
35    cfi = true
36    cfi_cross_dso = true
37    cfi_vcall_icall_only = true
38    debug = false
39  }
40  part_name = "hiview"
41  public_configs = [ ":hiview_param_update_config" ]
42  subsystem_name = "hiviewdfx"
43
44  sources = [
45    "src/log_sign_tools.cpp",
46    "src/param_event_manager.cpp",
47    "src/param_manager.cpp",
48    "src/param_reader.cpp",
49  ]
50
51  deps = [ "$hiview_base:hiviewbase" ]
52
53  external_deps = [
54    "ability_base:base",
55    "ability_base:want",
56    "common_event_service:cesfwk_innerkits",
57    "c_utils:utils",
58    "ffrt:libffrt",
59    "hilog:libhilog",
60    "ipc:ipc_single",
61    "openssl:libcrypto_shared",
62    "safwk:system_ability_fwk",
63    "samgr:samgr_proxy",
64  ]
65}
66
67ohos_source_set("hiview_param_update_for_tdd") {
68  part_name = "hiview"
69  public_configs = [ ":hiview_param_update_config" ]
70  subsystem_name = "hiviewdfx"
71
72  sources = [
73    "src/log_sign_tools.cpp",
74    "src/param_event_manager.cpp",
75    "src/param_manager.cpp",
76    "src/param_reader.cpp",
77  ]
78
79  deps = [ "$hiview_base:hiviewbase" ]
80
81  external_deps = [
82    "ability_base:base",
83    "ability_base:want",
84    "common_event_service:cesfwk_innerkits",
85    "c_utils:utils",
86    "ffrt:libffrt",
87    "hilog:libhilog",
88    "ipc:ipc_single",
89    "openssl:libcrypto_shared",
90    "safwk:system_ability_fwk",
91    "samgr:samgr_proxy",
92  ]
93}
94