• 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_defaults {
34    name: "logcat_defaults",
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}
49
50cc_binary {
51    name: "logcat",
52
53    defaults: ["logcat_defaults"],
54    srcs: [
55        "logcat.cpp",
56    ],
57}
58
59sh_binary {
60    name: "logcatd",
61    src: "logcatd",
62}
63
64sh_binary {
65    name: "logpersist.start",
66    src: "logpersist",
67    init_rc: ["logcatd.rc"],
68    required: ["logcatd"],
69    symlinks: [
70        "logpersist.stop",
71        "logpersist.cat",
72    ],
73}
74