1//
2// Copyright (C) 2020 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_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_library {
22   srcs: [
23        "BufferAllocator.cpp",
24        "BufferAllocatorWrapper.cpp",
25     ],
26    name: "libdmabufheap",
27    vendor_available: true,
28
29    vndk: {
30        enabled: true,
31        support_system_process: true,
32    },
33
34    // Added because codec2 is double_loadable.
35    // See b/147147883, b/147147992
36    double_loadable:true,
37    apex_available: [
38        "//apex_available:platform",
39        "//apex_available:anyapex",
40    ],
41    min_sdk_version: "29",
42    cflags: [
43        "-Wall",
44        "-Werror",
45    ],
46    local_include_dirs: [
47        "include",
48    ],
49    export_include_dirs: [
50        "include",
51    ],
52    static_libs: [
53        "libbase",
54        "libion",
55        "libutils",
56    ],
57    shared_libs: [
58        "liblog",
59    ],
60    export_static_lib_headers: [
61        "libbase",
62        "libion",
63    ],
64}
65