• 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    "ffrt:libffrt",
58    "hilog:libhilog",
59    "openssl:libcrypto_shared",
60    "safwk:system_ability_fwk",
61    "samgr:samgr_proxy",
62  ]
63}
64
65ohos_source_set("hiview_param_update_for_tdd") {
66  part_name = "hiview"
67  public_configs = [ ":hiview_param_update_config" ]
68  subsystem_name = "hiviewdfx"
69
70  sources = [
71    "src/log_sign_tools.cpp",
72    "src/param_event_manager.cpp",
73    "src/param_manager.cpp",
74    "src/param_reader.cpp",
75  ]
76
77  deps = [ "$hiview_base:hiviewbase" ]
78
79  external_deps = [
80    "ability_base:base",
81    "ability_base:want",
82    "common_event_service:cesfwk_innerkits",
83    "ffrt:libffrt",
84    "hilog:libhilog",
85    "openssl:libcrypto_shared",
86    "safwk:system_ability_fwk",
87    "samgr:samgr_proxy",
88  ]
89}
90