1// 2// Copyright (C) 2019 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: "android.hardware.drm@1.2-vts", 19 defaults: ["VtsHalTargetTestDefaults"], 20 local_include_dirs: [ 21 "include", 22 ], 23 srcs: [ 24 "drm_hal_clearkey_module.cpp", 25 "drm_hal_common.cpp", 26 "drm_hal_test.cpp", 27 ], 28 shared_libs: [ 29 "android.hardware.drm@1.0", 30 "android.hardware.drm@1.1", 31 "android.hardware.drm@1.2", 32 "android.hidl.allocator@1.0", 33 "android.hidl.memory@1.0", 34 "libhidlmemory", 35 "libnativehelper", 36 ], 37 static_libs: [ 38 "android.hardware.drm@1.0-helper", 39 "libcrypto_static", 40 "libdrmvtshelper", 41 ], 42 export_shared_lib_headers: [ 43 "android.hardware.drm@1.2", 44 ], 45 export_static_lib_headers: [ 46 "android.hardware.drm@1.0-helper", 47 ], 48 export_include_dirs: [ 49 "include", 50 ], 51} 52 53cc_test { 54 name: "VtsHalDrmV1_2TargetTest", 55 defaults: ["VtsHalTargetTestDefaults"], 56 srcs: [ 57 "drm_hal_test_main.cpp", 58 ], 59 whole_static_libs: [ 60 "android.hardware.drm@1.2-vts", 61 ], 62 shared_libs: [ 63 "android.hardware.drm@1.0", 64 "android.hardware.drm@1.2", 65 "android.hidl.allocator@1.0", 66 "libhidlmemory", 67 ], 68 static_libs: [ 69 "android.hardware.drm@1.0-helper", 70 "libcrypto_static", 71 "libdrmvtshelper", 72 ], 73 arch: { 74 arm: { 75 data: [":libvtswidevine-arm-prebuilts"], 76 }, 77 arm64: { 78 data: [":libvtswidevine-arm64-prebuilts"], 79 }, 80 x86: { 81 data: [":libvtswidevine-x86-prebuilts"], 82 }, 83 x86_64: { 84 data: [":libvtswidevine-x86_64-prebuilts"], 85 }, 86 }, 87 test_suites: [ 88 "general-tests", 89 "vts", 90 ], 91} 92