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        "-Os",
32    ],
33}
34
35cc_binary {
36    name: "dmesgd",
37    srcs: [
38        "dmesgd.cpp",
39        "dmesg_parser.cpp",
40    ],
41    defaults: ["dmesgd_defaults"],
42    shared_libs: [
43        "libbase",
44        "libevent",
45        "liblog",
46        "libservices",
47        "libutils",
48    ],
49    init_rc: ["dmesgd.rc"],
50}
51
52cc_test {
53    name: "dmesg_parser_test",
54    defaults: ["dmesgd_defaults"],
55    require_root: false,
56    srcs: [
57        "dmesg_parser.cpp",
58        "dmesg_parser_test.cpp",
59    ],
60}
61