From b3bcd33f7a8b32ce4ea6e979e9cc764d0f903ae9 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 19 Jan 2010 18:13:50 +0800 Subject: 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. --- src/egl/main/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/egl/main/Makefile') 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 $@ -- cgit v1.2.3