winsys: automatically build sw winsys needed by EGL and d3d1x
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 07:37:23 +0000 (09:37 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 22 Sep 2010 07:37:23 +0000 (09:37 +0200)
A cleaner solution would be preferable, but this does no harm and works.

src/gallium/winsys/sw/Makefile

index e9182ea5b1bf046c39df64d7e62bd01abf2116ba..094e811d57da3ad89a1c59ab70122a2002310986 100644 (file)
@@ -4,6 +4,16 @@ include $(TOP)/configs/current
 
 SUBDIRS = null wrapper
 
+# TODO: this should go through a further indirection level
+# (i.e. EGL should set a variable that is checked here)
+ifneq ($(findstring x11, $(EGL_PLATFORMS)),)
+SUBDIRS += xlib
+endif
+
+ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),)
+SUBDIRS += fbdev
+endif
+
 default install clean:
        @for dir in $(SUBDIRS) ; do \
                if [ -d $$dir ] ; then \