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. 15// 16 17cc_library_static { 18 name: "libdrmvtshelper", 19 defaults: ["VtsHalTargetTestDefaults"], 20 local_include_dirs: [ 21 "include", 22 ], 23 srcs: [ 24 "vendor_modules.cpp", 25 ], 26 static_libs: [ 27 "android.hardware.drm@1.0-helper", 28 ], 29 export_include_dirs: ["include"], 30} 31 32cc_library_static { 33 name: "android.hardware.drm@1.0-vts", 34 defaults: ["VtsHalTargetTestDefaults"], 35 local_include_dirs: [ 36 "include", 37 ], 38 srcs: [ 39 "drm_hal_clearkey_test.cpp", 40 "drm_hal_vendor_test.cpp", 41 ], 42 shared_libs: [ 43 "android.hardware.drm@1.0", 44 "android.hidl.allocator@1.0", 45 "android.hidl.memory@1.0", 46 "libhidlmemory", 47 "libnativehelper", 48 ], 49 static_libs: [ 50 "android.hardware.drm@1.0-helper", 51 "libcrypto_static", 52 "libdrmvtshelper", 53 ], 54 export_shared_lib_headers: [ 55 "android.hardware.drm@1.0", 56 "android.hidl.allocator@1.0", 57 "android.hidl.memory@1.0", 58 "libhidlmemory", 59 "libnativehelper", 60 ], 61 export_include_dirs: [ 62 "include", 63 ], 64} 65 66cc_test { 67 name: "VtsHalDrmV1_0TargetTest", 68 defaults: ["VtsHalTargetTestDefaults"], 69 srcs: [ 70 "drm_hal_test_main.cpp", 71 ], 72 whole_static_libs: [ 73 "android.hardware.drm@1.0-vts", 74 ], 75 shared_libs: [ 76 "android.hardware.drm@1.0", 77 "android.hidl.allocator@1.0", 78 "android.hidl.memory@1.0", 79 "libhidlmemory", 80 "libnativehelper", 81 ], 82 static_libs: [ 83 "android.hardware.drm@1.0-helper", 84 "libcrypto_static", 85 "libdrmvtshelper", 86 ], 87 arch: { 88 arm: { 89 data: [":libvtswidevine-arm-prebuilts"], 90 }, 91 arm64: { 92 data: [":libvtswidevine-arm64-prebuilts"], 93 }, 94 x86: { 95 data: [":libvtswidevine-x86-prebuilts"], 96 }, 97 x86_64: { 98 data: [":libvtswidevine-x86_64-prebuilts"], 99 }, 100 }, 101 test_suites: [ 102 "general-tests", 103 "vts", 104 ], 105} 106