• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_defaults {
22    name: "dmesgd_defaults",
23    cflags: [
24        "-Wall",
25        "-Wextra",
26        "-Werror",
27        "-Wno-unused-argument",
28        "-Wno-unused-function",
29        "-Wno-nullability-completeness",
30        "-Os",
31    ],
32}
33
34cc_binary {
35    name: "dmesgd",
36    srcs: [
37        "dmesgd.cpp",
38        "dmesg_parser.cpp",
39    ],
40    defaults: ["dmesgd_defaults"],
41    shared_libs: [
42        "libbase",
43        "libevent",
44        "liblog",
45        "libservices",
46        "libutils",
47    ],
48    init_rc: ["dmesgd.rc"],
49}
50
51cc_test {
52    name: "dmesg_parser_test",
53    defaults: ["dmesgd_defaults"],
54    require_root: false,
55    srcs: [
56        "dmesg_parser.cpp",
57        "dmesg_parser_test.cpp",
58    ],
59}
60