• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2021 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
17package {
18    default_team: "trendy_team_android_media_drm",
19    // 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
27cc_library_static {
28    name: "android.hardware.drm@1.4-vts",
29    defaults: ["VtsHalTargetTestDefaults"],
30    local_include_dirs: [
31        "include",
32    ],
33    srcs: [
34        "drm_hal_test.cpp",
35    ],
36    shared_libs: [
37        "android.hardware.drm@1.0",
38        "android.hardware.drm@1.1",
39        "android.hardware.drm@1.2",
40        "android.hardware.drm@1.3",
41        "android.hardware.drm@1.4",
42        "android.hidl.allocator@1.0",
43        "android.hidl.memory@1.0",
44        "libhidlmemory",
45        "libnativehelper",
46    ],
47    static_libs: [
48        "android.hardware.drm@1.0-helper",
49        "android.hardware.drm@1.2-vts",
50        "libdrmvtshelper",
51    ],
52    export_static_lib_headers: [
53        "android.hardware.drm@1.2-vts",
54    ],
55    export_include_dirs: [
56        "include",
57    ],
58}
59
60cc_test {
61    name: "VtsHalDrmV1_4TargetTest",
62    defaults: ["VtsHalTargetTestDefaults"],
63    include_dirs: ["hardware/interfaces/drm/1.0/vts/functional"],
64    srcs: [
65        "drm_hal_test_main.cpp",
66    ],
67    whole_static_libs: [
68        "android.hardware.drm@1.4-vts",
69    ],
70    shared_libs: [
71        "android.hardware.drm@1.0",
72        "android.hardware.drm@1.1",
73        "android.hardware.drm@1.2",
74        "android.hardware.drm@1.3",
75        "android.hardware.drm@1.4",
76        "android.hidl.allocator@1.0",
77        "android.hidl.memory@1.0",
78        "libcrypto",
79        "libhidlmemory",
80        "libnativehelper",
81    ],
82    static_libs: [
83        "android.hardware.drm@1.0-helper",
84        "android.hardware.drm@1.2-vts",
85        "libdrmvtshelper",
86    ],
87    arch: {
88        arm: {
89            data: [":libvtswidevine-arm-prebuilts"],
90        },
91        arm64: {
92            data: [":libvtswidevine-arm64-prebuilts",":libvtswidevine-arm-prebuilts"],
93        },
94        x86: {
95            data: [":libvtswidevine-x86-prebuilts"],
96        },
97        x86_64: {
98            data: [":libvtswidevine-x86_64-prebuilts",":libvtswidevine-x86-prebuilts"],
99        },
100    },
101    test_suites: [
102        "general-tests",
103        "vts",
104    ],
105}
106