mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 08:21:08 +00:00
4b165190ee
Link the EGL library with Mesa. SDL's `GL_GetProcAddress` now calls `eglGetProcAddress` rather than lookup procedures directly in the Mesa library. Components may still wish to list 'mesa_api' in LIBS to access OpenGL headers. Fix #2711
41 lines
893 B
Makefile
41 lines
893 B
Makefile
SHARED_LIB = yes
|
|
LIBS = libc blit
|
|
|
|
# Link to Mesa, EGL clients should use `eglGetProcAddres`
|
|
# to retrieve Mesa implementations rather than use Mesa
|
|
# symbols directly.
|
|
LIBS += mesa
|
|
|
|
include $(REP_DIR)/lib/mk/mesa-common.inc
|
|
|
|
SRC_C = \
|
|
main/eglsurface.c \
|
|
main/eglconfig.c \
|
|
main/eglglobals.c \
|
|
main/egldisplay.c \
|
|
main/eglfallbacks.c \
|
|
main/eglsync.c \
|
|
main/egllog.c \
|
|
main/eglarray.c \
|
|
main/eglimage.c \
|
|
main/eglcontext.c \
|
|
main/eglcurrent.c \
|
|
main/eglapi.c \
|
|
main/egldriver.c \
|
|
drivers/dri2/egl_dri2.c \
|
|
platform.c
|
|
|
|
SRC_CC = genode_interface.cc
|
|
|
|
CC_OPT += -D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_GENODE -D_EGL_BUILT_IN_DRIVER_DRI2 \
|
|
-DHAVE_GENODE_PLATFORM
|
|
|
|
INC_DIR += $(MESA_PORT_DIR)/src/egl/main \
|
|
$(MESA_PORT_DIR)/src/egl/drivers/dri2
|
|
|
|
vpath %.c $(MESA_PORT_DIR)/src/egl
|
|
vpath %.c $(LIB_DIR)/egl
|
|
vpath %.cc $(LIB_DIR)/egl
|
|
|
|
CC_CXX_WARN_STRICT =
|