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// 16 17libvbmeta_lib_deps = [ 18 "libbase", 19 "libcrypto", 20] 21 22cc_library { 23 name: "libvbmeta", 24 host_supported: true, 25 srcs: [ 26 "builder.cpp", 27 "reader.cpp", 28 "utility.cpp", 29 "writer.cpp", 30 ], 31 shared_libs: [ 32 "liblog", 33 ] + libvbmeta_lib_deps, 34 export_include_dirs: ["include"], 35} 36 37cc_test_host { 38 name: "libvbmeta_test", 39 static_libs: [ 40 "liblog", 41 "libsparse", 42 "libvbmeta", 43 "libz", 44 ] + libvbmeta_lib_deps, 45 srcs: [ 46 "builder_test.cpp", 47 "super_vbmeta_test.cpp", 48 ], 49 required: [ 50 "avbtool", 51 "vbmake", 52 ], 53}