blob: 5a655e79aff08131175633cbaa0282e1a7e142e9 [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 {
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 Shihddf6b962020-01-18 03:01:57 -080026cc_library_static {
Robert Shih5904a722022-01-14 12:43:22 -080027 name: "libvtsclearkey",
28 srcs: [
29 "drm_hal_clearkey_module.cpp",
30 ],
31 static_libs: [
32 "libgtest",
33 ],
34 header_libs: ["drm_hal_vendor_module_headers"],
35 export_header_lib_headers: ["drm_hal_vendor_module_headers"],
36 export_include_dirs: ["."],
37}
38
39cc_library_static {
Robert Shihddf6b962020-01-18 03:01:57 -080040 name: "android.hardware.drm@1.2-vts",
Robert Shih456f3a642019-02-28 13:42:28 -080041 defaults: ["VtsHalTargetTestDefaults"],
Robert Shihddf6b962020-01-18 03:01:57 -080042 local_include_dirs: [
43 "include",
44 ],
Robert Shih456f3a642019-02-28 13:42:28 -080045 srcs: [
46 "drm_hal_clearkey_module.cpp",
47 "drm_hal_common.cpp",
48 "drm_hal_test.cpp",
Robert Shih456f3a642019-02-28 13:42:28 -080049 ],
Robert Shihddf6b962020-01-18 03:01:57 -080050 shared_libs: [
Robert Shih456f3a642019-02-28 13:42:28 -080051 "android.hardware.drm@1.0",
52 "android.hardware.drm@1.1",
53 "android.hardware.drm@1.2",
Robert Shih456f3a642019-02-28 13:42:28 -080054 "android.hidl.allocator@1.0",
55 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080056 "libcrypto",
Robert Shih456f3a642019-02-28 13:42:28 -080057 "libhidlmemory",
58 "libnativehelper",
Robert Shihddf6b962020-01-18 03:01:57 -080059 ],
60 static_libs: [
61 "android.hardware.drm@1.0-helper",
Robert Shihddf6b962020-01-18 03:01:57 -080062 "libdrmvtshelper",
63 ],
64 export_shared_lib_headers: [
65 "android.hardware.drm@1.2",
66 ],
67 export_static_lib_headers: [
68 "android.hardware.drm@1.0-helper",
69 ],
70 export_include_dirs: [
71 "include",
72 ],
73}
74
75cc_test {
76 name: "VtsHalDrmV1_2TargetTest",
77 defaults: ["VtsHalTargetTestDefaults"],
78 srcs: [
79 "drm_hal_test_main.cpp",
80 ],
81 whole_static_libs: [
82 "android.hardware.drm@1.2-vts",
83 ],
84 shared_libs: [
85 "android.hardware.drm@1.0",
86 "android.hardware.drm@1.2",
87 "android.hidl.allocator@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080088 "libcrypto",
Robert Shihddf6b962020-01-18 03:01:57 -080089 "libhidlmemory",
90 ],
91 static_libs: [
92 "android.hardware.drm@1.0-helper",
Robert Shihddf6b962020-01-18 03:01:57 -080093 "libdrmvtshelper",
Robert Shih456f3a642019-02-28 13:42:28 -080094 ],
Dan Shi3d0285b2020-02-25 15:42:48 -080095 arch: {
96 arm: {
97 data: [":libvtswidevine-arm-prebuilts"],
98 },
99 arm64: {
100 data: [":libvtswidevine-arm64-prebuilts"],
101 },
102 x86: {
103 data: [":libvtswidevine-x86-prebuilts"],
104 },
105 x86_64: {
106 data: [":libvtswidevine-x86_64-prebuilts"],
107 },
108 },
Dan Shid5f85882019-10-23 12:45:55 -0700109 test_suites: [
110 "general-tests",
Dan Shi3a8a6502020-03-26 00:06:39 -0700111 "vts",
Dan Shid5f85882019-10-23 12:45:55 -0700112 ],
Robert Shih456f3a642019-02-28 13:42:28 -0800113}