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 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21libvbmeta_lib_deps = [ 22 "libbase", 23 "libcrypto", 24] 25 26cc_library { 27 name: "libvbmeta", 28 host_supported: true, 29 srcs: [ 30 "builder.cpp", 31 "reader.cpp", 32 "utility.cpp", 33 "writer.cpp", 34 ], 35 shared_libs: [ 36 "liblog", 37 ] + libvbmeta_lib_deps, 38 export_include_dirs: ["include"], 39} 40 41cc_test_host { 42 name: "libvbmeta_test", 43 static_libs: [ 44 "liblog", 45 "libsparse", 46 "libvbmeta", 47 "libz", 48 ] + libvbmeta_lib_deps, 49 srcs: [ 50 "builder_test.cpp", 51 "super_vbmeta_test.cpp", 52 ], 53 required: [ 54 "avbtool", 55 "vbmake", 56 ], 57 data: [ 58 "data/*", 59 ], 60 // Not unit tests due to several binary and lib dependencies currently hard to replicate in continuous execution 61 test_options: { 62 unit_test: false, 63 }, 64} 65