11401458bSopenharmony_ci# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
21401458bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
31401458bSopenharmony_ci# you may not use this file except in compliance with the License.
41401458bSopenharmony_ci# You may obtain a copy of the License at
51401458bSopenharmony_ci#
61401458bSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
71401458bSopenharmony_ci#
81401458bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
91401458bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
101401458bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111401458bSopenharmony_ci# See the License for the specific language governing permissions and
121401458bSopenharmony_ci# limitations under the License.
131401458bSopenharmony_ci
141401458bSopenharmony_ciimport("//build/ohos.gni")
151401458bSopenharmony_ci
161401458bSopenharmony_cigroup("hisyseventcat_package") {
171401458bSopenharmony_ci  # root of all the hiview dependencies
181401458bSopenharmony_ci  deps = [ ":hisysevent" ]
191401458bSopenharmony_ci}
201401458bSopenharmony_ci
211401458bSopenharmony_ciohos_executable("hisysevent") {
221401458bSopenharmony_ci  install_enable = true
231401458bSopenharmony_ci
241401458bSopenharmony_ci  include_dirs = [
251401458bSopenharmony_ci    ".",
261401458bSopenharmony_ci    "include",
271401458bSopenharmony_ci  ]
281401458bSopenharmony_ci
291401458bSopenharmony_ci  public_configs = [ "../../adapter/native/idl:sys_event_impl_config" ]
301401458bSopenharmony_ci
311401458bSopenharmony_ci  deps = [
321401458bSopenharmony_ci    "../../adapter/native/idl:sys_event_impl_client",
331401458bSopenharmony_ci    "../../adapter/native/idl:sys_event_service_gen_src_client",
341401458bSopenharmony_ci    "../../interfaces/native/innerkits/hisysevent:libhisysevent",
351401458bSopenharmony_ci    "../../interfaces/native/innerkits/hisysevent_manager:libhisyseventmanager",
361401458bSopenharmony_ci  ]
371401458bSopenharmony_ci
381401458bSopenharmony_ci  external_deps = [
391401458bSopenharmony_ci    "c_utils:utils",
401401458bSopenharmony_ci    "hilog:libhilog",
411401458bSopenharmony_ci    "ipc:ipc_single",
421401458bSopenharmony_ci    "jsoncpp:jsoncpp",
431401458bSopenharmony_ci    "safwk:system_ability_fwk",
441401458bSopenharmony_ci    "samgr:samgr_proxy",
451401458bSopenharmony_ci  ]
461401458bSopenharmony_ci
471401458bSopenharmony_ci  sources = [
481401458bSopenharmony_ci    "hisysevent_json_decorator.cpp",
491401458bSopenharmony_ci    "hisysevent_tool.cpp",
501401458bSopenharmony_ci    "hisysevent_tool_listener.cpp",
511401458bSopenharmony_ci    "hisysevent_tool_query.cpp",
521401458bSopenharmony_ci    "json_flatten_parser.cpp",
531401458bSopenharmony_ci    "main.cpp",
541401458bSopenharmony_ci  ]
551401458bSopenharmony_ci
561401458bSopenharmony_ci  part_name = "hisysevent"
571401458bSopenharmony_ci  subsystem_name = "hiviewdfx"
581401458bSopenharmony_ci}
591401458bSopenharmony_ci
601401458bSopenharmony_cigroup("unittest") {
611401458bSopenharmony_ci  testonly = true
621401458bSopenharmony_ci  deps = [ "test:unittest" ]
631401458bSopenharmony_ci}
64