• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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_service_config") {
18  visibility = [ "*:*" ]
19  include_dirs = [
20    ".",
21    "include",
22    "//third_party/jsoncpp/include",
23  ]
24}
25
26ohos_source_set("sys_event_service") {
27  part_name = "hiview"
28  public_configs = [ ":sys_event_service_config" ]
29
30  defines = [ "CUSTOM_MAX_FILE_SIZE_MB=100" ]
31
32  sources = [
33    "event_json_parser.cpp",
34    "flat_json_parser.cpp",
35    "service/sys_event_stat.cpp",
36    "store/sys_event_db_backup.cpp",
37    "store/sys_event_db_cleaner.cpp",
38    "store/sys_event_db_mgr.cpp",
39    "sys_event_service.cpp",
40  ]
41
42  deps = [
43    "$hiview_adapter/plugins/eventservice/service:sys_event_service_adapter",
44    "$hiview_adapter/plugins/eventservice/service/idl:sys_event_service_ohos",
45    "$hiview_base:hiviewbase",
46    "//third_party/jsoncpp:jsoncpp",
47  ]
48
49  external_deps = [
50    "hilog_native:libhilog",
51    "init:libbeget_proxy",
52    "init:libbegetutil",
53    "ipc:ipc_core",
54    "safwk:system_ability_fwk",
55    "samgr:samgr_proxy",
56  ]
57}
58
59group("unittest") {
60  testonly = true
61  deps = [ "test:EventServiceActionTest" ]
62}
63
64group("moduletest") {
65  testonly = true
66  deps = []
67}
68
69group("fuzztest") {
70  testonly = true
71  deps = [ "test/fuzztest/common/eventsource_fuzzer:EventSourceFuzzTest" ]
72}
73