OSDN Git Service

gralloc0_register_buffer: initialize gralloc0 when needed
[android-x86/external-minigbm.git] / Android.gralloc.mk
index 4a0b125..318d6a5 100644 (file)
@@ -5,6 +5,14 @@
 LOCAL_CPP_EXTENSION := .cc
 
 LOCAL_SRC_FILES += \
-       cros_gralloc/cros_alloc_device.cc \
+       cros_gralloc/cros_gralloc_buffer.cc \
+       cros_gralloc/cros_gralloc_driver.cc \
        cros_gralloc/cros_gralloc_helpers.cc \
-       cros_gralloc/cros_gralloc_module.cc
+       cros_gralloc/i915_private_android.cc
+
+ifeq ($(strip $(BOARD_USES_GRALLOC1)), true)
+LOCAL_SRC_FILES += cros_gralloc/gralloc1/cros_gralloc1_module.cc
+LOCAL_CPPFLAGS += -DUSE_GRALLOC1
+else
+LOCAL_SRC_FILES += cros_gralloc/gralloc0/gralloc0.cc
+endif