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("//build/ohos.gni") 15 16config("hilogd_config") { 17 visibility = [ ":*" ] 18 19 include_dirs = [ "include" ] 20} 21 22ohos_executable("hilogd") { 23 sources = [ 24 "cmd_executor.cpp", 25 "flow_control.cpp", 26 "kmsg_parser.cpp", 27 "log_buffer.cpp", 28 "log_collector.cpp", 29 "log_compress.cpp", 30 "log_domains.cpp", 31 "log_kmsg.cpp", 32 "log_persister.cpp", 33 "log_persister_rotator.cpp", 34 "log_stats.cpp", 35 "main.cpp", 36 "service_controller.cpp", 37 ] 38 configs = [ 39 ":hilogd_config", 40 "//base/hiviewdfx/hilog/frameworks/libhilog:libhilog_config", 41 ] 42 defines = [ "__RECV_MSG_WITH_UCRED_" ] 43 44 deps = [ 45 "../../interfaces/native/innerkits:libhilog", 46 "etc:hilogd_etc", 47 ] 48 49 external_deps = [ 50 "bounds_checking_function:libsec_shared", 51 "ffrt:libffrt", 52 "init:libbegetutil", 53 "zlib:shared_libz", 54 ] 55 install_images = [ 56 "system", 57 "updater", 58 ] 59 install_enable = true 60 part_name = "hilog" 61 subsystem_name = "hiviewdfx" 62} 63