blob: e6b0c7d8e7f3a67d6772428baef3ea6fa882452c [file] [log] [blame]
Mark Salyzyn0d14ef42017-08-04 16:28:47 -07001//
Elliott Hughes442d8582018-06-15 15:16:20 -07002// Copyright (C) 2006 The Android Open Source Project
Mark Salyzyn0d14ef42017-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",
Suren Baghdasaryan3e671a52019-01-25 05:32:52 +000027 "libprocessgroup",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070028 ],
Tom Cherry52037522019-01-17 11:37:22 -080029 static_libs: ["liblog"],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070030 logtags: ["event.logtags"],
31}
32
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070033cc_binary {
34 name: "logcat",
35
36 defaults: ["logcat_defaults"],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070037 srcs: [
38 "logcat_main.cpp",
Elliott Hughes442d8582018-06-15 15:16:20 -070039 "logcat.cpp",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070040 ],
41}
42
43cc_binary {
44 name: "logcatd",
45
46 defaults: ["logcat_defaults"],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070047 srcs: [
48 "logcatd_main.cpp",
Elliott Hughes442d8582018-06-15 15:16:20 -070049 "logcat.cpp",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070050 ],
51}
52
Rashed Abdel-Tawab2ec07702019-10-04 20:42:39 -070053sh_binary {
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070054 name: "logpersist.start",
Rashed Abdel-Tawab2ec07702019-10-04 20:42:39 -070055 src: "logpersist",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070056 init_rc: ["logcatd.rc"],
Calvin On75460e32017-11-13 11:56:30 -080057 required: ["logcatd"],
Elliott Hughes5fe25312018-02-16 17:58:14 -080058 symlinks: [
59 "logpersist.stop",
60 "logpersist.cat",
61 ],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070062}