OSDN Git Service

minigbm: Enable vc4 driver
[android-x86/external-minigbm.git] / Android.mk
index bd9b9ae..2f3f519 100644 (file)
@@ -1,4 +1,3 @@
-# Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
@@ -17,23 +16,25 @@ LOCAL_SHARED_LIBRARIES := \
 
 LOCAL_SRC_FILES := \
        amdgpu.c \
-       amlogic.c \
-       cirrus.c \
        drv.c \
        evdi.c \
        exynos.c \
-       gma500.c \
+       helpers_array.c \
        helpers.c \
        i915.c \
        marvell.c \
        mediatek.c \
+       meson.c \
+       msm.c \
        nouveau.c \
+       radeon.c \
        rockchip.c \
        tegra.c \
        udl.c \
        vc4.c \
        vgem.c \
-       virtio_gpu.c
+       virtio_dumb.c \
+       virtio_virgl.c
 
 include $(MINIGBM_GRALLOC_MK)
 
@@ -48,6 +49,11 @@ LOCAL_CFLAGS += -DDRV_I915
 LOCAL_SHARED_LIBRARIES += libdrm_intel
 endif
 
+ifneq ($(filter virgl, $(BOARD_GPU_DRIVERS)),)
+LOCAL_CPPFLAGS += -DDRV_VIRGL
+LOCAL_CFLAGS += -DDRV_VIRGL
+endif
+
 LOCAL_MODULE := gralloc.$(TARGET_BOARD_PLATFORM)
 LOCAL_MODULE_TAGS := optional
 # The preferred path for vendor HALs is /vendor/lib/hw
@@ -55,6 +61,7 @@ LOCAL_PROPRIETARY_MODULE := true
 LOCAL_MODULE_RELATIVE_PATH := hw
 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
 LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX)
+LOCAL_SHARED_LIBRARIES += libnativewindow libsync liblog
 include $(BUILD_SHARED_LIBRARY)
 
-#endif
+endif