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",
25 "-D_FILE_OFFSET_BITS=64",
31 "-Wno-unused-parameter",
34 cppflags: ["-std=c++14"],
38 name: "minigbm_cros_gralloc_defaults",
40 defaults: ["minigbm_defaults"],
43 "libhardware_headers",
44 "libnativebase_headers",
45 "libnativewindow_headers",
49 export_header_lib_headers: [
50 "libhardware_headers",
51 "libnativebase_headers",
52 "libnativewindow_headers",
57 "cros_gralloc/cros_gralloc_buffer.cc",
58 "cros_gralloc/cros_gralloc_helpers.cc",
59 "cros_gralloc/cros_gralloc_driver.cc",
62 static_libs: ["libarect"],
64 export_static_lib_headers: ["libarect"],
80 defaults: ["minigbm_defaults"],
87 export_include_dirs: ["."],
92 defaults: ["gbm_defaults"],
97 // Avoid linking to another host copy of libdrm; this library will cause
98 // binary GPU drivers to be loaded from the host, which might be linked
99 // to a system copy of libdrm, which conflicts with the AOSP one
100 allow_undefined_symbols: true,
101 header_libs: ["libdrm_headers"],
113 name: "libminigbm_cros_gralloc",
114 defaults: ["minigbm_cros_gralloc_defaults"],
115 shared_libs: ["liblog"],
116 static_libs: ["libdrm"],
118 export_include_dirs: ["."],
122 name: "gralloc.minigbm",
123 defaults: ["minigbm_cros_gralloc_defaults"],
124 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
128 name: "gralloc.minigbm_intel",
129 defaults: ["minigbm_cros_gralloc_defaults"],
139 cflags: ["-DDRV_I915"],
140 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
144 name: "gralloc.minigbm_meson",
145 defaults: ["minigbm_cros_gralloc_defaults"],
146 cflags: ["-DDRV_MESON"],
147 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],