• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024-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("event_export_engine_config") {
18  visibility = [ "*:*" ]
19
20  include_dirs = [
21    "config/include",
22    "include",
23    "task/include",
24    "database/include",
25  ]
26}
27
28ohos_source_set("event_export_engine") {
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 = [ ":event_export_engine_config" ]
38
39  configs = [ ":event_export_engine_config" ]
40
41  sources = [
42    "config/export_config_manager.cpp",
43    "config/export_config_parser.cpp",
44    "config/export_event_list_parser.cpp",
45    "database/adapter/export_db_storage.cpp",
46    "database/export_db_manager.cpp",
47    "event_export_engine.cpp",
48    "task/expire/event_delete_handler.cpp",
49    "task/expire/event_expire_task.cpp",
50    "task/expire/event_scan_handler.cpp",
51    "task/export/event_export_task.cpp",
52    "task/export/event_export_util.cpp",
53    "task/export/event_read_handler.cpp",
54    "task/export/event_write_handler.cpp",
55    "task/export/event_write_strategy_factory.cpp",
56    "task/export/export_event_packager.cpp",
57    "task/export/export_file_writer.cpp",
58    "task/export/export_json_file_builder.cpp",
59    "task/export/write_zip_file_strategy.cpp",
60    "task/export_base_task.cpp",
61  ]
62
63  deps = [ "$hiview_base:hiviewbase" ]
64
65  external_deps = [
66    "cJSON:cjson",
67    "c_utils:utils",
68    "data_share:datashare_consumer",
69    "ffrt:libffrt",
70    "hilog:libhilog",
71    "hisysevent:libhisysevent",
72    "init:libbeget_proxy",
73    "ipc:ipc_single",
74    "jsoncpp:jsoncpp",
75    "relational_store:native_rdb",
76    "zlib:shared_libz",
77  ]
78
79  part_name = "hiview"
80
81  subsystem_name = "hiviewdfx"
82}
83