1// 2// Copyright (C) 2016 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: "bootio_defaults", 19 20 cflags: [ 21 "-Wall", 22 "-Werror", 23 "-Wextra", 24 ], 25 shared_libs: [ 26 "libbase", 27 "libcutils", 28 "liblog", 29 "libprotobuf-cpp-lite", 30 ], 31} 32 33// bootio library 34// ----------------------------------------------------------------------------- 35 36cc_library_shared { 37 name: "libbootio", 38 defaults: ["bootio_defaults"], 39 40 include_dirs: ["system/extras/boottime_tools"], 41 42 export_include_dirs: ["."], 43 proto: { 44 canonical_path_from_root: false, 45 type: "lite", 46 }, 47 srcs: [ 48 "protos.proto", 49 "bootio_collector.cpp", 50 ], 51} 52 53// bootio binary 54// ----------------------------------------------------------------------------- 55 56cc_binary { 57 name: "bootio", 58 defaults: ["bootio_defaults"], 59 shared_libs: ["libbootio"], 60 61 init_rc: ["bootio.rc"], 62 srcs: ["bootio.cpp"], 63} 64