blob: 9a450514ffb775c4b55c6b1d36c917c8c289dc38 [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 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080045 tidy_timeout_srcs: [
46 "drm_hal_test.cpp",
47 ],
Robert Shih456f3a642019-02-28 13:42:28 -080048 srcs: [
49 "drm_hal_clearkey_module.cpp",
50 "drm_hal_common.cpp",
51 "drm_hal_test.cpp",
Robert Shih456f3a642019-02-28 13:42:28 -080052 ],
Robert Shihddf6b962020-01-18 03:01:57 -080053 shared_libs: [
Robert Shih456f3a642019-02-28 13:42:28 -080054 "android.hardware.drm@1.0",
55 "android.hardware.drm@1.1",
56 "android.hardware.drm@1.2",
Robert Shih456f3a642019-02-28 13:42:28 -080057 "android.hidl.allocator@1.0",
58 "android.hidl.memory@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080059 "libcrypto",
Robert Shih456f3a642019-02-28 13:42:28 -080060 "libhidlmemory",
61 "libnativehelper",
Robert Shihddf6b962020-01-18 03:01:57 -080062 ],
63 static_libs: [
64 "android.hardware.drm@1.0-helper",
Robert Shihddf6b962020-01-18 03:01:57 -080065 "libdrmvtshelper",
66 ],
67 export_shared_lib_headers: [
68 "android.hardware.drm@1.2",
69 ],
70 export_static_lib_headers: [
71 "android.hardware.drm@1.0-helper",
72 ],
73 export_include_dirs: [
74 "include",
75 ],
76}
77
78cc_test {
79 name: "VtsHalDrmV1_2TargetTest",
80 defaults: ["VtsHalTargetTestDefaults"],
81 srcs: [
82 "drm_hal_test_main.cpp",
83 ],
84 whole_static_libs: [
85 "android.hardware.drm@1.2-vts",
86 ],
87 shared_libs: [
88 "android.hardware.drm@1.0",
89 "android.hardware.drm@1.2",
90 "android.hidl.allocator@1.0",
Robert Shihd85c6492020-02-26 15:25:51 -080091 "libcrypto",
Robert Shihddf6b962020-01-18 03:01:57 -080092 "libhidlmemory",
93 ],
94 static_libs: [
95 "android.hardware.drm@1.0-helper",
Robert Shihddf6b962020-01-18 03:01:57 -080096 "libdrmvtshelper",
Robert Shih456f3a642019-02-28 13:42:28 -080097 ],
Dan Shi3d0285b2020-02-25 15:42:48 -080098 arch: {
99 arm: {
100 data: [":libvtswidevine-arm-prebuilts"],
101 },
102 arm64: {
103 data: [":libvtswidevine-arm64-prebuilts"],
104 },
105 x86: {
106 data: [":libvtswidevine-x86-prebuilts"],
107 },
108 x86_64: {
109 data: [":libvtswidevine-x86_64-prebuilts"],
110 },
111 },
Dan Shid5f85882019-10-23 12:45:55 -0700112 test_suites: [
113 "general-tests",
Dan Shi3a8a6502020-03-26 00:06:39 -0700114 "vts",
Dan Shid5f85882019-10-23 12:45:55 -0700115 ],
Robert Shih456f3a642019-02-28 13:42:28 -0800116}