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