1# Copyright (c) 2021-2023 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("sys_event_store_config") {
18  visibility = [ "*:*" ]
19  include_dirs = [
20    ".",
21    "include",
22  ]
23}
24
25ohos_source_set("sys_event_store") {
26  branch_protector_ret = "pac_ret"
27  sanitize = {
28    cfi = true
29    cfi_cross_dso = true
30    cfi_vcall_icall_only = true
31    debug = false
32  }
33  part_name = "hiview"
34  subsystem_name = "hiviewdfx"
35  public_configs = [ ":sys_event_store_config" ]
36
37  sources = [
38    "store/sys_event_db_mgr.cpp",
39    "sys_event_store.cpp",
40  ]
41
42  deps = [
43    "$hiview_base:hiviewbase",
44    "$hiview_core:hiview_core",
45    "event_export:event_export_engine",
46  ]
47
48  external_deps = [
49    "cJSON:cjson",
50    "ffrt:libffrt",
51    "hilog:libhilog",
52    "ipc:ipc_single",
53    "relational_store:native_rdb",
54    "safwk:system_ability_fwk",
55    "samgr:samgr_proxy",
56  ]
57}
58
59group("unittest") {
60  testonly = true
61  deps = []
62}
63
64group("moduletest") {
65  testonly = true
66  deps = []
67}
68