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
16cc_defaults {
17    name: "dmabufinfo_defaults",
18    static_libs: [
19        "libbase",
20        "libprocinfo",
21    ],
22    shared_libs: [
23        "liblog",
24    ],
25
26    cflags: [
27        "-Wall",
28        "-Werror",
29        "-Wextra",
30    ],
31}
32
33cc_library_static {
34    name: "libdmabufinfo",
35    vendor_available: true,
36    host_supported: true,
37    native_bridge_supported: true,
38    defaults: ["dmabufinfo_defaults"],
39    export_include_dirs: ["include"],
40    srcs: [
41         "dmabufinfo.cpp",
42    ],
43    target: {
44        darwin: {
45            enabled: false,
46        },
47    },
48
49    apex_available: [
50        "//apex_available:platform",
51        "com.android.art.release",
52        "com.android.art.debug",
53    ],
54}
55
56cc_test {
57    name: "dmabufinfo_test",
58    defaults: ["dmabufinfo_defaults"],
59    srcs: [
60         "dmabufinfo_test.cpp"
61    ],
62
63    static_libs: [
64        "libc++fs",
65        "libdmabufinfo",
66        "libion",
67        "libmeminfo",
68    ],
69}
70