mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
gallium/i915: 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
97bec98ac9
commit
defd48c6c5
5 changed files with 15 additions and 29 deletions
11
src/gallium/drivers/i915/Automake.inc
Normal file
11
src/gallium/drivers/i915/Automake.inc
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
if HAVE_GALLIUM_I915
|
||||
|
||||
TARGET_DRIVERS += i915
|
||||
TARGET_CPPFLAGS += -DGALLIUM_I915
|
||||
TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS) \
|
||||
$(LIBDRM_LIBS)
|
||||
|
||||
endif
|
||||
|
|
@ -68,14 +68,7 @@ TARGET_DRIVERS =
|
|||
TARGET_CPPFLAGS =
|
||||
TARGET_LIB_DEPS =
|
||||
|
||||
if HAVE_GALLIUM_I915
|
||||
MEGADRIVERS += i915
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_I915
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS)
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_ILO
|
||||
MEGADRIVERS += ilo
|
||||
|
|
|
|||
|
|
@ -161,13 +161,7 @@ TARGET_DRIVERS =
|
|||
TARGET_CPPFLAGS =
|
||||
TARGET_LIB_DEPS =
|
||||
|
||||
if HAVE_GALLIUM_I915
|
||||
egl_gallium_la_CPPFLAGS += -DGALLIUM_I915
|
||||
egl_gallium_la_LIBADD += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS)
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_ILO
|
||||
egl_gallium_la_CPPFLAGS += -DGALLIUM_ILO
|
||||
|
|
|
|||
|
|
@ -60,13 +60,7 @@ TARGET_DRIVERS =
|
|||
TARGET_CPPFLAGS =
|
||||
TARGET_LIB_DEPS =
|
||||
|
||||
if HAVE_GALLIUM_I915
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_I915
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS)
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_ILO
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_ILO
|
||||
|
|
|
|||
|
|
@ -61,13 +61,7 @@ TARGET_DRIVERS =
|
|||
TARGET_CPPFLAGS =
|
||||
TARGET_LIB_DEPS =
|
||||
|
||||
if HAVE_GALLIUM_I915
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_I915
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS)
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_ILO
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_ILO
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue