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
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: "VtsHalMediaOmxV1_0CommonUtil",
28    srcs: ["media_hidl_test_common.cpp"],
29
30    header_libs: ["media_plugin_headers"],
31    export_header_lib_headers: ["media_plugin_headers"],
32    export_include_dirs: ["."],
33
34    shared_libs: [
35        "libui",
36    ],
37
38    static_libs: [
39        "libgtest",
40        "libhidlmemory",
41        "android.hidl.allocator@1.0",
42        "android.hidl.memory@1.0",
43        "android.hardware.media.omx@1.0",
44        "android.hardware.graphics.common@1.0",
45        "android.hardware.graphics.common@1.1",
46        "android.hardware.graphics.common@1.2",
47    ],
48    export_static_lib_headers: [
49        "android.hardware.graphics.common@1.0",
50        "android.hardware.graphics.common@1.1",
51        "android.hardware.graphics.common@1.2",
52    ],
53}
54
55cc_defaults {
56    name: "VtsHalMediaOmxV1_0Defaults",
57    defaults: ["VtsHalTargetTestDefaults"],
58
59    // Link to these statically as they are not guaranteed to be on the device.
60    static_libs: [
61        "VtsHalMediaOmxV1_0CommonUtil",
62        "android.hardware.graphics.common@1.0",
63        "android.hardware.graphics.common@1.1",
64        "android.hardware.graphics.common@1.2",
65        "android.hardware.graphics.bufferqueue@1.0",
66        "android.hardware.media.omx@1.0",
67        "android.hardware.media@1.0",
68        "android.hidl.allocator@1.0",
69        "android.hidl.memory@1.0",
70        "libhidlmemory",
71    ],
72
73    // TODO(b/64437680): Assume these libs are always available on the device.
74    shared_libs: [
75        "libnativehelper",
76        "libui",
77        "libstagefright_foundation",
78        "libstagefright_omx_utils",
79    ],
80}
81