mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
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:
parent
ca32ce40b1
commit
fd4cd8e20a
5 changed files with 14 additions and 25 deletions
10
src/gallium/drivers/svga/Automake.inc
Normal file
10
src/gallium/drivers/svga/Automake.inc
Normal file
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue