12498b56bSopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 22498b56bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 32498b56bSopenharmony_ci# you may not use this file except in compliance with the License. 42498b56bSopenharmony_ci# You may obtain a copy of the License at 52498b56bSopenharmony_ci# 62498b56bSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 72498b56bSopenharmony_ci# 82498b56bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 92498b56bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 102498b56bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 112498b56bSopenharmony_ci# See the License for the specific language governing permissions and 122498b56bSopenharmony_ci# limitations under the License. 132498b56bSopenharmony_ci 142498b56bSopenharmony_ciimport("//build/ohos.gni") 152498b56bSopenharmony_ci 162498b56bSopenharmony_ciconfig("hilogd_config") { 172498b56bSopenharmony_ci visibility = [ ":*" ] 182498b56bSopenharmony_ci 192498b56bSopenharmony_ci include_dirs = [ "include" ] 202498b56bSopenharmony_ci} 212498b56bSopenharmony_ci 222498b56bSopenharmony_ciohos_executable("hilogd") { 232498b56bSopenharmony_ci sources = [ 242498b56bSopenharmony_ci "cmd_executor.cpp", 252498b56bSopenharmony_ci "flow_control.cpp", 262498b56bSopenharmony_ci "kmsg_parser.cpp", 272498b56bSopenharmony_ci "log_buffer.cpp", 282498b56bSopenharmony_ci "log_collector.cpp", 292498b56bSopenharmony_ci "log_compress.cpp", 302498b56bSopenharmony_ci "log_domains.cpp", 312498b56bSopenharmony_ci "log_kmsg.cpp", 322498b56bSopenharmony_ci "log_persister.cpp", 332498b56bSopenharmony_ci "log_persister_rotator.cpp", 342498b56bSopenharmony_ci "log_stats.cpp", 352498b56bSopenharmony_ci "main.cpp", 362498b56bSopenharmony_ci "service_controller.cpp", 372498b56bSopenharmony_ci ] 382498b56bSopenharmony_ci configs = [ 392498b56bSopenharmony_ci ":hilogd_config", 402498b56bSopenharmony_ci "//base/hiviewdfx/hilog/frameworks/libhilog:libhilog_config", 412498b56bSopenharmony_ci ] 422498b56bSopenharmony_ci defines = [ "__RECV_MSG_WITH_UCRED_" ] 432498b56bSopenharmony_ci 442498b56bSopenharmony_ci deps = [ 452498b56bSopenharmony_ci "../../interfaces/native/innerkits:libhilog", 462498b56bSopenharmony_ci "etc:hilogd_etc", 472498b56bSopenharmony_ci ] 482498b56bSopenharmony_ci 492498b56bSopenharmony_ci external_deps = [ 502498b56bSopenharmony_ci "bounds_checking_function:libsec_shared", 512498b56bSopenharmony_ci "ffrt:libffrt", 522498b56bSopenharmony_ci "init:libbegetutil", 532498b56bSopenharmony_ci "zlib:shared_libz", 542498b56bSopenharmony_ci ] 552498b56bSopenharmony_ci install_images = [ 562498b56bSopenharmony_ci "system", 572498b56bSopenharmony_ci "updater", 582498b56bSopenharmony_ci ] 592498b56bSopenharmony_ci install_enable = true 602498b56bSopenharmony_ci part_name = "hilog" 612498b56bSopenharmony_ci subsystem_name = "hiviewdfx" 622498b56bSopenharmony_ci} 63