1# Copyright (c) 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.
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_read_handler.cpp",
53    "task/export/event_write_handler.cpp",
54    "task/export/export_json_file_writer.cpp",
55    "task/export_base_task.cpp",
56  ]
57
58  deps = [ "$hiview_base:hiviewbase" ]
59
60  external_deps = [
61    "ability_base:zuri",
62    "ability_runtime:ability_manager",
63    "ability_runtime:dataobs_manager",
64    "cJSON:cjson",
65    "c_utils:utils",
66    "data_share:datashare_common",
67    "data_share:datashare_consumer",
68    "ffrt:libffrt",
69    "hilog:libhilog",
70    "hisysevent:libhisysevent",
71    "ipc:ipc_core",
72    "relational_store:native_rdb",
73    "samgr:samgr_proxy",
74    "zlib:shared_libz",
75  ]
76
77  part_name = "hiview"
78
79  subsystem_name = "hiviewdfx"
80}
81