• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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
17package {
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
26cc_library_static {
27    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 {
40    name: "android.hardware.drm@1.2-vts",
41    defaults: ["VtsHalTargetTestDefaults"],
42    local_include_dirs: [
43        "include",
44    ],
45    tidy_timeout_srcs: [
46        "drm_hal_test.cpp",
47    ],
48    srcs: [
49        "drm_hal_clearkey_module.cpp",
50        "drm_hal_common.cpp",
51        "drm_hal_test.cpp",
52    ],
53    shared_libs: [
54        "android.hardware.drm@1.0",
55        "android.hardware.drm@1.1",
56        "android.hardware.drm@1.2",
57        "android.hidl.allocator@1.0",
58        "android.hidl.memory@1.0",
59        "libcrypto",
60        "libhidlmemory",
61        "libnativehelper",
62    ],
63    static_libs: [
64        "android.hardware.drm@1.0-helper",
65        "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",
91        "libcrypto",
92        "libhidlmemory",
93    ],
94    static_libs: [
95        "android.hardware.drm@1.0-helper",
96        "libdrmvtshelper",
97    ],
98    arch: {
99        arm: {
100            data: [":libvtswidevine-arm-prebuilts"],
101        },
102        arm64: {
103            data: [":libvtswidevine-arm64-prebuilts",":libvtswidevine-arm-prebuilts"],
104        },
105        x86: {
106            data: [":libvtswidevine-x86-prebuilts"],
107        },
108        x86_64: {
109            data: [":libvtswidevine-x86_64-prebuilts",":libvtswidevine-x86-prebuilts"],
110        },
111    },
112    test_suites: [
113        "general-tests",
114        "vts",
115    ],
116}
117