blob: b0563a64cf0f6a0e2053135f34b3706fdfa57c9b [file] [log] [blame]
Mark Salyzyn507f69f2017-08-04 16:28:47 -07001//
Elliott Hughes61b580e2018-06-15 15:16:20 -07002// Copyright (C) 2006 The Android Open Source Project
Mark Salyzyn507f69f2017-08-04 16:28:47 -07003//
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
Mark Salyzyn507f69f2017-08-04 16:28:47 -070034cc_binary {
35 name: "logcat",
36
37 defaults: ["logcat_defaults"],
Mark Salyzyn507f69f2017-08-04 16:28:47 -070038 srcs: [
39 "logcat_main.cpp",
Elliott Hughes61b580e2018-06-15 15:16:20 -070040 "logcat.cpp",
Mark Salyzyn507f69f2017-08-04 16:28:47 -070041 ],
42}
43
44cc_binary {
45 name: "logcatd",
46
47 defaults: ["logcat_defaults"],
Mark Salyzyn507f69f2017-08-04 16:28:47 -070048 srcs: [
49 "logcatd_main.cpp",
Elliott Hughes61b580e2018-06-15 15:16:20 -070050 "logcat.cpp",
Mark Salyzyn507f69f2017-08-04 16:28:47 -070051 ],
52}
53
54cc_prebuilt_binary {
55 name: "logpersist.start",
56 srcs: ["logpersist"],
57 init_rc: ["logcatd.rc"],
Calvin On24e7a252017-11-13 11:56:30 -080058 required: ["logcatd"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080059 symlinks: [
60 "logpersist.stop",
61 "logpersist.cat",
62 ],
Dan Willemsene1cf0f52017-08-09 20:20:48 -070063 strip: {
64 none: true,
Elliott Hughesdc699a22018-02-16 17:58:14 -080065 },
Mark Salyzyn507f69f2017-08-04 16:28:47 -070066}