@@ -13,6 +13,9 @@ endif
if BUILD_DPMS
pkgconfig_DATA += xcb-dpms.pc
endif
+if BUILD_DRI2
+pkgconfig_DATA += xcb-dri2.pc
+endif
if BUILD_GLX
pkgconfig_DATA += xcb-glx.pc
endif
@@ -132,6 +132,7 @@ esac
XCB_EXTENSION(Composite, "yes")
XCB_EXTENSION(Damage, "yes")
XCB_EXTENSION(DPMS, "yes")
+XCB_EXTENSION(DRI2, "yes")
XCB_EXTENSION(GLX, "yes")
XCB_EXTENSION(RandR, "yes")
XCB_EXTENSION(Record, "yes")
@@ -174,6 +175,7 @@ xcb.pc
xcb-composite.pc
xcb-damage.pc
xcb-dpms.pc
+xcb-dri2.pc
xcb-glx.pc
xcb-randr.pc
xcb-record.pc
@@ -2,6 +2,7 @@ bigreq.*
composite.*
damage.*
dpms.*
+dri2.*
glx.*
randr.*
record.*
@@ -60,6 +60,16 @@ libxcb_dpms_la_LIBADD = $(XCB_LIBS)
nodist_libxcb_dpms_la_SOURCES = dpms.c dpms.h
endif
+EXTHEADERS += dri2.h
+EXTSOURCES += dri2.c
+EXTENSION_XML += dri2.xml
+if BUILD_XFREE86_DRI
+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
EXTSOURCES += glx.c
EXTENSION_XML += glx.xml
new file mode 100644
@@ -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}