blob: 8ca6a656ca0495d2308cb8fe0c651bfc200147e8 [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 Badourb224b362021-02-12 20:13:01 -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 Shihf2fd4ad2020-01-20 19:39:39 -080026cc_library_static {
27 name: "libdrmvtshelper",
28 defaults: ["VtsHalTargetTestDefaults"],
29 local_include_dirs: [
30 "include",
31 ],
32 srcs: [
33 "vendor_modules.cpp",
34 ],
35 static_libs: [
Dan Shi3d0285b2020-02-25 15:42:48 -080036 "android.hardware.drm@1.0-helper",
Robert Shihf2fd4ad2020-01-20 19:39:39 -080037 ],
38 export_include_dirs: ["include"],
39}
40
Robert Shihec5d8ab2020-01-22 15:09:33 -080041cc_library_static {
42 name: "android.hardware.drm@1.0-vts",
Tri Vo78e89022017-08-03 17:29:21 -070043 defaults: ["VtsHalTargetTestDefaults"],
Robert Shihec5d8ab2020-01-22 15:09:33 -080044 local_include_dirs: [
45 "include",
46 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080047 tidy_timeout_srcs: [
48 "drm_hal_clearkey_test.cpp",
49 "drm_hal_vendor_test.cpp",
50 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -080051 srcs: [
52 "drm_hal_clearkey_test.cpp",
53 "drm_hal_vendor_test.cpp",
Tri Vo78e89022017-08-03 17:29:21 -070054 ],
Robert Shihec5d8ab2020-01-22 15:09:33 -080055 shared_libs: [
Jeff Tinker0ea40692017-01-11 19:42:05 -080056 "android.hardware.drm@1.0",
57 "android.hidl.allocator@1.0",
58 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080059 "libcrypto",
Jeff Tinker0ea40692017-01-11 19:42:05 -080060 "libhidlmemory",
Jeff Tinker0ea40692017-01-11 19:42:05 -080061 "libnativehelper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080062 ],
63 static_libs: [
64 "android.hardware.drm@1.0-helper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080065 "libdrmvtshelper",
66 ],
67 export_shared_lib_headers: [
68 "android.hardware.drm@1.0",
69 "android.hidl.allocator@1.0",
70 "android.hidl.memory@1.0",
71 "libhidlmemory",
72 "libnativehelper",
73 ],
74 export_include_dirs: [
75 "include",
76 ],
77}
78
79cc_test {
80 name: "VtsHalDrmV1_0TargetTest",
81 defaults: ["VtsHalTargetTestDefaults"],
82 srcs: [
83 "drm_hal_test_main.cpp",
84 ],
85 whole_static_libs: [
86 "android.hardware.drm@1.0-vts",
87 ],
88 shared_libs: [
89 "android.hardware.drm@1.0",
90 "android.hidl.allocator@1.0",
91 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080092 "libcrypto",
Robert Shihec5d8ab2020-01-22 15:09:33 -080093 "libhidlmemory",
94 "libnativehelper",
95 ],
96 static_libs: [
97 "android.hardware.drm@1.0-helper",
Robert Shihf2fd4ad2020-01-20 19:39:39 -080098 "libdrmvtshelper",
Jeff Tinker0ea40692017-01-11 19:42:05 -080099 ],
Dan Shi3d0285b2020-02-25 15:42:48 -0800100 arch: {
101 arm: {
102 data: [":libvtswidevine-arm-prebuilts"],
103 },
104 arm64: {
105 data: [":libvtswidevine-arm64-prebuilts"],
106 },
107 x86: {
108 data: [":libvtswidevine-x86-prebuilts"],
109 },
110 x86_64: {
111 data: [":libvtswidevine-x86_64-prebuilts"],
112 },
113 },
Dan Shid5f85882019-10-23 12:45:55 -0700114 test_suites: [
115 "general-tests",
Dan Shiba894f82020-03-26 00:06:39 -0700116 "vts",
Dan Shid5f85882019-10-23 12:45:55 -0700117 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -0800118}