xref: /aosp_15_r20/system/logging/logcat/Android.bp (revision 598139dc91b21518d67c408eaea2644226490971)
1//
2// Copyright (C) 2006 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: ["system_logging_logcat_license"],
19}
20
21// Added automatically by a large-scale-change
22license {
23    name: "system_logging_logcat_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27    ],
28    license_text: [
29        "NOTICE",
30    ],
31}
32
33cc_binary {
34    name: "logcat",
35
36    cflags: [
37        "-Wall",
38        "-Wextra",
39        "-Werror",
40        "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1",
41    ],
42    shared_libs: [
43        "libbase",
44        "libutils",
45        "libprocessgroup",
46        "libprotobuf-cpp-lite",
47    ],
48    static_libs: ["liblog"],
49    logtags: ["event.logtags"],
50    srcs: [
51        "logcat.cpp",
52        "logcat.proto",
53        "process_names.cpp",
54    ],
55}
56
57sh_binary {
58    name: "logcatd",
59    src: "logcatd.sh",
60}
61
62sh_binary {
63    name: "logpersist.start",
64    src: "logpersist",
65    init_rc: ["logcatd.rc"],
66    required: ["logcatd"],
67    symlinks: [
68        "logpersist.stop",
69        "logpersist.cat",
70    ],
71}
72