1// 2// Copyright (C) 2022 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_team: "trendy_team_dogfooders", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_defaults { 23 name: "dmesgd_defaults", 24 cflags: [ 25 "-Wall", 26 "-Wextra", 27 "-Werror", 28 "-Wno-unused-argument", 29 "-Wno-unused-function", 30 "-Wno-nullability-completeness", 31 ], 32 33 optimize_for_size: true, 34} 35 36cc_binary { 37 name: "dmesgd", 38 srcs: [ 39 "dmesgd.cpp", 40 "dmesg_parser.cpp", 41 ], 42 defaults: ["dmesgd_defaults"], 43 shared_libs: [ 44 "libbase", 45 "libevent", 46 "liblog", 47 "libservices", 48 "libutils", 49 ], 50 init_rc: ["dmesgd.rc"], 51} 52 53cc_test { 54 name: "dmesg_parser_test", 55 defaults: ["dmesgd_defaults"], 56 require_root: false, 57 srcs: [ 58 "dmesg_parser.cpp", 59 "dmesg_parser_test.cpp", 60 ], 61} 62