blob: 01beb53e8c8420411ad66309942e4a4cc4955933 [file] [log] [blame]
Mark Salyzyn507f69f2017-08-04 16:28:47 -07001//
2// Copyright (C) 2006-2017 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
17cc_defaults {
18 name: "logcat_defaults",
19
20 cflags: [
21 "-Wall",
22 "-Wextra",
23 "-Werror",
24 ],
25 shared_libs: [
26 "libbase",
27 "libcutils",
28 "liblog",
29 "libpcrecpp",
30 ],
31 logtags: ["event.logtags"],
32}
33
34cc_library {
35 name: "liblogcat",
36
37 defaults: ["logcat_defaults"],
38 srcs: [
39 "logcat.cpp",
40 "getopt_long.cpp",
41 "logcat_system.cpp",
42 ],
43 export_include_dirs: ["include"],
44}
45
46cc_binary {
47 name: "logcat",
48
49 defaults: ["logcat_defaults"],
50 shared_libs: ["liblogcat"],
51 srcs: [
52 "logcat_main.cpp",
53 ],
54}
55
56cc_binary {
57 name: "logcatd",
58
59 defaults: ["logcat_defaults"],
60 shared_libs: ["liblogcat"],
61 srcs: [
62 "logcatd_main.cpp",
63 ],
64}
65
66cc_prebuilt_binary {
67 name: "logpersist.start",
68 srcs: ["logpersist"],
69 init_rc: ["logcatd.rc"],
Calvin On24e7a252017-11-13 11:56:30 -080070 required: ["logcatd"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080071 symlinks: [
72 "logpersist.stop",
73 "logpersist.cat",
74 ],
Dan Willemsene1cf0f52017-08-09 20:20:48 -070075 strip: {
76 none: true,
Elliott Hughesdc699a22018-02-16 17:58:14 -080077 },
Mark Salyzyn507f69f2017-08-04 16:28:47 -070078}