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. 13import("//base/hiviewdfx/hiview/hiview.gni") 14import("//build/ohos.gni") 15 16config("eventlogger_config_config") { 17 visibility = [ "*:*" ] 18 include_dirs = [ "." ] 19} 20 21ohos_prebuilt_etc("event_logger_config") { 22 source = "event_logger_config" 23 part_name = "hiview" 24 subsystem_name = "hiviewdfx" 25 relative_install_dir = "hiview" 26} 27 28ohos_prebuilt_etc("EventloggerPipeline") { 29 source = "EventloggerPipeline" 30 relative_install_dir = "hiview/dispatch_rule" 31 part_name = "hiview" 32 subsystem_name = "hiviewdfx" 33} 34 35ohos_prebuilt_etc("eventloggerso_plugin_config") { 36 source = "eventloggerso_plugin_config" 37 part_name = "hiview" 38 subsystem_name = "hiviewdfx" 39 relative_install_dir = "hiview" 40} 41 42ohos_source_set("eventlogger_config") { 43 part_name = "hiview" 44 public_configs = [ ":eventlogger_config_config" ] 45 46 sources = [ "event_logger_config.cpp" ] 47 48 deps = [ 49 ":EventloggerPipeline", 50 ":event_logger_config", 51 ":eventloggerso_plugin_config", 52 "$hiview_base:hiviewbase", 53 ] 54 55 external_deps = [ "hilog:libhilog" ] 56} 57