diff options
author | Chia-I Wu <[email protected]> | 2010-01-19 18:13:50 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-01-20 17:40:00 +0800 |
commit | b3bcd33f7a8b32ce4ea6e979e9cc764d0f903ae9 (patch) | |
tree | b255a30bf338d27b7d97133136003a2afd3a8fce /src/egl/main/Makefile | |
parent | f291200a4bbc0b701cfe831bdeeb79f90efd866f (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/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile index ec326a845df..7386f6ea736 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 $@ |