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