1// 2// Copyright (C) 2006 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 17cc_defaults { 18 name: "logcat_defaults", 19 20 cflags: [ 21 "-Wall", 22 "-Wextra", 23 "-Werror", 24 "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION=1", 25 ], 26 shared_libs: [ 27 "libbase", 28 "libprocessgroup", 29 ], 30 static_libs: ["liblog"], 31 logtags: ["event.logtags"], 32} 33 34cc_binary { 35 name: "logcat", 36 37 defaults: ["logcat_defaults"], 38 srcs: [ 39 "logcat.cpp", 40 ], 41} 42 43sh_binary { 44 name: "logcatd", 45 src: "logcatd", 46} 47 48sh_binary { 49 name: "logpersist.start", 50 src: "logpersist", 51 init_rc: ["logcatd.rc"], 52 required: ["logcatd"], 53 symlinks: [ 54 "logpersist.stop", 55 "logpersist.cat", 56 ], 57} 58