| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 1 | // | 
| Elliott Hughes | 61b580e | 2018-06-15 15:16:20 -0700 | [diff] [blame] | 2 | // Copyright (C) 2006 The Android Open Source Project | 
| Mark Salyzyn | 507f69f | 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 |  | 
 | 17 | cc_defaults { | 
 | 18 |     name: "logcat_defaults", | 
 | 19 |  | 
 | 20 |     cflags: [ | 
 | 21 |         "-Wall", | 
 | 22 |         "-Wextra", | 
 | 23 |         "-Werror", | 
| Tom Cherry | d162f14 | 2019-10-24 17:35:26 -0700 | [diff] [blame] | 24 |         "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1", | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 25 |     ], | 
 | 26 |     shared_libs: [ | 
 | 27 |         "libbase", | 
| Suren Baghdasaryan | 0284333 | 2018-12-21 12:30:16 -0800 | [diff] [blame] | 28 |         "libprocessgroup", | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 29 |     ], | 
| Tom Cherry | 9e12433 | 2019-01-17 11:37:22 -0800 | [diff] [blame] | 30 |     static_libs: ["liblog"], | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 31 |     logtags: ["event.logtags"], | 
 | 32 | } | 
 | 33 |  | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 34 | cc_binary { | 
 | 35 |     name: "logcat", | 
 | 36 |  | 
 | 37 |     defaults: ["logcat_defaults"], | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 38 |     srcs: [ | 
| Elliott Hughes | 61b580e | 2018-06-15 15:16:20 -0700 | [diff] [blame] | 39 |         "logcat.cpp", | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 40 |     ], | 
 | 41 | } | 
 | 42 |  | 
| Tom Cherry | 98c6c33 | 2019-10-30 13:51:03 -0700 | [diff] [blame] | 43 | sh_binary { | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 44 |     name: "logcatd", | 
| Tom Cherry | 98c6c33 | 2019-10-30 13:51:03 -0700 | [diff] [blame] | 45 |     src: "logcatd", | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 46 | } | 
 | 47 |  | 
| Rashed Abdel-Tawab | a726e46 | 2019-10-04 20:42:39 -0700 | [diff] [blame] | 48 | sh_binary { | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 49 |     name: "logpersist.start", | 
| Rashed Abdel-Tawab | a726e46 | 2019-10-04 20:42:39 -0700 | [diff] [blame] | 50 |     src: "logpersist", | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 51 |     init_rc: ["logcatd.rc"], | 
| Calvin On | 24e7a25 | 2017-11-13 11:56:30 -0800 | [diff] [blame] | 52 |     required: ["logcatd"], | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 53 |     symlinks: [ | 
 | 54 |         "logpersist.stop", | 
 | 55 |         "logpersist.cat", | 
 | 56 |     ], | 
| Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 57 | } |