be6680967a
We now expect to be linked against something that provides the GL API, instead of manually grubbing about in the DRI driver's dispatch table. Since the GLX we expose calls GL functions that are meant to be looked up dynamically, also add a way to thunk through to GetProcAddress. This includes a refresh of the generated sources, which requires a correspondingly new Mesa. The GetProcAddress stubs are at the moment merely enough to make this link against Mesa 9.2, but should really be provided for everything not in the OpenGL 1.2 ABI. v2: Explicitly hide the GetProcAddress stubs so we can't conflict with libGL symbols; fix leading tab/space issues [anholt] Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
90 lines
1.7 KiB
Makefile
90 lines
1.7 KiB
Makefile
if AIGLX_DRI_LOADER
|
|
GLXDRI_LIBRARY = libglxdri.la
|
|
endif
|
|
|
|
noinst_LTLIBRARIES = libglx.la $(GLXDRI_LIBRARY)
|
|
|
|
AM_CFLAGS = \
|
|
@DIX_CFLAGS@ \
|
|
@GL_CFLAGS@ \
|
|
@XLIB_CFLAGS@ \
|
|
@LIBDRM_CFLAGS@ \
|
|
@GLX_DEFINES@ \
|
|
@GLX_ARCH_DEFINES@
|
|
|
|
# none yet
|
|
#sdk_HEADERS =
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/hw/xfree86/os-support \
|
|
-I$(top_srcdir)/hw/xfree86/os-support/bus \
|
|
-I$(top_srcdir)/hw/xfree86/common \
|
|
-I$(top_srcdir)/hw/xfree86/dri \
|
|
-I$(top_srcdir)/mi
|
|
|
|
if DRI2_AIGLX
|
|
AM_CPPFLAGS += -I$(top_srcdir)/hw/xfree86/dri2
|
|
endif
|
|
|
|
indirect_sources = \
|
|
indirect_dispatch.c \
|
|
indirect_dispatch.h \
|
|
indirect_dispatch_swap.c \
|
|
indirect_reqsize.c \
|
|
indirect_reqsize.h \
|
|
indirect_size.h \
|
|
indirect_size_get.c \
|
|
indirect_size_get.h \
|
|
indirect_table.c
|
|
|
|
libglxdri_la_SOURCES =
|
|
|
|
if DRI2_AIGLX
|
|
libglxdri_la_SOURCES += glxdri2.c
|
|
endif
|
|
|
|
libglxdri_la_LIBADD = $(DLOPEN_LIBS)
|
|
|
|
libglx_la_SOURCES = \
|
|
$(indirect_sources) \
|
|
clientinfo.c \
|
|
createcontext.c \
|
|
extension_string.c \
|
|
extension_string.h \
|
|
indirect_util.c \
|
|
indirect_util.h \
|
|
indirect_program.c \
|
|
indirect_table.h \
|
|
indirect_texture_compression.c \
|
|
glxbyteorder.h \
|
|
glxcmds.c \
|
|
glxcmdsswap.c \
|
|
glxcontext.h \
|
|
glxdrawable.h \
|
|
glxext.c \
|
|
glxext.h \
|
|
glxdriswrast.c \
|
|
glxdricommon.c \
|
|
glxdricommon.h \
|
|
glxscreens.c \
|
|
glxscreens.h \
|
|
glxserver.h \
|
|
glxstubs.c \
|
|
glxutil.h \
|
|
render2.c \
|
|
render2swap.c \
|
|
renderpix.c \
|
|
renderpixswap.c \
|
|
rensize.c \
|
|
single2.c \
|
|
single2swap.c \
|
|
singlepix.c \
|
|
singlepixswap.c \
|
|
singlesize.c \
|
|
singlesize.h \
|
|
swap_interval.c \
|
|
unpack.h \
|
|
xfont.c
|
|
|
|
libglx_la_LIBADD = $(DLOPEN_LIBS)
|