|
|
@@ -61,23 +61,23 @@ LOCAL_LIBS += $(TOP)/src/egl/drivers/dri2/libegl_dri2.a |
|
|
|
ifneq ($(findstring x11, $(EGL_PLATFORMS)),) |
|
|
|
EGL_LIB_DEPS += $(XCB_DRI2_LIBS) |
|
|
|
endif |
|
|
|
ifneq ($(findstring drm, $(EGL_PLATFORMS)),) |
|
|
|
EGL_LIB_DEPS += -lgbm |
|
|
|
INCLUDE_DIRS += -I$(TOP)/src/gbm/main |
|
|
|
EGL_LIB_DEPS += $(LIBUDEV_LIBS) $(DLOPEN_LIBS) $(LIBDRM_LIB) |
|
|
|
endif |
|
|
|
EGL_LIB_DEPS += $(LIBUDEV_LIBS) $(DLOPEN_LIBS) $(LIBDRM_LIB) $(WAYLAND_LIBS) |
|
|
|
ifeq ($(filter glx, $(EGL_DRIVERS_DIRS)),glx) |
|
|
|
LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_GLX |
|
|
|
LOCAL_LIBS += $(TOP)/src/egl/drivers/glx/libegl_glx.a |
|
|
|
EGL_LIB_DEPS += $(X11_LIBS) $(DLOPEN_LIBS) |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
# libs/cflags for display type autodetection |
|
|
|
ifneq ($(findstring wayland, $(EGL_PLATFORMS)),) |
|
|
|
LOCAL_LIBS += $(TOP)/src/egl/wayland/wayland-drm/libwayland-drm.a |
|
|
|
EGL_LIB_DEPS += $(WAYLAND_LIBS) |
|
|
|
INCLUDE_DIRS += $(WAYLAND_CFLAGS) |
|
|
|
endif |
|
|
|
|
|
|
|
ifeq ($(filter glx, $(EGL_DRIVERS_DIRS)),glx) |
|
|
|
LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_GLX |
|
|
|
LOCAL_LIBS += $(TOP)/src/egl/drivers/glx/libegl_glx.a |
|
|
|
EGL_LIB_DEPS += $(X11_LIBS) $(DLOPEN_LIBS) |
|
|
|
ifneq ($(findstring drm, $(EGL_PLATFORMS)),) |
|
|
|
EGL_LIB_DEPS += -lgbm |
|
|
|
INCLUDE_DIRS += -I$(TOP)/src/gbm/main |
|
|
|
endif |
|
|
|
|
|
|
|
# translate --with-egl-platforms to _EGLPlatformType |