gallium/svga: add automake target 'template'
Rather than duplicating the libdeps, extra define... all over the targets, define them only once and use when applicable. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
if HAVE_GALLIUM_SVGA
|
||||
|
||||
TARGET_DRIVERS += vmwgfx
|
||||
TARGET_CPPFLAGS += -DGALLIUM_VMWGFX
|
||||
TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la \
|
||||
$(LIBDRM_LIBS)
|
||||
|
||||
endif
|
||||
@@ -108,13 +108,7 @@ STATIC_TARGET_LIB_DEPS += \
|
||||
$(RADEON_LIBS)
|
||||
endif
|
||||
|
||||
if HAVE_GALLIUM_SVGA
|
||||
MEGADRIVERS += vmwgfx
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_VMWGFX
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
|
||||
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
|
||||
@@ -198,12 +198,7 @@ egl_gallium_la_LIBADD += \
|
||||
$(RADEON_LIBS)
|
||||
endif
|
||||
|
||||
if HAVE_GALLIUM_SVGA
|
||||
egl_gallium_la_CPPFLAGS += -DGALLIUM_VMWGFX
|
||||
egl_gallium_la_LIBADD += \
|
||||
$(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
|
||||
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
|
||||
@@ -97,12 +97,7 @@ STATIC_TARGET_LIB_DEPS += \
|
||||
$(RADEON_LIBS)
|
||||
endif
|
||||
|
||||
if HAVE_GALLIUM_SVGA
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_VMWGFX
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
|
||||
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
|
||||
@@ -67,12 +67,7 @@ include $(top_srcdir)/src/gallium/drivers/ilo/Automake.inc
|
||||
|
||||
include $(top_srcdir)/src/gallium/drivers/nouveau/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_SVGA
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_VMWGFX
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
|
||||
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user