[Xcb] [PATCH 7/8] Add DRI3 library

Keith Packard keithp at keithp.com
Thu Nov 7 04:45:44 CET 2013


Signed-off-by: Keith Packard <keithp at keithp.com>
---
 Makefile.am     |  3 +++
 configure.ac    |  3 +++
 src/.gitignore  |  1 +
 src/Makefile.am |  8 ++++++++
 xcb-dri3.pc.in  | 11 +++++++++++
 5 files changed, 26 insertions(+)
 create mode 100644 xcb-dri3.pc.in

diff --git a/Makefile.am b/Makefile.am
index 961595b..c9fcf08 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,6 +18,9 @@ endif
 if BUILD_DRI2
 pkgconfig_DATA += xcb-dri2.pc
 endif
+if BUILD_DRI3
+pkgconfig_DATA += xcb-dri3.pc
+endif
 if BUILD_GLX
 pkgconfig_DATA += xcb-glx.pc
 endif
diff --git a/configure.ac b/configure.ac
index 47c31a1..74efdc7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -184,6 +184,7 @@ XCB_EXTENSION(Composite, "yes")
 XCB_EXTENSION(Damage, "yes")
 XCB_EXTENSION(DPMS, "yes")
 XCB_EXTENSION(DRI2, "yes")
+XCB_EXTENSION(DRI3, "$have_sendmsg")
 XCB_EXTENSION(GLX, "yes")
 XCB_EXTENSION(RandR, "yes")
 XCB_EXTENSION(Record, "yes")
@@ -228,6 +229,7 @@ xcb-composite.pc
 xcb-damage.pc
 xcb-dpms.pc
 xcb-dri2.pc
+xcb-dri3.pc
 xcb-glx.pc
 xcb-randr.pc
 xcb-record.pc
@@ -273,6 +275,7 @@ echo "    Composite...........: ${BUILD_COMPOSITE}"
 echo "    Damage..............: ${BUILD_DAMAGE}"
 echo "    Dpms................: ${BUILD_DPMS}"
 echo "    Dri2................: ${BUILD_DRI2}"
+echo "    Dri3................: ${BUILD_DRI3}"
 echo "    Glx.................: ${BUILD_GLX}"
 echo "    Randr...............: ${BUILD_RANDR}"
 echo "    Record..............: ${BUILD_RECORD}"
diff --git a/src/.gitignore b/src/.gitignore
index a402afe..71a7341 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -3,6 +3,7 @@ composite.*
 damage.*
 dpms.*
 dri2.*
+dri3.*
 glx.*
 randr.*
 record.*
diff --git a/src/Makefile.am b/src/Makefile.am
index f48e14e..9d6d246 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -56,6 +56,14 @@ libxcb_dri2_la_LIBADD = $(XCB_LIBS)
 nodist_libxcb_dri2_la_SOURCES = dri2.c dri2.h
 endif
 
+EXTSOURCES += dri3.c
+if BUILD_DRI3
+lib_LTLIBRARIES += libxcb-dri3.la
+libxcb_dri3_la_LDFLAGS = -version-info 0:0:0 -no-undefined @lt_enable_auto_import@
+libxcb_dri3_la_LIBADD = $(XCB_LIBS)
+nodist_libxcb_dri3_la_SOURCES = dri3.c dri3.h
+endif
+
 EXTSOURCES += glx.c
 if BUILD_GLX
 lib_LTLIBRARIES += libxcb-glx.la
diff --git a/xcb-dri3.pc.in b/xcb-dri3.pc.in
new file mode 100644
index 0000000..0eb7390
--- /dev/null
+++ b/xcb-dri3.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: XCB DRI3
+Description: XCB DRI3 Extension
+Version: @PACKAGE_VERSION@
+Requires: xcb
+Libs: -L${libdir} -lxcb-dri3
+Cflags: -I${includedir}
-- 
1.8.4.2



More information about the Xcb mailing list