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_ciconfig("hisyseventmanager_config") {
171401458bSopenharmony_ci  visibility = [ "*:*" ]
181401458bSopenharmony_ci
191401458bSopenharmony_ci  include_dirs = [
201401458bSopenharmony_ci    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include",
211401458bSopenharmony_ci    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
221401458bSopenharmony_ci    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/include",
231401458bSopenharmony_ci    "include",
241401458bSopenharmony_ci  ]
251401458bSopenharmony_ci}
261401458bSopenharmony_ci
271401458bSopenharmony_ciohos_shared_library("libhisyseventmanager") {
281401458bSopenharmony_ci  branch_protector_ret = "pac_ret"
291401458bSopenharmony_ci
301401458bSopenharmony_ci  sources = [
311401458bSopenharmony_ci    "hisysevent_base_manager.cpp",
321401458bSopenharmony_ci    "hisysevent_listener_c.cpp",
331401458bSopenharmony_ci    "hisysevent_manager.cpp",
341401458bSopenharmony_ci    "hisysevent_manager_c.cpp",
351401458bSopenharmony_ci    "hisysevent_query_callback_c.cpp",
361401458bSopenharmony_ci    "hisysevent_record.cpp",
371401458bSopenharmony_ci    "hisysevent_record_c.cpp",
381401458bSopenharmony_ci    "hisysevent_record_convertor.cpp",
391401458bSopenharmony_ci  ]
401401458bSopenharmony_ci
411401458bSopenharmony_ci  output_name = "libhisyseventmanager"
421401458bSopenharmony_ci
431401458bSopenharmony_ci  install_enable = true
441401458bSopenharmony_ci
451401458bSopenharmony_ci  innerapi_tags = [ "platformsdk" ]
461401458bSopenharmony_ci
471401458bSopenharmony_ci  part_name = "hisysevent"
481401458bSopenharmony_ci
491401458bSopenharmony_ci  subsystem_name = "hiviewdfx"
501401458bSopenharmony_ci
511401458bSopenharmony_ci  public_configs = [
521401458bSopenharmony_ci    "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_impl_config",
531401458bSopenharmony_ci    ":hisyseventmanager_config",
541401458bSopenharmony_ci  ]
551401458bSopenharmony_ci
561401458bSopenharmony_ci  deps = [
571401458bSopenharmony_ci    "../../../../adapter/native/idl:sys_event_impl_client",
581401458bSopenharmony_ci    "../../../../adapter/native/idl:sys_event_service_gen_src_client",
591401458bSopenharmony_ci    "../../../../frameworks/native/util:hisysevent_util",
601401458bSopenharmony_ci    "../hisysevent:libhisysevent",
611401458bSopenharmony_ci  ]
621401458bSopenharmony_ci
631401458bSopenharmony_ci  version_script = "libhisyseventmanager.map"
641401458bSopenharmony_ci
651401458bSopenharmony_ci  external_deps = [
661401458bSopenharmony_ci    "bounds_checking_function:libsec_shared",
671401458bSopenharmony_ci    "c_utils:utils",
681401458bSopenharmony_ci    "hilog:libhilog",
691401458bSopenharmony_ci    "ipc:ipc_single",
701401458bSopenharmony_ci    "jsoncpp:jsoncpp",
711401458bSopenharmony_ci    "samgr:samgr_proxy",
721401458bSopenharmony_ci  ]
731401458bSopenharmony_ci}
741401458bSopenharmony_ci
751401458bSopenharmony_ciohos_static_library("hisyseventmanager_static_lib_for_tdd") {
761401458bSopenharmony_ci  sources = [
771401458bSopenharmony_ci    "hisysevent_base_manager.cpp",
781401458bSopenharmony_ci    "hisysevent_listener_c.cpp",
791401458bSopenharmony_ci    "hisysevent_manager.cpp",
801401458bSopenharmony_ci    "hisysevent_manager_c.cpp",
811401458bSopenharmony_ci    "hisysevent_query_callback_c.cpp",
821401458bSopenharmony_ci    "hisysevent_record.cpp",
831401458bSopenharmony_ci    "hisysevent_record_c.cpp",
841401458bSopenharmony_ci    "hisysevent_record_convertor.cpp",
851401458bSopenharmony_ci  ]
861401458bSopenharmony_ci
871401458bSopenharmony_ci  output_name = "hisyseventmanager_static_lib_for_tdd"
881401458bSopenharmony_ci
891401458bSopenharmony_ci  part_name = "hisysevent"
901401458bSopenharmony_ci
911401458bSopenharmony_ci  subsystem_name = "hiviewdfx"
921401458bSopenharmony_ci
931401458bSopenharmony_ci  public_configs = [
941401458bSopenharmony_ci    "//base/hiviewdfx/hisysevent/adapter/native/idl:sys_event_impl_config",
951401458bSopenharmony_ci    ":hisyseventmanager_config",
961401458bSopenharmony_ci  ]
971401458bSopenharmony_ci
981401458bSopenharmony_ci  deps = [
991401458bSopenharmony_ci    "../../../../adapter/native/idl:sys_event_impl_client",
1001401458bSopenharmony_ci    "../../../../adapter/native/idl:sys_event_service_gen_src_client",
1011401458bSopenharmony_ci    "../../../../frameworks/native/util:hisysevent_util",
1021401458bSopenharmony_ci    "../hisysevent:hisysevent_static_lib_for_tdd",
1031401458bSopenharmony_ci  ]
1041401458bSopenharmony_ci
1051401458bSopenharmony_ci  external_deps = [
1061401458bSopenharmony_ci    "c_utils:utils",
1071401458bSopenharmony_ci    "hilog:libhilog",
1081401458bSopenharmony_ci    "ipc:ipc_single",
1091401458bSopenharmony_ci    "jsoncpp:jsoncpp",
1101401458bSopenharmony_ci    "samgr:samgr_proxy",
1111401458bSopenharmony_ci  ]
1121401458bSopenharmony_ci}
113