blob: 61fba592897db5e5460fdf96d60b66d89c6ae045 [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",
Tom Cherryd162f142019-10-24 17:35:26 -070024 "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1",
Mark Salyzyn507f69f2017-08-04 16:28:47 -070025 ],
26 shared_libs: [
27 "libbase",
Suren Baghdasaryan02843332018-12-21 12:30:16 -080028 "libprocessgroup",
Mark Salyzyn507f69f2017-08-04 16:28:47 -070029 ],
Tom Cherry9e124332019-01-17 11:37:22 -080030 static_libs: ["liblog"],
Mark Salyzyn507f69f2017-08-04 16:28:47 -070031 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: [
Elliott Hughes61b580e2018-06-15 15:16:20 -070039 "logcat.cpp",
Mark Salyzyn507f69f2017-08-04 16:28:47 -070040 ],
41}
42
Tom Cherry98c6c332019-10-30 13:51:03 -070043sh_binary {
Mark Salyzyn507f69f2017-08-04 16:28:47 -070044 name: "logcatd",
Tom Cherry98c6c332019-10-30 13:51:03 -070045 src: "logcatd",
Mark Salyzyn507f69f2017-08-04 16:28:47 -070046}
47
Rashed Abdel-Tawaba726e462019-10-04 20:42:39 -070048sh_binary {
Mark Salyzyn507f69f2017-08-04 16:28:47 -070049 name: "logpersist.start",
Rashed Abdel-Tawaba726e462019-10-04 20:42:39 -070050 src: "logpersist",
Mark Salyzyn507f69f2017-08-04 16:28:47 -070051 init_rc: ["logcatd.rc"],
Calvin On24e7a252017-11-13 11:56:30 -080052 required: ["logcatd"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080053 symlinks: [
54 "logpersist.stop",
55 "logpersist.cat",
56 ],
Mark Salyzyn507f69f2017-08-04 16:28:47 -070057}