blob: 5ea6ad3c667e501821148b913d6acf7dc90d4c63 [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 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 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -080047 srcs: [
48 "drm_hal_clearkey_test.cpp",
49 "drm_hal_vendor_test.cpp",
Tri Vo78e89022017-08-03 17:29:21 -070050 ],
Robert Shihec5d8ab2020-01-22 15:09:33 -080051 shared_libs: [
Jeff Tinker0ea40692017-01-11 19:42:05 -080052 "android.hardware.drm@1.0",
53 "android.hidl.allocator@1.0",
54 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080055 "libcrypto",
Jeff Tinker0ea40692017-01-11 19:42:05 -080056 "libhidlmemory",
Jeff Tinker0ea40692017-01-11 19:42:05 -080057 "libnativehelper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080058 ],
59 static_libs: [
60 "android.hardware.drm@1.0-helper",
Robert Shihec5d8ab2020-01-22 15:09:33 -080061 "libdrmvtshelper",
62 ],
63 export_shared_lib_headers: [
64 "android.hardware.drm@1.0",
65 "android.hidl.allocator@1.0",
66 "android.hidl.memory@1.0",
67 "libhidlmemory",
68 "libnativehelper",
69 ],
70 export_include_dirs: [
71 "include",
72 ],
73}
74
75cc_test {
76 name: "VtsHalDrmV1_0TargetTest",
77 defaults: ["VtsHalTargetTestDefaults"],
78 srcs: [
79 "drm_hal_test_main.cpp",
80 ],
81 whole_static_libs: [
82 "android.hardware.drm@1.0-vts",
83 ],
84 shared_libs: [
85 "android.hardware.drm@1.0",
86 "android.hidl.allocator@1.0",
87 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080088 "libcrypto",
Robert Shihec5d8ab2020-01-22 15:09:33 -080089 "libhidlmemory",
90 "libnativehelper",
91 ],
92 static_libs: [
93 "android.hardware.drm@1.0-helper",
Robert Shihf2fd4ad2020-01-20 19:39:39 -080094 "libdrmvtshelper",
Jeff Tinker0ea40692017-01-11 19:42:05 -080095 ],
Dan Shi3d0285b2020-02-25 15:42:48 -080096 arch: {
97 arm: {
98 data: [":libvtswidevine-arm-prebuilts"],
99 },
100 arm64: {
101 data: [":libvtswidevine-arm64-prebuilts"],
102 },
103 x86: {
104 data: [":libvtswidevine-x86-prebuilts"],
105 },
106 x86_64: {
107 data: [":libvtswidevine-x86_64-prebuilts"],
108 },
109 },
Dan Shid5f85882019-10-23 12:45:55 -0700110 test_suites: [
111 "general-tests",
Dan Shi3a8a6502020-03-26 00:06:39 -0700112 "vts",
Dan Shid5f85882019-10-23 12:45:55 -0700113 ],
Jeff Tinker0ea40692017-01-11 19:42:05 -0800114}