• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "c_utils:utils",
51    "ffrt:libffrt",
52    "hilog:libhilog",
53    "ipc:ipc_single",
54    "relational_store:native_rdb",
55    "safwk:system_ability_fwk",
56    "samgr:samgr_proxy",
57  ]
58}
59
60group("unittest") {
61  testonly = true
62  deps = []
63}
64
65group("moduletest") {
66  testonly = true
67  deps = []
68}
69