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 deps = [ 44 "//third_party/bounds_checking_function:libsec_shared", 45 "//third_party/zlib:shared_libz", 46 ] 47 deps += [ 48 "../../interfaces/native/innerkits:libhilog", 49 "etc:hilogd_etc", 50 ] 51 52 external_deps = [ 53 "ffrt:libffrt", 54 "init:libbegetutil", 55 ] 56 install_images = [ 57 "system", 58 "updater", 59 ] 60 install_enable = true 61 part_name = "hilog" 62 subsystem_name = "hiviewdfx" 63} 64