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_headers { 27 name: "drm_hal_vendor_module_headers", 28 vendor_available: true, 29 export_include_dirs: [ 30 "include", 31 ], 32} 33 34cc_library_static { 35 name: "libdrmvtshelper", 36 defaults: ["VtsHalTargetTestDefaults"], 37 local_include_dirs: [ 38 "include", 39 ], 40 srcs: [ 41 "vendor_modules.cpp", 42 ], 43 static_libs: [ 44 "android.hardware.drm@1.0-helper", 45 ], 46 export_include_dirs: ["include"], 47 export_static_lib_headers: ["android.hardware.drm@1.0-helper"], 48} 49 50cc_library_static { 51 name: "android.hardware.drm@1.0-vts", 52 defaults: ["VtsHalTargetTestDefaults"], 53 local_include_dirs: [ 54 "include", 55 ], 56 tidy_timeout_srcs: [ 57 "drm_hal_clearkey_test.cpp", 58 "drm_hal_vendor_test.cpp", 59 ], 60 srcs: [ 61 "drm_hal_clearkey_test.cpp", 62 "drm_hal_vendor_test.cpp", 63 ], 64 shared_libs: [ 65 "android.hardware.drm@1.0", 66 "android.hidl.allocator@1.0", 67 "android.hidl.memory@1.0", 68 "libcrypto", 69 "libhidlmemory", 70 "libnativehelper", 71 ], 72 static_libs: [ 73 "android.hardware.drm@1.0-helper", 74 "libdrmvtshelper", 75 ], 76 export_shared_lib_headers: [ 77 "android.hardware.drm@1.0", 78 "android.hidl.allocator@1.0", 79 "android.hidl.memory@1.0", 80 "libhidlmemory", 81 "libnativehelper", 82 ], 83 export_include_dirs: [ 84 "include", 85 ], 86} 87 88cc_test { 89 name: "VtsHalDrmV1_0TargetTest", 90 defaults: ["VtsHalTargetTestDefaults"], 91 srcs: [ 92 "drm_hal_test_main.cpp", 93 ], 94 whole_static_libs: [ 95 "android.hardware.drm@1.0-vts", 96 ], 97 shared_libs: [ 98 "android.hardware.drm@1.0", 99 "android.hidl.allocator@1.0", 100 "android.hidl.memory@1.0", 101 "libcrypto", 102 "libhidlmemory", 103 "libnativehelper", 104 ], 105 static_libs: [ 106 "android.hardware.drm@1.0-helper", 107 "libdrmvtshelper", 108 ], 109 arch: { 110 arm: { 111 data: [":libvtswidevine-arm-prebuilts"], 112 }, 113 arm64: { 114 data: [":libvtswidevine-arm64-prebuilts",":libvtswidevine-arm-prebuilts"], 115 }, 116 x86: { 117 data: [":libvtswidevine-x86-prebuilts"], 118 }, 119 x86_64: { 120 data: [":libvtswidevine-x86_64-prebuilts",":libvtswidevine-x86-prebuilts"], 121 }, 122 }, 123 test_suites: [ 124 "general-tests", 125 "vts", 126 ], 127} 128