1// 2// Copyright (C) 2019 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 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_defaults { 21 name: "tombstone_transmit_defaults", 22 static_libs: [ 23 "libgflags", 24 "libbase", 25 "libcutils", 26 ], 27 shared_libs: [ 28 "liblog", 29 ], 30 stl: "libc++_static", 31} 32 33cc_binary { 34 name: "tombstone_transmit", 35 srcs: [ 36 "tombstone_transmit.cpp", 37 ], 38 static_libs: [ 39 "libcuttlefish_fs", 40 "libcuttlefish_utils", 41 ], 42 defaults: [ 43 "tombstone_transmit_defaults", 44 "cuttlefish_guest_product_only" 45 ], 46} 47 48// Same as tombstone_transmit, but place the binary in /system partition 49// We are using the binary for microdroid, which does not have /product partition 50cc_binary { 51 name: "tombstone_transmit.microdroid", 52 srcs: [ 53 "tombstone_transmit.cpp", 54 ], 55 static_libs: [ 56 "libcuttlefish_fs", 57 "libcuttlefish_utils", 58 ], 59 defaults: [ 60 "tombstone_transmit_defaults", 61 "cuttlefish_base", 62 ], 63 cflags: [ 64 "-DMICRODROID", 65 ], 66} 67 68cc_binary { 69 name: "tombstone_producer", 70 srcs: [ 71 "tombstone_producer.cpp", 72 ], 73 defaults: ["cuttlefish_guest_product_only"], 74} 75