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",
10 "dri_generic_driver.c",
23 "cros_gralloc/gralloc0/drm_framebuffer.c",
26 include_dirs: ["external/mesa/include"],
31 "-D_FILE_OFFSET_BITS=64",
36 "-Wno-unused-parameter",
39 cppflags: ["-std=c++14"],
43 cflags: ["-DDRI_DRIVER_DIR=/vendor/lib/dri"],
46 cflags: ["-DDRI_DRIVER_DIR=/vendor/lib64/dri"],
52 name: "minigbm_cros_gralloc_defaults",
54 defaults: ["minigbm_defaults"],
57 "libhardware_headers",
58 "libnativebase_headers",
59 "libnativewindow_headers",
63 export_header_lib_headers: [
64 "libhardware_headers",
65 "libnativebase_headers",
66 "libnativewindow_headers",
71 "cros_gralloc/cros_gralloc_buffer.cc",
72 "cros_gralloc/cros_gralloc_helpers.cc",
73 "cros_gralloc/cros_gralloc_driver.cc",
76 static_libs: ["libarect"],
78 whole_static_libs: ["libmesa_loader"],
80 export_static_lib_headers: ["libarect"],
96 defaults: ["minigbm_defaults"],
103 export_include_dirs: ["."],
107 name: "libminigbm_cros_gralloc",
108 defaults: ["minigbm_cros_gralloc_defaults"],
109 shared_libs: ["liblog"],
110 static_libs: ["libdrm"],
112 export_include_dirs: ["."],
116 name: "gralloc.minigbm",
117 defaults: ["minigbm_cros_gralloc_defaults"],
118 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
119 relative_install_path: "hw",
123 name: "gralloc.minigbm_intel",
124 defaults: ["minigbm_cros_gralloc_defaults"],
134 relative_install_path: "hw",
135 cflags: ["-DDRV_I915"],
136 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
140 name: "gralloc.minigbm_meson",
141 defaults: ["minigbm_cros_gralloc_defaults"],
142 relative_install_path: "hw",
143 cflags: ["-DDRV_MESON"],
144 srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],