"-Wcast-align",
"-Wno-unused-parameter",
],
+
cppflags: ["-std=c++14"],
- vendor: true,
+ shared_libs: [
+ "libdrm",
+ ],
+}
+
+cc_defaults {
+ name: "minigbm_cros_gralloc_defaults",
+
+ defaults: ["minigbm_defaults"],
header_libs: [
"libhardware_headers",
"libsystem_headers",
],
- shared_libs: [
- "libcutils",
- "libdrm",
- "libnativewindow",
- "libsync",
- "liblog",
+ srcs: [
+ "cros_gralloc/cros_gralloc_buffer.cc",
+ "cros_gralloc/cros_gralloc_helpers.cc",
+ "cros_gralloc/cros_gralloc_driver.cc",
],
static_libs: ["libarect"],
export_static_lib_headers: ["libarect"],
-}
-
-cc_defaults {
- name: "minigbm_cros_gralloc_defaults",
- defaults: ["minigbm_defaults"],
+ vendor: true,
- srcs: [
- "cros_gralloc/cros_gralloc_buffer.cc",
- "cros_gralloc/cros_gralloc_helpers.cc",
- "cros_gralloc/cros_gralloc_driver.cc",
- ]
+ shared_libs: [
+ "libcutils",
+ "libnativewindow",
+ "libsync",
+ "liblog",
+ ],
}
-cc_library_static {
- name: "libminigbm",
+cc_library_host_shared {
+ name: "libgbm",
defaults: ["minigbm_defaults"],
- shared_libs: ["liblog"],
static_libs: ["libdrm"],
srcs: [
defaults: ["minigbm_cros_gralloc_defaults"],
cflags: ["-DDRV_MESON"],
srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
-}
\ No newline at end of file
+}