[Xcb-commit] 2 commits - configure.ac doc Makefile.am src xcb-dri2.pc.in

Eric Anholt anholt at kemper.freedesktop.org
Mon Oct 19 10:36:17 PDT 2009


 Makefile.am             |    3 +++
 configure.ac            |    2 ++
 doc/tutorial/index.html |    2 +-
 src/.gitignore          |    1 +
 src/Makefile.am         |   10 ++++++++++
 xcb-dri2.pc.in          |   11 +++++++++++
 6 files changed, 28 insertions(+), 1 deletion(-)

New commits:
commit e82c34c2f7ac3fbb23ab14cbee8df2dd9178f5a4
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Oct 15 13:13:47 2009 -0700

    Add DRI2 support. (v2)
    
    v2: Build fix from jcristau.

diff --git a/Makefile.am b/Makefile.am
index 3a2f6f5..ff9dea1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
diff --git a/configure.ac b/configure.ac
index 96f5079..a748489 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/src/.gitignore b/src/.gitignore
index 86d9b9c..21421a2 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -2,6 +2,7 @@ bigreq.*
 composite.*
 damage.*
 dpms.*
+dri2.*
 glx.*
 randr.*
 record.*
diff --git a/src/Makefile.am b/src/Makefile.am
index f58ee65..8bec613 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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_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
 EXTSOURCES += glx.c
 EXTENSION_XML += glx.xml
diff --git a/xcb-dri2.pc.in b/xcb-dri2.pc.in
new file mode 100644
index 0000000..a9944df
--- /dev/null
+++ b/xcb-dri2.pc.in
@@ -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}
commit a27c77ccae059fb64e0506648b81677858d3b05b
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Oct 15 13:14:49 2009 -0700

    Fix typo in the tutorial.

diff --git a/doc/tutorial/index.html b/doc/tutorial/index.html
index c540426..5824807 100644
--- a/doc/tutorial/index.html
+++ b/doc/tutorial/index.html
@@ -173,7 +173,7 @@
       with the <a href="http://xcb.freedesktop.org">XCB</a>
       library. keep in mind that XCB, like the
       <a href="http://tronche.com/gui/x/xlib/introduction">Xlib</a>
-      library, isn't what post programmers wanting to write X
+      library, isn't what most programmers wanting to write X
       applications are looking for. They should use a much higher
       level GUI toolkit like Motif,
       <a href="http://www.lesstif.org">LessTiff</a>,


More information about the xcb-commit mailing list