summaryrefslogtreecommitdiff
path: root/src/egl/main/Makefile
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-01-19 18:13:50 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-01-20 17:40:00 +0800
commitb3bcd33f7a8b32ce4ea6e979e9cc764d0f903ae9 (patch)
treeb255a30bf338d27b7d97133136003a2afd3a8fce /src/egl/main/Makefile
parentf291200a4bbc0b701cfe831bdeeb79f90efd866f (diff)
egl: Add _eglPreloadDrivers.
It can be used to load the user driver specified by EGL_DRIVER, or a set of drivers specified by EGL_DISPLAY, or the default driver, and in that order.
Diffstat (limited to 'src/egl/main/Makefile')
-rw-r--r--src/egl/main/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile
index ec326a845d..7386f6ea73 100644
--- a/src/egl/main/Makefile
+++ b/src/egl/main/Makefile
@@ -49,6 +49,11 @@ OBJECTS = $(SOURCES:.c=.o)
# use dl*() to load drivers
LOCAL_CFLAGS = -D_EGL_PLATFORM_X=1
+EGL_DEFAULT_DISPLAY = $(word 1, $(EGL_DISPLAYS))
+
+LOCAL_CFLAGS += \
+ -D_EGL_DEFAULT_DISPLAY=\"$(EGL_DEFAULT_DISPLAY)\" \
+ -D_EGL_DRIVER_SEARCH_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\"
.c.o:
$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@