blob: dda61eea6a08a4c3f3b9a2a8c1b0dd6effd96768 [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
Jiyong Parkd073cba2022-09-07 22:50:11 +090033cc_binary {
34 name: "logcat",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070035
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",
Fabien Sanglard5beb0782023-06-14 01:29:23 +000044 "libutils",
Suren Baghdasaryan3e671a52019-01-25 05:32:52 +000045 "libprocessgroup",
Fabien Sanglardb0484d92023-06-12 20:04:16 +000046 "libprotobuf-cpp-lite",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070047 ],
Tom Cherry52037522019-01-17 11:37:22 -080048 static_libs: ["liblog"],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070049 logtags: ["event.logtags"],
Inseob Kim7ea03f32022-07-05 19:33:54 +090050 srcs: [
51 "logcat.cpp",
Fabien Sanglardb0484d92023-06-12 20:04:16 +000052 "logcat.proto",
Fabien Sanglard5beb0782023-06-14 01:29:23 +000053 "process_names.cpp",
Inseob Kim7ea03f32022-07-05 19:33:54 +090054 ],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070055}
56
Tom Cherryd8ea11f2019-10-30 13:51:03 -070057sh_binary {
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070058 name: "logcatd",
Jingwen Chen3473dd42022-09-01 14:20:22 +000059 src: "logcatd.sh",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070060}
61
Rashed Abdel-Tawab2ec07702019-10-04 20:42:39 -070062sh_binary {
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070063 name: "logpersist.start",
Rashed Abdel-Tawab2ec07702019-10-04 20:42:39 -070064 src: "logpersist",
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070065 init_rc: ["logcatd.rc"],
Calvin On75460e32017-11-13 11:56:30 -080066 required: ["logcatd"],
Elliott Hughes5fe25312018-02-16 17:58:14 -080067 symlinks: [
68 "logpersist.stop",
69 "logpersist.cat",
70 ],
Mark Salyzyn0d14ef42017-08-04 16:28:47 -070071}