1 // Use of this source code is governed by a BSD-style license that can be
2 // found in the LICENSE file.
5 name: "minigbm_defaults",
31 "-D_FILE_OFFSET_BITS=64",
37 "-Wno-unused-parameter",
40 cppflags: ["-std=c++14"],
44 name: "minigbm_cros_gralloc_defaults",
46 defaults: ["minigbm_defaults"],
49 "libhardware_headers",
50 "libnativebase_headers",
51 "libnativewindow_headers",
55 export_header_lib_headers: [
56 "libhardware_headers",
57 "libnativebase_headers",
58 "libnativewindow_headers",
63 "cros_gralloc/cros_gralloc_buffer.cc",
64 "cros_gralloc/cros_gralloc_helpers.cc",
65 "cros_gralloc/cros_gralloc_driver.cc",
68 static_libs: ["libarect"],
70 export_static_lib_headers: ["libarect"],
86 defaults: ["minigbm_defaults"],
93 export_include_dirs: ["."],
98 defaults: ["gbm_defaults"],
103 // Avoid linking to another host copy of libdrm; this library will cause
104 // binary GPU drivers to be loaded from the host, which might be linked
105 // to a system copy of libdrm, which conflicts with the AOSP one
106 allow_undefined_symbols: true,
107 header_libs: ["libdrm"],
119 name: "libminigbm_cros_gralloc",
120 defaults: ["minigbm_cros_gralloc_defaults"],
121 shared_libs: ["liblog"],
122 static_libs: ["libdrm"],
124 export_include_dirs: ["."],
128 name: "gralloc.minigbm",
129 defaults: ["minigbm_cros_gralloc_defaults"],
130 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
134 name: "gralloc.minigbm_intel",
135 defaults: ["minigbm_cros_gralloc_defaults"],
145 cflags: ["-DDRV_I915"],
146 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
150 name: "gralloc.minigbm_meson",
151 defaults: ["minigbm_cros_gralloc_defaults"],
152 cflags: ["-DDRV_MESON"],
153 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],