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    recovery_available: true,
28    vendor_available: true,
29
30    // Added because codec2 is double_loadable.
31    // See b/147147883, b/147147992
32    double_loadable:true,
33    apex_available: [
34        "//apex_available:platform",
35        "//apex_available:anyapex",
36    ],
37    min_sdk_version: "29",
38    cflags: [
39        "-Wall",
40        "-Werror",
41    ],
42    local_include_dirs: [
43        "include",
44    ],
45    export_include_dirs: [
46        "include",
47    ],
48    static_libs: [
49        "libbase",
50        "libion",
51    ],
52    shared_libs: [
53        "liblog",
54    ],
55    export_static_lib_headers: [
56        "libbase",
57        "libion",
58    ],
59}
60