diff options
Diffstat (limited to 'src/gbm/main')
-rw-r--r-- | src/gbm/main/Makefile | 5 | ||||
-rw-r--r-- | src/gbm/main/backend.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gbm/main/Makefile b/src/gbm/main/Makefile index 277fba18eee..5130b9b5df2 100644 --- a/src/gbm/main/Makefile +++ b/src/gbm/main/Makefile @@ -23,6 +23,11 @@ LOCAL_CFLAGS = $(LIBUDEV_CFLAGS) $(DLOPEN_CFLAGS) \ -D_OS_UNIX=1 -DMODULEDIR='"$(GBM_BACKEND_INSTALL_DIR)"' LOCAL_LIBS = +# Builtin backends +ifeq ($(filter dri, $(GBM_BACKEND_DIRS)),dri) +LOCAL_LIBS += $(TOP)/src/gbm/backends/dri/libgbm_dri.a +endif + .c.o: $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@ diff --git a/src/gbm/main/backend.c b/src/gbm/main/backend.c index 2079bbb710d..84db9e847a9 100644 --- a/src/gbm/main/backend.c +++ b/src/gbm/main/backend.c @@ -36,12 +36,15 @@ #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) +extern const struct gbm_backend gbm_dri_backend; + struct backend_desc { const char *name; const struct gbm_backend *builtin; }; static const struct backend_desc backends[] = { + { "gbm_dri.so", &gbm_dri_backend }, }; static const void * |