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 | |
| 17 | cc_defaults { |
| 18 | name: "logcat_defaults", |
| 19 | |
| 20 | cflags: [ |
| 21 | "-Wall", |
| 22 | "-Wextra", |
| 23 | "-Werror", |
| 24 | ], |
| 25 | shared_libs: [ |
| 26 | "libbase", |
Suren Baghdasaryan | 3e671a5 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 27 | "libprocessgroup", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 28 | ], |
Tom Cherry | 5203752 | 2019-01-17 11:37:22 -0800 | [diff] [blame] | 29 | static_libs: ["liblog"], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 30 | logtags: ["event.logtags"], |
| 31 | } |
| 32 | |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 33 | cc_binary { |
| 34 | name: "logcat", |
| 35 | |
| 36 | defaults: ["logcat_defaults"], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 37 | srcs: [ |
| 38 | "logcat_main.cpp", |
Elliott Hughes | 442d858 | 2018-06-15 15:16:20 -0700 | [diff] [blame] | 39 | "logcat.cpp", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 40 | ], |
| 41 | } |
| 42 | |
| 43 | cc_binary { |
| 44 | name: "logcatd", |
| 45 | |
| 46 | defaults: ["logcat_defaults"], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 47 | srcs: [ |
| 48 | "logcatd_main.cpp", |
Elliott Hughes | 442d858 | 2018-06-15 15:16:20 -0700 | [diff] [blame] | 49 | "logcat.cpp", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 50 | ], |
| 51 | } |
| 52 | |
Rashed Abdel-Tawab | 2ec0770 | 2019-10-04 20:42:39 -0700 | [diff] [blame^] | 53 | sh_binary { |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 54 | name: "logpersist.start", |
Rashed Abdel-Tawab | 2ec0770 | 2019-10-04 20:42:39 -0700 | [diff] [blame^] | 55 | src: "logpersist", |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 56 | init_rc: ["logcatd.rc"], |
Calvin On | 75460e3 | 2017-11-13 11:56:30 -0800 | [diff] [blame] | 57 | required: ["logcatd"], |
Elliott Hughes | 5fe2531 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 58 | symlinks: [ |
| 59 | "logpersist.stop", |
| 60 | "logpersist.cat", |
| 61 | ], |
Mark Salyzyn | 0d14ef4 | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 62 | } |