1// Copyright (C) 2020 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_library_shared { 20 name: "cf_proto", 21 vendor_available: true, 22 23 srcs: [ 24 "*.proto", 25 ], 26 27 shared_libs: [ 28 "libcuttlefish_fs", 29 "libcuttlefish_utils", 30 "libbase", 31 "libprotobuf-cpp-lite", 32 "libprotobuf-cpp-full", 33 ], 34 35 static_libs: [ 36 "libcuttlefish_host_config", 37 "libgflags", 38 "libjsoncpp", 39 ], 40 41 proto: { 42 export_proto_headers: true, 43 type: "full", 44 canonical_path_from_root: false, 45 include_dirs: ["external/protobuf/src"], 46 }, 47 48 cppflags: [ 49 "-Werror", 50 "-Wno-unused-parameter", 51 "-Wno-format", 52 "-Wno-c++98-compat-pedantic", 53 "-Wno-float-conversion", 54 "-Wno-disabled-macro-expansion", 55 "-Wno-float-equal", 56 "-Wno-sign-conversion", 57 "-Wno-padded", 58 "-Wno-old-style-cast", 59 "-Wno-undef", 60 ], 61 62 defaults: ["cuttlefish_host"], 63} 64