1 2/* 3 * Copyright (C) 2020 Arm Limited. 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19package { 20 default_applicable_licenses: ["Android-Apache-2.0"], 21} 22 23cc_library_headers { 24 name: "libgralloc_headers", 25 vendor: true, 26 host_supported: true, 27 export_include_dirs: [ 28 ".", 29 ], 30 header_libs: [ 31 "libsystem_headers", 32 ], 33 export_header_lib_headers: [ 34 "libsystem_headers", 35 ], 36} 37 38cc_library_shared { 39 name: "libGralloc4Wrapper", 40 vendor: true, 41 srcs: [ 42 "libGralloc4Wrapper/wrapper.cpp", 43 "allocator/mali_gralloc_ion.cpp", 44 "allocator/mali_gralloc_shared_memory.cpp", 45 "core/format_info.cpp", 46 "core/mali_gralloc_formats.cpp", 47 "core/mali_gralloc_bufferallocation.cpp", 48 "core/mali_gralloc_bufferdescriptor.cpp", 49 "core/mali_gralloc_reference.cpp", 50 "core/mali_gralloc_debug.cpp", 51 ":libgralloc_hidl_common_shared_metadata", 52 ], 53 cflags: [ 54 "-DGRALLOC_LIBRARY_BUILD=1", 55 ], 56 static_libs: [ 57 "libgralloc_capabilities", 58 ], 59 shared_libs: [ 60 "liblog", 61 "libcutils", 62 "libutils", 63 "libsync", 64 "libhardware", 65 "libhidlbase", 66 "libhidltransport", 67 "libnativewindow", 68 "libion_google", 69 "android.hardware.graphics.common@1.2", 70 "android.hardware.graphics.mapper@4.0", 71 "libdmabufheap", 72 "libgralloctypes", 73 "libdrm", 74 ], 75 header_libs: [ 76 "google_hal_headers", 77 "device_kernel_headers", 78 ], 79 export_include_dirs: ["libGralloc4Wrapper/include"] 80} 81