2 * Copyright 2020 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
8 name: "minigbm_defaults",
34 "-D_FILE_OFFSET_BITS=64",
40 "-Wno-unused-parameter",
43 cppflags: ["-std=c++14"],
47 name: "minigbm_gralloc_defaults",
49 defaults: ["minigbm_defaults"],
52 "libhardware_headers",
53 "libnativebase_headers",
54 "libnativewindow_headers",
58 export_header_lib_headers: [
59 "libhardware_headers",
60 "libnativebase_headers",
61 "libnativewindow_headers",
66 "cros_gralloc/cros_gralloc_buffer.cc",
67 "cros_gralloc/cros_gralloc_helpers.cc",
68 "cros_gralloc/cros_gralloc_driver.cc",
71 static_libs: ["libarect"],
73 export_static_lib_headers: ["libarect"],
85 relative_install_path: "hw",
91 defaults: ["minigbm_defaults"],
98 export_include_dirs: ["."],
103 defaults: ["gbm_defaults"],
104 host_supported: true,
108 // Avoid linking to another host copy of libdrm; this library will cause
109 // binary GPU drivers to be loaded from the host, which might be linked
110 // to a system copy of libdrm, which conflicts with the AOSP one
111 allow_undefined_symbols: true,
112 header_libs: ["libdrm"],
124 name: "libminigbm_gralloc",
125 defaults: ["minigbm_gralloc_defaults"],
126 shared_libs: ["liblog"],
127 static_libs: ["libdrm"],
129 export_include_dirs: ["."],
133 name: "gralloc.minigbm",
134 defaults: ["minigbm_gralloc_defaults"],
135 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
139 name: "gralloc.minigbm_intel",
140 defaults: ["minigbm_gralloc_defaults"],
150 cflags: ["-DDRV_I915"],
151 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
155 name: "gralloc.minigbm_meson",
156 defaults: ["minigbm_gralloc_defaults"],
157 cflags: ["-DDRV_MESON"],
158 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],