mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
gallium/vc4: add automake target 'templates'
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
c2b5d7024e
commit
3d909864c8
2 changed files with 14 additions and 11 deletions
13
src/gallium/drivers/vc4/Automake.inc
Normal file
13
src/gallium/drivers/vc4/Automake.inc
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
if HAVE_GALLIUM_VC4
|
||||
|
||||
TARGET_DRIVERS += vc4
|
||||
TARGET_CPPFLAGS += -DGALLIUM_VC4
|
||||
TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/vc4/drm/libvc4drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/vc4/libvc4.la
|
||||
|
||||
if USE_VC4_SIMULATOR
|
||||
TARGET_CPPFLAGS += -DUSE_VC4_SIMULATOR
|
||||
endif
|
||||
|
||||
endif
|
||||
|
|
@ -82,17 +82,7 @@ include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
|
|||
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_VC4
|
||||
MEGADRIVERS += vc4
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_VC4
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/vc4/drm/libvc4drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/vc4/libvc4.la
|
||||
|
||||
if USE_VC4_SIMULATOR
|
||||
STATIC_TARGET_CPPFLAGS += -DUSE_VC4_SIMULATOR
|
||||
endif
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/vc4/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_SOFTPIPE
|
||||
MEGADRIVERS += swrast
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue