• 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    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: "libvtsclearkey",
29    srcs: [
30        "drm_hal_clearkey_module.cpp",
31    ],
32    static_libs: [
33        "libgtest",
34    ],
35    header_libs: ["drm_hal_vendor_module_headers"],
36    export_header_lib_headers: ["drm_hal_vendor_module_headers"],
37    export_include_dirs: ["."],
38}
39
40cc_library_static {
41    name: "android.hardware.drm@1.2-vts",
42    defaults: ["VtsHalTargetTestDefaults"],
43    local_include_dirs: [
44        "include",
45    ],
46    tidy_timeout_srcs: [
47        "drm_hal_test.cpp",
48    ],
49    srcs: [
50        "drm_hal_clearkey_module.cpp",
51        "drm_hal_common.cpp",
52        "drm_hal_test.cpp",
53    ],
54    shared_libs: [
55        "android.hardware.drm@1.0",
56        "android.hardware.drm@1.1",
57        "android.hardware.drm@1.2",
58        "android.hidl.allocator@1.0",
59        "android.hidl.memory@1.0",
60        "libcrypto",
61        "libhidlmemory",
62        "libnativehelper",
63    ],
64    static_libs: [
65        "android.hardware.drm@1.0-helper",
66        "libdrmvtshelper",
67    ],
68    export_shared_lib_headers: [
69        "android.hardware.drm@1.2",
70    ],
71    export_static_lib_headers: [
72        "android.hardware.drm@1.0-helper",
73    ],
74    export_include_dirs: [
75        "include",
76    ],
77}
78
79cc_test {
80    name: "VtsHalDrmV1_2TargetTest",
81    defaults: ["VtsHalTargetTestDefaults"],
82    srcs: [
83        "drm_hal_test_main.cpp",
84    ],
85    whole_static_libs: [
86        "android.hardware.drm@1.2-vts",
87    ],
88    shared_libs: [
89        "android.hardware.drm@1.0",
90        "android.hardware.drm@1.2",
91        "android.hidl.allocator@1.0",
92        "libcrypto",
93        "libhidlmemory",
94    ],
95    static_libs: [
96        "android.hardware.drm@1.0-helper",
97        "libdrmvtshelper",
98    ],
99    arch: {
100        arm: {
101            data: [":libvtswidevine-arm-prebuilts"],
102        },
103        arm64: {
104            data: [":libvtswidevine-arm64-prebuilts",":libvtswidevine-arm-prebuilts"],
105        },
106        x86: {
107            data: [":libvtswidevine-x86-prebuilts"],
108        },
109        x86_64: {
110            data: [":libvtswidevine-x86_64-prebuilts",":libvtswidevine-x86-prebuilts"],
111        },
112    },
113    test_suites: [
114        "general-tests",
115        "vts",
116    ],
117}
118