gallium/freedreno: 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,11 @@
|
||||
if HAVE_GALLIUM_FREEDRENO
|
||||
|
||||
TARGET_DRIVERS += msm kgsl
|
||||
TARGET_CPPFLAGS += -DGALLIUM_FREEDRENO
|
||||
TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
|
||||
$(FREEDRENO_LIBS) \
|
||||
$(LIBDRM_LIBS)
|
||||
|
||||
endif
|
||||
@@ -130,15 +130,7 @@ STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la
|
||||
endif
|
||||
|
||||
if HAVE_GALLIUM_FREEDRENO
|
||||
MEGADRIVERS += msm kgsl
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_FREEDRENO
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
|
||||
$(FREEDRENO_LIBS)
|
||||
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_VC4
|
||||
MEGADRIVERS += vc4
|
||||
|
||||
@@ -217,14 +217,7 @@ egl_gallium_la_LIBADD += \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la
|
||||
endif
|
||||
|
||||
if HAVE_GALLIUM_FREEDRENO
|
||||
egl_gallium_la_CPPFLAGS += -DGALLIUM_FREEDRENO
|
||||
egl_gallium_la_LIBADD += \
|
||||
$(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
|
||||
$(FREEDRENO_LIBS)
|
||||
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_SOFTPIPE
|
||||
egl_gallium_la_CPPFLAGS += -DGALLIUM_SOFTPIPE
|
||||
|
||||
@@ -116,14 +116,7 @@ STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la
|
||||
endif
|
||||
|
||||
if HAVE_GALLIUM_FREEDRENO
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_FREEDRENO
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
|
||||
$(FREEDRENO_LIBS)
|
||||
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
gbm_gallium_drm_la_SOURCES += target.c
|
||||
gbm_gallium_drm_la_CPPFLAGS = $(STATIC_TARGET_CPPFLAGS) $(TARGET_CPPFLAGS)
|
||||
|
||||
@@ -86,14 +86,7 @@ STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/drivers/svga/libsvga.la
|
||||
endif
|
||||
|
||||
if HAVE_GALLIUM_FREEDRENO
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_FREEDRENO
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
|
||||
$(FREEDRENO_LIBS)
|
||||
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
libxatracker_la_SOURCES += target.c
|
||||
libxatracker_la_CPPFLAGS = $(STATIC_TARGET_CPPFLAGS) $(TARGET_CPPFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user