Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2006-2017 The Android Open Source Project |
| 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", |
| 27 | "libcutils", |
| 28 | "liblog", |
| 29 | "libpcrecpp", |
| 30 | ], |
| 31 | logtags: ["event.logtags"], |
| 32 | } |
| 33 | |
| 34 | cc_library { |
| 35 | name: "liblogcat", |
| 36 | |
| 37 | defaults: ["logcat_defaults"], |
| 38 | srcs: [ |
| 39 | "logcat.cpp", |
| 40 | "getopt_long.cpp", |
| 41 | "logcat_system.cpp", |
| 42 | ], |
| 43 | export_include_dirs: ["include"], |
| 44 | } |
| 45 | |
| 46 | cc_binary { |
| 47 | name: "logcat", |
| 48 | |
| 49 | defaults: ["logcat_defaults"], |
| 50 | shared_libs: ["liblogcat"], |
| 51 | srcs: [ |
| 52 | "logcat_main.cpp", |
| 53 | ], |
| 54 | } |
| 55 | |
| 56 | cc_binary { |
| 57 | name: "logcatd", |
| 58 | |
| 59 | defaults: ["logcat_defaults"], |
| 60 | shared_libs: ["liblogcat"], |
| 61 | srcs: [ |
| 62 | "logcatd_main.cpp", |
| 63 | ], |
| 64 | } |
| 65 | |
| 66 | cc_prebuilt_binary { |
| 67 | name: "logpersist.start", |
| 68 | srcs: ["logpersist"], |
| 69 | init_rc: ["logcatd.rc"], |
Calvin On | 24e7a25 | 2017-11-13 11:56:30 -0800 | [diff] [blame] | 70 | required: ["logcatd"], |
Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 71 | symlinks: ["logpersist.stop", "logpersist.cat"], |
Dan Willemsen | e1cf0f5 | 2017-08-09 20:20:48 -0700 | [diff] [blame] | 72 | strip: { |
| 73 | none: true, |
| 74 | } |
Mark Salyzyn | 507f69f | 2017-08-04 16:28:47 -0700 | [diff] [blame] | 75 | } |