blob: a35d41d4ab158bf7576ea90333cc7bc011d8d851 [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 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -080056 srcs: [
57 "drm_hal_clearkey_test.cpp",
58 "drm_hal_vendor_test.cpp",
Tri Vo78e89022017-08-03 17:29:21 -070059 ],
Robert Shihec5d8ab2020-01-22 15:09:33 -080060 shared_libs: [
Jeff Tinker0ea40692017-01-11 19:42:05 -080061 "android.hardware.drm@1.0",
62 "android.hidl.allocator@1.0",
63 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080064 "libcrypto",
Jeff Tinker0ea40692017-01-11 19:42:05 -080065 "libhidlmemory",
Jeff Tinker0ea40692017-01-11 19:42:05 -080066 "libnativehelper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080067 ],
68 static_libs: [
69 "android.hardware.drm@1.0-helper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080070 "libdrmvtshelper",
71 ],
72 export_shared_lib_headers: [
73 "android.hardware.drm@1.0",
74 "android.hidl.allocator@1.0",
75 "android.hidl.memory@1.0",
76 "libhidlmemory",
77 "libnativehelper",
78 ],
79 export_include_dirs: [
80 "include",
81 ],
82}
83
84cc_test {
85 name: "VtsHalDrmV1_0TargetTest",
86 defaults: ["VtsHalTargetTestDefaults"],
87 srcs: [
88 "drm_hal_test_main.cpp",
89 ],
90 whole_static_libs: [
91 "android.hardware.drm@1.0-vts",
92 ],
93 shared_libs: [
94 "android.hardware.drm@1.0",
95 "android.hidl.allocator@1.0",
96 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080097 "libcrypto",
Robert Shihec5d8ab2020-01-22 15:09:33 -080098 "libhidlmemory",
99 "libnativehelper",
100 ],
101 static_libs: [
102 "android.hardware.drm@1.0-helper",
Robert Shihf2fd4ad2020-01-20 19:39:39 -0800103 "libdrmvtshelper",
Jeff Tinker0ea40692017-01-11 19:42:05 -0800104 ],
Dan Shi3d0285b2020-02-25 15:42:48 -0800105 arch: {
106 arm: {
107 data: [":libvtswidevine-arm-prebuilts"],
108 },
109 arm64: {
110 data: [":libvtswidevine-arm64-prebuilts"],
111 },
112 x86: {
113 data: [":libvtswidevine-x86-prebuilts"],
114 },
115 x86_64: {
116 data: [":libvtswidevine-x86_64-prebuilts"],
117 },
118 },
Dan Shid5f85882019-10-23 12:45:55 -0700119 test_suites: [
120 "general-tests",
Dan Shi3a8a6502020-03-26 00:06:39 -0700121 "vts",
Dan Shid5f85882019-10-23 12:45:55 -0700122 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -0800123}