Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 1 | // |
Elliott Hughes | 442d858 | 2018-06-15 15:16:20 -0700 | [diff] [blame] | 2 | // Copyright (C) 2006 The Android Open Source Project |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 3 | // |
| 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 Badour | 7ca20c1 | 2021-02-03 18:29:06 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["system_logging_logcat_license"], |
| 19 | } |
| 20 | |
| 21 | // Added automatically by a large-scale-change |
| 22 | license { |
| 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 Park | d073cba | 2022-09-07 22:50:11 +0900 | [diff] [blame] | 33 | cc_binary { |
| 34 | name: "logcat", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 35 | |
| 36 | cflags: [ |
| 37 | "-Wall", |
| 38 | "-Wextra", |
| 39 | "-Werror", |
Tom Cherry | b1cf428 | 2019-10-24 17:35:26 -0700 | [diff] [blame] | 40 | "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 41 | ], |
| 42 | shared_libs: [ |
| 43 | "libbase", |
Fabien Sanglard | 5beb078 | 2023-06-14 01:29:23 +0000 | [diff] [blame] | 44 | "libutils", |
Suren Baghdasaryan | 3e671a5 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 45 | "libprocessgroup", |
Fabien Sanglard | b0484d9 | 2023-06-12 20:04:16 +0000 | [diff] [blame] | 46 | "libprotobuf-cpp-lite", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 47 | ], |
Tom Cherry | 5203752 | 2019-01-17 11:37:22 -0800 | [diff] [blame] | 48 | static_libs: ["liblog"], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 49 | logtags: ["event.logtags"], |
Inseob Kim | 7ea03f3 | 2022-07-05 19:33:54 +0900 | [diff] [blame] | 50 | srcs: [ |
| 51 | "logcat.cpp", |
Fabien Sanglard | b0484d9 | 2023-06-12 20:04:16 +0000 | [diff] [blame] | 52 | "logcat.proto", |
Fabien Sanglard | 5beb078 | 2023-06-14 01:29:23 +0000 | [diff] [blame] | 53 | "process_names.cpp", |
Inseob Kim | 7ea03f3 | 2022-07-05 19:33:54 +0900 | [diff] [blame] | 54 | ], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 55 | } |
| 56 | |
Tom Cherry | d8ea11f | 2019-10-30 13:51:03 -0700 | [diff] [blame] | 57 | sh_binary { |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 58 | name: "logcatd", |
Jingwen Chen | 3473dd4 | 2022-09-01 14:20:22 +0000 | [diff] [blame] | 59 | src: "logcatd.sh", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 60 | } |
| 61 | |
Rashed Abdel-Tawab | 2ec0770 | 2019-10-04 20:42:39 -0700 | [diff] [blame] | 62 | sh_binary { |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 63 | name: "logpersist.start", |
Rashed Abdel-Tawab | 2ec0770 | 2019-10-04 20:42:39 -0700 | [diff] [blame] | 64 | src: "logpersist", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 65 | init_rc: ["logcatd.rc"], |
Calvin On | 75460e3 | 2017-11-13 11:56:30 -0800 | [diff] [blame] | 66 | required: ["logcatd"], |
Elliott Hughes | 5fe2531 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 67 | symlinks: [ |
| 68 | "logpersist.stop", |
| 69 | "logpersist.cat", |
| 70 | ], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 71 | } |