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 | |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 33 | cc_defaults { |
| 34 | name: "logcat_defaults", |
| 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", |
Suren Baghdasaryan | 3e671a5 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 44 | "libprocessgroup", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 45 | ], |
Tom Cherry | 5203752 | 2019-01-17 11:37:22 -0800 | [diff] [blame] | 46 | static_libs: ["liblog"], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 47 | logtags: ["event.logtags"], |
| 48 | } |
| 49 | |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 50 | cc_binary { |
| 51 | name: "logcat", |
| 52 | |
| 53 | defaults: ["logcat_defaults"], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 54 | srcs: [ |
Elliott Hughes | 442d858 | 2018-06-15 15:16:20 -0700 | [diff] [blame] | 55 | "logcat.cpp", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 56 | ], |
| 57 | } |
| 58 | |
Tom Cherry | d8ea11f | 2019-10-30 13:51:03 -0700 | [diff] [blame] | 59 | sh_binary { |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 60 | name: "logcatd", |
Tom Cherry | d8ea11f | 2019-10-30 13:51:03 -0700 | [diff] [blame] | 61 | src: "logcatd", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 62 | } |
| 63 | |
Rashed Abdel-Tawab | 2ec0770 | 2019-10-04 20:42:39 -0700 | [diff] [blame] | 64 | sh_binary { |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 65 | name: "logpersist.start", |
Rashed Abdel-Tawab | 2ec0770 | 2019-10-04 20:42:39 -0700 | [diff] [blame] | 66 | src: "logpersist", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 67 | init_rc: ["logcatd.rc"], |
Calvin On | 75460e3 | 2017-11-13 11:56:30 -0800 | [diff] [blame] | 68 | required: ["logcatd"], |
Elliott Hughes | 5fe2531 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 69 | symlinks: [ |
| 70 | "logpersist.stop", |
| 71 | "logpersist.cat", |
| 72 | ], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 73 | } |