Add DRI2 support. (v2)

v2: Build fix from jcristau.
This commit is contained in:
Eric Anholt 2009-10-15 13:13:47 -07:00
parent a27c77ccae
commit e82c34c2f7
5 changed files with 27 additions and 0 deletions

View File

@ -13,6 +13,9 @@ endif
if BUILD_DPMS if BUILD_DPMS
pkgconfig_DATA += xcb-dpms.pc pkgconfig_DATA += xcb-dpms.pc
endif endif
if BUILD_DRI2
pkgconfig_DATA += xcb-dri2.pc
endif
if BUILD_GLX if BUILD_GLX
pkgconfig_DATA += xcb-glx.pc pkgconfig_DATA += xcb-glx.pc
endif endif

View File

@ -132,6 +132,7 @@ esac
XCB_EXTENSION(Composite, "yes") XCB_EXTENSION(Composite, "yes")
XCB_EXTENSION(Damage, "yes") XCB_EXTENSION(Damage, "yes")
XCB_EXTENSION(DPMS, "yes") XCB_EXTENSION(DPMS, "yes")
XCB_EXTENSION(DRI2, "yes")
XCB_EXTENSION(GLX, "yes") XCB_EXTENSION(GLX, "yes")
XCB_EXTENSION(RandR, "yes") XCB_EXTENSION(RandR, "yes")
XCB_EXTENSION(Record, "yes") XCB_EXTENSION(Record, "yes")
@ -174,6 +175,7 @@ xcb.pc
xcb-composite.pc xcb-composite.pc
xcb-damage.pc xcb-damage.pc
xcb-dpms.pc xcb-dpms.pc
xcb-dri2.pc
xcb-glx.pc xcb-glx.pc
xcb-randr.pc xcb-randr.pc
xcb-record.pc xcb-record.pc

1
src/.gitignore vendored
View File

@ -2,6 +2,7 @@ bigreq.*
composite.* composite.*
damage.* damage.*
dpms.* dpms.*
dri2.*
glx.* glx.*
randr.* randr.*
record.* record.*

View File

@ -60,6 +60,16 @@ libxcb_dpms_la_LIBADD = $(XCB_LIBS)
nodist_libxcb_dpms_la_SOURCES = dpms.c dpms.h nodist_libxcb_dpms_la_SOURCES = dpms.c dpms.h
endif endif
EXTHEADERS += dri2.h
EXTSOURCES += dri2.c
EXTENSION_XML += dri2.xml
if BUILD_DRI2
lib_LTLIBRARIES += libxcb-dri2.la
libxcb_dri2_la_LDFLAGS = -version-info 0:0:0 -no-undefined
libxcb_dri2_la_LIBADD = $(XCB_LIBS)
nodist_libxcb_dri2_la_SOURCES = dri2.c dri2.h
endif
EXTHEADERS += glx.h EXTHEADERS += glx.h
EXTSOURCES += glx.c EXTSOURCES += glx.c
EXTENSION_XML += glx.xml EXTENSION_XML += glx.xml

11
xcb-dri2.pc.in Normal file
View File

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: XCB DRI2
Description: XCB DRI2 Extension
Version: @PACKAGE_VERSION@
Requires: xcb
Libs: -L${libdir} -lxcb-dri2
Cflags: -I${includedir}