1// 2// Copyright (C) 2017 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. 15cc_defaults { 16 name: "libprotoutil_defaults", 17 18 cflags: [ 19 "-Wall", 20 "-Werror", 21 "-Wno-missing-field-initializers", 22 "-Wno-unused-variable", 23 "-Wunused-parameter", 24 ], 25 26 srcs: [ 27 "src/EncodedBuffer.cpp", 28 "src/ProtoFileReader.cpp", 29 "src/ProtoOutputStream.cpp", 30 "src/ProtoReader.cpp", 31 "src/protobuf.cpp", 32 ], 33 34 shared_libs: [ 35 "libbase", 36 "libutils", 37 "libcutils", 38 "liblog", 39 ], 40} 41 42cc_library { 43 name: "libprotoutil", 44 45 defaults: ["libprotoutil_defaults"], 46 47 export_include_dirs: ["include"], 48} 49 50cc_test { 51 name: "libprotoutil_test", 52 53 defaults: ["libprotoutil_defaults"], 54 55 local_include_dirs: ["include"], 56 57 srcs: ["tests/*"], 58 59 shared_libs: [ 60 "libprotobuf-cpp-full", 61 ], 62 63 static_libs: [ 64 "libgmock", 65 ], 66 67 proto: { 68 type: "full", 69 } 70} 71