mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
egl/gallium: fix build without softpipe and llvmpipe
Signed-off-by: Tobias Droste <tdroste@gmx.de> Acked-by: Jakob Bornecrantz <wallbraker@gmail.com> Reviewed-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
1c2c4ddbd1
commit
d4d5e3a336
1 changed files with 9 additions and 3 deletions
|
|
@ -141,10 +141,18 @@ egl_LIBS += \
|
|||
$(TOP)/src/gallium/drivers/svga/libsvga.a
|
||||
endif
|
||||
|
||||
# swrast
|
||||
# softpipe
|
||||
ifneq ($(findstring softpipe,$(GALLIUM_DRIVERS_DIRS)),)
|
||||
egl_CPPFLAGS += -DGALLIUM_SOFTPIPE -DGALLIUM_RBUG -DGALLIUM_TRACE
|
||||
egl_LIBS += $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a
|
||||
egl_SYS += -lm
|
||||
endif
|
||||
|
||||
# llvmpipe
|
||||
ifneq ($(findstring llvmpipe,$(GALLIUM_DRIVERS_DIRS)),)
|
||||
egl_CPPFLAGS += -DGALLIUM_LLVMPIPE
|
||||
egl_LIBS += $(TOP)/src/gallium/drivers/llvmpipe/libllvmpipe.a
|
||||
endif
|
||||
|
||||
# sort to remove duplicates
|
||||
egl_CPPFLAGS := $(sort $(egl_CPPFLAGS))
|
||||
|
|
@ -158,8 +166,6 @@ st_GL_SYS := -lm -lpthread $(DLOPEN_LIBS)
|
|||
|
||||
# LLVM
|
||||
ifeq ($(MESA_LLVM),1)
|
||||
egl_CPPFLAGS += -DGALLIUM_LLVMPIPE
|
||||
egl_LIBS += $(TOP)/src/gallium/drivers/llvmpipe/libllvmpipe.a
|
||||
egl_SYS += $(LLVM_LIBS)
|
||||
LDFLAGS += $(LLVM_LDFLAGS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue