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 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "hardware_interfaces_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["hardware_interfaces_license"], 24} 25 26cc_library_static { 27 name: "libdrmvtshelper", 28 defaults: ["VtsHalTargetTestDefaults"], 29 local_include_dirs: [ 30 "include", 31 ], 32 srcs: [ 33 "vendor_modules.cpp", 34 ], 35 static_libs: [ 36 "android.hardware.drm@1.0-helper", 37 ], 38 export_include_dirs: ["include"], 39} 40 41cc_library_static { 42 name: "android.hardware.drm@1.0-vts", 43 defaults: ["VtsHalTargetTestDefaults"], 44 local_include_dirs: [ 45 "include", 46 ], 47 srcs: [ 48 "drm_hal_clearkey_test.cpp", 49 "drm_hal_vendor_test.cpp", 50 ], 51 shared_libs: [ 52 "android.hardware.drm@1.0", 53 "android.hidl.allocator@1.0", 54 "android.hidl.memory@1.0", 55 "libcrypto", 56 "libhidlmemory", 57 "libnativehelper", 58 ], 59 static_libs: [ 60 "android.hardware.drm@1.0-helper", 61 "libdrmvtshelper", 62 ], 63 export_shared_lib_headers: [ 64 "android.hardware.drm@1.0", 65 "android.hidl.allocator@1.0", 66 "android.hidl.memory@1.0", 67 "libhidlmemory", 68 "libnativehelper", 69 ], 70 export_include_dirs: [ 71 "include", 72 ], 73} 74 75cc_test { 76 name: "VtsHalDrmV1_0TargetTest", 77 defaults: ["VtsHalTargetTestDefaults"], 78 srcs: [ 79 "drm_hal_test_main.cpp", 80 ], 81 whole_static_libs: [ 82 "android.hardware.drm@1.0-vts", 83 ], 84 shared_libs: [ 85 "android.hardware.drm@1.0", 86 "android.hidl.allocator@1.0", 87 "android.hidl.memory@1.0", 88 "libcrypto", 89 "libhidlmemory", 90 "libnativehelper", 91 ], 92 static_libs: [ 93 "android.hardware.drm@1.0-helper", 94 "libdrmvtshelper", 95 ], 96 arch: { 97 arm: { 98 data: [":libvtswidevine-arm-prebuilts"], 99 }, 100 arm64: { 101 data: [":libvtswidevine-arm64-prebuilts"], 102 }, 103 x86: { 104 data: [":libvtswidevine-x86-prebuilts"], 105 }, 106 x86_64: { 107 data: [":libvtswidevine-x86_64-prebuilts"], 108 }, 109 }, 110 test_suites: [ 111 "general-tests", 112 "vts", 113 ], 114} 115