• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2017 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
17cc_library_static {
18    name: "android.hardware.drm@1.1-vts",
19    defaults: ["VtsHalTargetTestDefaults"],
20    include_dirs: [
21        "hardware/interfaces/drm/1.0/vts/functional",
22    ],
23    local_include_dirs: [
24        "include",
25    ],
26    srcs: [
27        "drm_hal_clearkey_test.cpp",
28    ],
29    shared_libs: [
30        "android.hardware.drm@1.0",
31        "android.hardware.drm@1.1",
32        "android.hidl.allocator@1.0",
33        "android.hidl.memory@1.0",
34        "libhidlmemory",
35        "libnativehelper",
36    ],
37    static_libs: [
38        "libdrmvtshelper",
39    ],
40    export_shared_lib_headers: [
41        "android.hardware.drm@1.0",
42        "android.hardware.drm@1.1",
43        "android.hidl.allocator@1.0",
44        "android.hidl.memory@1.0",
45        "libhidlmemory",
46        "libnativehelper",
47    ],
48    export_static_lib_headers: [
49        "libdrmvtshelper",
50    ],
51    export_include_dirs: [
52        "include",
53    ],
54}
55
56cc_test {
57    name: "VtsHalDrmV1_1TargetTest",
58    defaults: ["VtsHalTargetTestDefaults"],
59    srcs: [
60        "drm_hal_test_main.cpp",
61    ],
62    whole_static_libs: [
63        "android.hardware.drm@1.1-vts",
64    ],
65    shared_libs: [
66        "android.hardware.drm@1.1",
67    ],
68    arch: {
69        arm: {
70            data: [":libvtswidevine-arm-prebuilts"],
71        },
72        arm64: {
73            data: [":libvtswidevine-arm64-prebuilts"],
74        },
75        x86: {
76            data: [":libvtswidevine-x86-prebuilts"],
77        },
78        x86_64: {
79            data: [":libvtswidevine-x86_64-prebuilts"],
80        },
81    },
82    test_suites: [
83        "general-tests",
84        "vts",
85    ],
86}
87