blob: f6fb528972ec5366d90303aed9e2e45b4daca6ae [file] [log] [blame]
Robert Shih456f3a642019-02-28 13:42:28 -08001//
2// Copyright (C) 2019 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 Shihddf6b962020-01-18 03:01:57 -080027cc_library_static {
Robert Shih5904a722022-01-14 12:43:22 -080028 name: "libvtsclearkey",
29 srcs: [
30 "drm_hal_clearkey_module.cpp",
31 ],
32 static_libs: [
33 "libgtest",
34 ],
35 header_libs: ["drm_hal_vendor_module_headers"],
36 export_header_lib_headers: ["drm_hal_vendor_module_headers"],
37 export_include_dirs: ["."],
38}
39
40cc_library_static {
Robert Shihddf6b962020-01-18 03:01:57 -080041 name: "android.hardware.drm@1.2-vts",
Robert Shih456f3a642019-02-28 13:42:28 -080042 defaults: ["VtsHalTargetTestDefaults"],
Robert Shihddf6b962020-01-18 03:01:57 -080043 local_include_dirs: [
44 "include",
45 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080046 tidy_timeout_srcs: [
47 "drm_hal_test.cpp",
48 ],
Robert Shih456f3a642019-02-28 13:42:28 -080049 srcs: [
50 "drm_hal_clearkey_module.cpp",
51 "drm_hal_common.cpp",
52 "drm_hal_test.cpp",
Robert Shih456f3a642019-02-28 13:42:28 -080053 ],
Robert Shihddf6b962020-01-18 03:01:57 -080054 shared_libs: [
Robert Shih456f3a642019-02-28 13:42:28 -080055 "android.hardware.drm@1.0",
56 "android.hardware.drm@1.1",
57 "android.hardware.drm@1.2",
Robert Shih456f3a642019-02-28 13:42:28 -080058 "android.hidl.allocator@1.0",
59 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080060 "libcrypto",
Robert Shih456f3a642019-02-28 13:42:28 -080061 "libhidlmemory",
62 "libnativehelper",
Robert Shihddf6b962020-01-18 03:01:57 -080063 ],
64 static_libs: [
65 "android.hardware.drm@1.0-helper",
Robert Shihddf6b962020-01-18 03:01:57 -080066 "libdrmvtshelper",
67 ],
68 export_shared_lib_headers: [
69 "android.hardware.drm@1.2",
70 ],
71 export_static_lib_headers: [
72 "android.hardware.drm@1.0-helper",
73 ],
74 export_include_dirs: [
75 "include",
76 ],
77}
78
79cc_test {
80 name: "VtsHalDrmV1_2TargetTest",
81 defaults: ["VtsHalTargetTestDefaults"],
82 srcs: [
83 "drm_hal_test_main.cpp",
84 ],
85 whole_static_libs: [
86 "android.hardware.drm@1.2-vts",
87 ],
88 shared_libs: [
89 "android.hardware.drm@1.0",
90 "android.hardware.drm@1.2",
91 "android.hidl.allocator@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080092 "libcrypto",
Robert Shihddf6b962020-01-18 03:01:57 -080093 "libhidlmemory",
94 ],
95 static_libs: [
96 "android.hardware.drm@1.0-helper",
Robert Shihddf6b962020-01-18 03:01:57 -080097 "libdrmvtshelper",
Robert Shih456f3a642019-02-28 13:42:28 -080098 ],
Dan Shi3d0285b2020-02-25 15:42:48 -080099 arch: {
100 arm: {
101 data: [":libvtswidevine-arm-prebuilts"],
102 },
103 arm64: {
chayemme79819a02023-09-28 11:06:16 +0530104 data: [":libvtswidevine-arm64-prebuilts",":libvtswidevine-arm-prebuilts"],
Dan Shi3d0285b2020-02-25 15:42:48 -0800105 },
106 x86: {
107 data: [":libvtswidevine-x86-prebuilts"],
108 },
109 x86_64: {
chayemme79819a02023-09-28 11:06:16 +0530110 data: [":libvtswidevine-x86_64-prebuilts",":libvtswidevine-x86-prebuilts"],
Dan Shi3d0285b2020-02-25 15:42:48 -0800111 },
112 },
Dan Shid5f85882019-10-23 12:45:55 -0700113 test_suites: [
114 "general-tests",
Dan Shi3a8a6502020-03-26 00:06:39 -0700115 "vts",
Dan Shid5f85882019-10-23 12:45:55 -0700116 ],
Robert Shih456f3a642019-02-28 13:42:28 -0800117}