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