• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "libprocessgroup",
45    ],
46    static_libs: ["liblog"],
47    logtags: ["event.logtags"],
48    srcs: [
49        "logcat.cpp",
50    ],
51}
52
53sh_binary {
54    name: "logcatd",
55    src: "logcatd.sh",
56}
57
58sh_binary {
59    name: "logpersist.start",
60    src: "logpersist",
61    init_rc: ["logcatd.rc"],
62    required: ["logcatd"],
63    symlinks: [
64        "logpersist.stop",
65        "logpersist.cat",
66    ],
67}
68