1// 2// Copyright (C) 2016 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 17cc_library_shared { 18 19 name: "libvts_common", 20 host_supported: true, 21 // TODO(b/153609531): remove when no longer needed. 22 native_bridge_supported: true, 23 24 cflags: [ 25 "-Wall", 26 "-Werror", 27 ], 28 29 srcs: [ 30 "utils/InterfaceSpecUtil.cpp", 31 "utils/StringUtil.cpp", 32 ], 33 34 include_dirs: [ 35 "frameworks/native/include", 36 "system/core/include", 37 "system/extras", 38 ], 39 40 local_include_dirs: ["include"], 41 42 shared_libs: [ 43 "libbase", 44 "libprotobuf-cpp-full", 45 "libvts_multidevice_proto", 46 ], 47 48 export_include_dirs: ["include"], 49 50 target: { 51 android: { 52 srcs: [ 53 "binder/VtsFuzzerBinderService.cpp", 54 "component_loader/DllLoader.cpp", 55 "component_loader/HalDriverLoader.cpp", 56 "driver_base/DriverBase.cpp", 57 "driver_base/DriverCallbackBase.cpp", 58 "driver_manager/VtsHalDriverManager.cpp", 59 ], 60 shared_libs: [ 61 "libbinder", 62 "libcutils", 63 "libdl", 64 "liblog", 65 "libutils", 66 "libvts_codecoverage", 67 "libvts_drivercomm", 68 "libvts_multidevice_proto", 69 "libvts_resource_manager", 70 ], 71 }, 72 }, 73} 74