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