blob: e0c6fa575f6c681b75c71abe8123474643b3ccdb [file] [log] [blame]
Jeff Tinker0ea40692017-01-11 19:42:05 -08001//
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
Bob Badourc22b35b2021-02-23 14:26:20 -080017package {
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
Robert Shih5904a722022-01-14 12:43:22 -080026cc_library_headers {
27 name: "drm_hal_vendor_module_headers",
28 vendor_available: true,
29 export_include_dirs: [
30 "include",
31 ],
32}
33
Robert Shihf2fd4ad2020-01-20 19:39:39 -080034cc_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: [
Dan Shi3d0285b2020-02-25 15:42:48 -080044 "android.hardware.drm@1.0-helper",
Robert Shihf2fd4ad2020-01-20 19:39:39 -080045 ],
46 export_include_dirs: ["include"],
Robert Shih5904a722022-01-14 12:43:22 -080047 export_static_lib_headers: ["android.hardware.drm@1.0-helper"],
Robert Shihf2fd4ad2020-01-20 19:39:39 -080048}
49
Robert Shihec5d8ab2020-01-22 15:09:33 -080050cc_library_static {
51 name: "android.hardware.drm@1.0-vts",
Tri Vo78e89022017-08-03 17:29:21 -070052 defaults: ["VtsHalTargetTestDefaults"],
Robert Shihec5d8ab2020-01-22 15:09:33 -080053 local_include_dirs: [
54 "include",
55 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080056 tidy_timeout_srcs: [
57 "drm_hal_clearkey_test.cpp",
58 "drm_hal_vendor_test.cpp",
59 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -080060 srcs: [
61 "drm_hal_clearkey_test.cpp",
62 "drm_hal_vendor_test.cpp",
Tri Vo78e89022017-08-03 17:29:21 -070063 ],
Robert Shihec5d8ab2020-01-22 15:09:33 -080064 shared_libs: [
Jeff Tinker0ea40692017-01-11 19:42:05 -080065 "android.hardware.drm@1.0",
66 "android.hidl.allocator@1.0",
67 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080068 "libcrypto",
Jeff Tinker0ea40692017-01-11 19:42:05 -080069 "libhidlmemory",
Jeff Tinker0ea40692017-01-11 19:42:05 -080070 "libnativehelper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080071 ],
72 static_libs: [
73 "android.hardware.drm@1.0-helper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080074 "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",
Robert Shihd85c6492020-02-26 15:25:51 -0800101 "libcrypto",
Robert Shihec5d8ab2020-01-22 15:09:33 -0800102 "libhidlmemory",
103 "libnativehelper",
104 ],
105 static_libs: [
106 "android.hardware.drm@1.0-helper",
Robert Shihf2fd4ad2020-01-20 19:39:39 -0800107 "libdrmvtshelper",
Jeff Tinker0ea40692017-01-11 19:42:05 -0800108 ],
Dan Shi3d0285b2020-02-25 15:42:48 -0800109 arch: {
110 arm: {
111 data: [":libvtswidevine-arm-prebuilts"],
112 },
113 arm64: {
chayemme79819a02023-09-28 11:06:16 +0530114 data: [":libvtswidevine-arm64-prebuilts",":libvtswidevine-arm-prebuilts"],
Dan Shi3d0285b2020-02-25 15:42:48 -0800115 },
116 x86: {
117 data: [":libvtswidevine-x86-prebuilts"],
118 },
119 x86_64: {
chayemme79819a02023-09-28 11:06:16 +0530120 data: [":libvtswidevine-x86_64-prebuilts",":libvtswidevine-x86-prebuilts"],
Dan Shi3d0285b2020-02-25 15:42:48 -0800121 },
122 },
Dan Shid5f85882019-10-23 12:45:55 -0700123 test_suites: [
124 "general-tests",
Dan Shi3a8a6502020-03-26 00:06:39 -0700125 "vts",
Dan Shid5f85882019-10-23 12:45:55 -0700126 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -0800127}