blob: 73612df83dda9cc0c8c3c45d2674d397eb0ab4bd [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 {
Yihan Dong11d15482024-10-12 09:02:12 +000018 default_team: "trendy_team_android_media_drm",
Bob Badourc22b35b2021-02-23 14:26:20 -080019 // 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
Robert Shih5904a722022-01-14 12:43:22 -080027cc_library_headers {
28 name: "drm_hal_vendor_module_headers",
29 vendor_available: true,
30 export_include_dirs: [
31 "include",
32 ],
33}
34
Robert Shihf2fd4ad2020-01-20 19:39:39 -080035cc_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: [
Dan Shi3d0285b2020-02-25 15:42:48 -080045 "android.hardware.drm@1.0-helper",
Robert Shihf2fd4ad2020-01-20 19:39:39 -080046 ],
47 export_include_dirs: ["include"],
Robert Shih5904a722022-01-14 12:43:22 -080048 export_static_lib_headers: ["android.hardware.drm@1.0-helper"],
Robert Shihf2fd4ad2020-01-20 19:39:39 -080049}
50
Robert Shihec5d8ab2020-01-22 15:09:33 -080051cc_library_static {
52 name: "android.hardware.drm@1.0-vts",
Tri Vo78e89022017-08-03 17:29:21 -070053 defaults: ["VtsHalTargetTestDefaults"],
Robert Shihec5d8ab2020-01-22 15:09:33 -080054 local_include_dirs: [
55 "include",
56 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080057 tidy_timeout_srcs: [
58 "drm_hal_clearkey_test.cpp",
59 "drm_hal_vendor_test.cpp",
60 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -080061 srcs: [
62 "drm_hal_clearkey_test.cpp",
63 "drm_hal_vendor_test.cpp",
Tri Vo78e89022017-08-03 17:29:21 -070064 ],
Robert Shihec5d8ab2020-01-22 15:09:33 -080065 shared_libs: [
Jeff Tinker0ea40692017-01-11 19:42:05 -080066 "android.hardware.drm@1.0",
67 "android.hidl.allocator@1.0",
68 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080069 "libcrypto",
Jeff Tinker0ea40692017-01-11 19:42:05 -080070 "libhidlmemory",
Jeff Tinker0ea40692017-01-11 19:42:05 -080071 "libnativehelper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080072 ],
73 static_libs: [
74 "android.hardware.drm@1.0-helper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080075 "libdrmvtshelper",
76 ],
77 export_shared_lib_headers: [
78 "android.hardware.drm@1.0",
79 "android.hidl.allocator@1.0",
80 "android.hidl.memory@1.0",
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 "android.hardware.drm@1.0-vts",
97 ],
98 shared_libs: [
99 "android.hardware.drm@1.0",
100 "android.hidl.allocator@1.0",
101 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -0800102 "libcrypto",
Robert Shihec5d8ab2020-01-22 15:09:33 -0800103 "libhidlmemory",
104 "libnativehelper",
105 ],
106 static_libs: [
107 "android.hardware.drm@1.0-helper",
Robert Shihf2fd4ad2020-01-20 19:39:39 -0800108 "libdrmvtshelper",
Jeff Tinker0ea40692017-01-11 19:42:05 -0800109 ],
Dan Shi3d0285b2020-02-25 15:42:48 -0800110 arch: {
111 arm: {
112 data: [":libvtswidevine-arm-prebuilts"],
113 },
114 arm64: {
chayemme79819a02023-09-28 11:06:16 +0530115 data: [":libvtswidevine-arm64-prebuilts",":libvtswidevine-arm-prebuilts"],
Dan Shi3d0285b2020-02-25 15:42:48 -0800116 },
117 x86: {
118 data: [":libvtswidevine-x86-prebuilts"],
119 },
120 x86_64: {
chayemme79819a02023-09-28 11:06:16 +0530121 data: [":libvtswidevine-x86_64-prebuilts",":libvtswidevine-x86-prebuilts"],
Dan Shi3d0285b2020-02-25 15:42:48 -0800122 },
123 },
Dan Shid5f85882019-10-23 12:45:55 -0700124 test_suites: [
125 "general-tests",
Dan Shi3a8a6502020-03-26 00:06:39 -0700126 "vts",
Dan Shid5f85882019-10-23 12:45:55 -0700127 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -0800128}