• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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	defaults: [
42		"arm_gralloc_defaults",
43	],
44	srcs: [
45		"libGralloc4Wrapper/wrapper.cpp",
46		"allocator/mali_gralloc_ion.cpp",
47		"core/format_info.cpp",
48		"core/mali_gralloc_formats.cpp",
49		"core/mali_gralloc_bufferallocation.cpp",
50		"core/mali_gralloc_bufferdescriptor.cpp",
51		"core/mali_gralloc_reference.cpp",
52		":libgralloc_hidl_common_shared_metadata",
53	],
54	cflags: [
55		"-DGRALLOC_LIBRARY_BUILD=1",
56		"-Wthread-safety",
57	],
58	static_libs: [
59		"libgralloc_capabilities",
60	],
61	shared_libs: [
62		"liblog",
63		"libcutils",
64		"libutils",
65		"libsync",
66		"libhardware",
67		"libhidlbase",
68		"libhidltransport",
69		"libnativewindow",
70		"android.hardware.graphics.common@1.2",
71		"android.hardware.graphics.common-V4-ndk",
72		"android.hardware.graphics.mapper@4.0",
73		"libdmabufheap",
74		"libgralloctypes",
75		"libdrm",
76	],
77	header_libs: [
78		"google_hal_headers",
79		"device_kernel_headers",
80	],
81	export_include_dirs: ["libGralloc4Wrapper/include"]
82}
83