blob: 13b9c4e309f9e993af18292a3d2547f5696d4195 [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
Bob Badour7ca20c12021-02-03 18:29:06 -080017package {
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
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070033cc_defaults {
34 name: "logcat_defaults",
35
36 cflags: [
37 "-Wall",
38 "-Wextra",
39 "-Werror",
Tom Cherryb1cf4282019-10-24 17:35:26 -070040 "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070041 ],
42 shared_libs: [
43 "libbase",
Suren Baghdasaryan3e671a52019-01-25 05:32:52 +000044 "libprocessgroup",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070045 ],
Tom Cherry52037522019-01-17 11:37:22 -080046 static_libs: ["liblog"],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070047 logtags: ["event.logtags"],
48}
49
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070050cc_binary {
51 name: "logcat",
52
53 defaults: ["logcat_defaults"],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070054 srcs: [
Elliott Hughes442d8582018-06-15 15:16:20 -070055 "logcat.cpp",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070056 ],
57}
58
Tom Cherryd8ea11f2019-10-30 13:51:03 -070059sh_binary {
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070060 name: "logcatd",
Tom Cherryd8ea11f2019-10-30 13:51:03 -070061 src: "logcatd",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070062}
63
Rashed Abdel-Tawab2ec07702019-10-04 20:42:39 -070064sh_binary {
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070065 name: "logpersist.start",
Rashed Abdel-Tawab2ec07702019-10-04 20:42:39 -070066 src: "logpersist",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070067 init_rc: ["logcatd.rc"],
Calvin On75460e32017-11-13 11:56:30 -080068 required: ["logcatd"],
Elliott Hughes5fe25312018-02-16 17:58:14 -080069 symlinks: [
70 "logpersist.stop",
71 "logpersist.cat",
72 ],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070073}