1// 2// Copyright (C) 2018 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_defaults { 18 19 name: "libvts_resource-defaults", 20 21 cflags: [ 22 "-Wall", 23 "-Werror", 24 ], 25 26 local_include_dirs: ["include"], 27 28 static_libs: [ 29 "android.hardware.audio@4.0", 30 "android.hardware.audio.effect@2.0", 31 "android.hardware.audio.effect@4.0", 32 ], 33 34 shared_libs: [ 35 "android.hidl.allocator@1.0", 36 "android.hidl.memory@1.0", 37 "libbase", 38 "libcutils", 39 "libfmq", 40 "libhidlbase", 41 "libhidlmemory", 42 "liblog", 43 "libprotobuf-cpp-full", 44 "libutils", 45 ], 46 47 export_include_dirs: ["include"], 48 49 export_static_lib_headers: [ 50 "android.hardware.audio@4.0", 51 "android.hardware.audio.effect@2.0", 52 "android.hardware.audio.effect@4.0", 53 ], 54 55 export_shared_lib_headers: [ 56 "android.hidl.allocator@1.0", 57 "android.hidl.memory@1.0", 58 "libcutils", 59 "libfmq", 60 "libhidlbase", 61 "libutils", 62 ], 63} 64 65cc_library_shared { 66 name: "libvts_resource_driver", 67 68 defaults: ["libvts_resource-defaults"], 69 70 srcs: [ 71 "hidl_handle_driver/VtsHidlHandleDriver.cpp", 72 "hidl_memory_driver/VtsHidlMemoryDriver.cpp", 73 ], 74} 75 76cc_library_shared { 77 name: "libvts_resource_manager", 78 79 defaults: ["libvts_resource-defaults"], 80 81 srcs: [ 82 "resource_manager/VtsResourceManager.cpp", 83 ], 84 85 shared_libs: [ 86 "libvts_multidevice_proto", 87 "libvts_resource_driver", 88 ], 89} 90 91cc_test { 92 name: "vts_resource_fmq_test", 93 94 defaults: ["libvts_resource-defaults"], 95 96 rtti: true, 97 98 srcs: [ 99 "fmq_driver/VtsFmqDriverTest.cpp" 100 ], 101} 102 103cc_test { 104 name: "vts_resource_hidl_memory_test", 105 106 defaults: ["libvts_resource-defaults"], 107 108 srcs: [ 109 "hidl_memory_driver/VtsHidlMemoryDriver.cpp", 110 "hidl_memory_driver/VtsHidlMemoryDriverTest.cpp", 111 ] 112} 113 114cc_test { 115 name: "vts_resource_hidl_handle_test", 116 117 defaults: ["libvts_resource-defaults"], 118 119 srcs: [ 120 "hidl_handle_driver/VtsHidlHandleDriver.cpp", 121 "hidl_handle_driver/VtsHidlHandleDriverTest.cpp", 122 ] 123} 124