[Xcb] [PATCH] libxcb: autotools changes

Eamon Walsh ewalsh at tycho.nsa.gov
Mon Dec 3 15:10:40 PST 2007


I've written a Perl script that generates the configure.ac and 
Makefile.am's in libxcb with the idea of making each extension library 
individually selectable for build.  These are the results.  If the 
actual script is something that might be useful upstream, let me know.

Signed-off-by: Eamon Walsh <ewalsh at tycho.nsa.gov>
---

 Makefile.am     |  167 ++++++++++++----
 configure.ac    |   44 ++++
 src/Makefile.am |  564 +++++++++++++++++++++++++++++++++++++++++---------------
 3 files changed, 590 insertions(+), 185 deletions(-)


diff --git a/Makefile.am b/Makefile.am
index 2dce719..440e9a8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,52 +4,137 @@ pkgconfigdir = $(libdir)/pkgconfig
 
 pkgconfig_DATA = \
 xcb.pc \
-xcb-xlib.pc \
-xcb-composite.pc \
-xcb-damage.pc \
-xcb-dpms.pc \
-xcb-glx.pc \
-xcb-randr.pc \
-xcb-record.pc \
-xcb-render.pc \
-xcb-res.pc \
-xcb-screensaver.pc \
-xcb-shape.pc \
-xcb-shm.pc \
-xcb-sync.pc \
-xcb-xevie.pc \
-xcb-xf86dri.pc \
-xcb-xfixes.pc \
-xcb-xinerama.pc \
-xcb-xprint.pc \
-xcb-xtest.pc \
-xcb-xv.pc \
-xcb-xvmc.pc
+xcb-xlib.pc
+
+if BUILD_COMPOSITE
+pkgconfig_DATA += xcb-composite.pc
+endif
+if BUILD_DAMAGE
+pkgconfig_DATA += xcb-damage.pc
+endif
+if BUILD_DPMS
+pkgconfig_DATA += xcb-dpms.pc
+endif
+if BUILD_GLX
+pkgconfig_DATA += xcb-glx.pc
+endif
+if BUILD_RANDR
+pkgconfig_DATA += xcb-randr.pc
+endif
+if BUILD_RECORD
+pkgconfig_DATA += xcb-record.pc
+endif
+if BUILD_RENDER
+pkgconfig_DATA += xcb-render.pc
+endif
+if BUILD_RES
+pkgconfig_DATA += xcb-res.pc
+endif
+if BUILD_SCREENSAVER
+pkgconfig_DATA += xcb-screensaver.pc
+endif
+if BUILD_SHAPE
+pkgconfig_DATA += xcb-shape.pc
+endif
+if BUILD_SHM
+pkgconfig_DATA += xcb-shm.pc
+endif
+if BUILD_SYNC
+pkgconfig_DATA += xcb-sync.pc
+endif
+if BUILD_XEVIE
+pkgconfig_DATA += xcb-xevie.pc
+endif
+if BUILD_XF86DRI
+pkgconfig_DATA += xcb-xf86dri.pc
+endif
+if BUILD_XFIXES
+pkgconfig_DATA += xcb-xfixes.pc
+endif
+if BUILD_XINERAMA
+pkgconfig_DATA += xcb-xinerama.pc
+endif
+if BUILD_XPRINT
+pkgconfig_DATA += xcb-xprint.pc
+endif
+if BUILD_XTEST
+pkgconfig_DATA += xcb-xtest.pc
+endif
+if BUILD_XV
+pkgconfig_DATA += xcb-xv.pc
+endif
+if BUILD_XVMC
+pkgconfig_DATA += xcb-xvmc.pc
+endif
+
 
 EXTRA_DIST = \
 xcb.pc.in \
 xcb-xlib.pc.in \
-xcb-composite.pc.in \
-xcb-damage.pc.in \
-xcb-dpms.pc.in \
-xcb-glx.pc.in \
-xcb-randr.pc.in \
-xcb-record.pc.in \
-xcb-render.pc.in \
-xcb-res.pc.in \
-xcb-screensaver.pc.in \
-xcb-shape.pc.in \
-xcb-shm.pc.in \
-xcb-sync.pc.in \
-xcb-xevie.pc.in \
-xcb-xinerama.pc.in \
-xcb-xf86dri.pc.in \
-xcb-xfixes.pc.in \
-xcb-xprint.pc.in \
-xcb-xtest.pc.in \
-xcb-xv.pc.in \
-xcb-xvmc.pc.in \
 tools/README \
 tools/api_conv.pl \
 tools/constants \
 autogen.sh
+
+if BUILD_COMPOSITE
+EXTRA_DIST += xcb-composite.pc.in
+endif
+if BUILD_DAMAGE
+EXTRA_DIST += xcb-damage.pc.in
+endif
+if BUILD_DPMS
+EXTRA_DIST += xcb-dpms.pc.in
+endif
+if BUILD_GLX
+EXTRA_DIST += xcb-glx.pc.in
+endif
+if BUILD_RANDR
+EXTRA_DIST += xcb-randr.pc.in
+endif
+if BUILD_RECORD
+EXTRA_DIST += xcb-record.pc.in
+endif
+if BUILD_RENDER
+EXTRA_DIST += xcb-render.pc.in
+endif
+if BUILD_RES
+EXTRA_DIST += xcb-res.pc.in
+endif
+if BUILD_SCREENSAVER
+EXTRA_DIST += xcb-screensaver.pc.in
+endif
+if BUILD_SHAPE
+EXTRA_DIST += xcb-shape.pc.in
+endif
+if BUILD_SHM
+EXTRA_DIST += xcb-shm.pc.in
+endif
+if BUILD_SYNC
+EXTRA_DIST += xcb-sync.pc.in
+endif
+if BUILD_XEVIE
+EXTRA_DIST += xcb-xevie.pc.in
+endif
+if BUILD_XF86DRI
+EXTRA_DIST += xcb-xf86dri.pc.in
+endif
+if BUILD_XFIXES
+EXTRA_DIST += xcb-xfixes.pc.in
+endif
+if BUILD_XINERAMA
+EXTRA_DIST += xcb-xinerama.pc.in
+endif
+if BUILD_XPRINT
+EXTRA_DIST += xcb-xprint.pc.in
+endif
+if BUILD_XTEST
+EXTRA_DIST += xcb-xtest.pc.in
+endif
+if BUILD_XV
+EXTRA_DIST += xcb-xv.pc.in
+endif
+if BUILD_XVMC
+EXTRA_DIST += xcb-xvmc.pc.in
+endif
+
+
diff --git a/configure.ac b/configure.ac
index df554e6..2105c9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,8 +86,50 @@ AC_PREREQ([2.59c], [], [AC_SUBST([htmldir], [m4_ifset([AC_PACKAGE_TARNAME],
 ])])
 AM_CHECK_DOXYGEN()
 
+AC_ARG_ENABLE(composite, AS_HELP_STRING([--enable-composite], [Build XCB Composite Extension (default: yes)]), [BUILD_COMPOSITE=$enableval], [BUILD_COMPOSITE=yes])
+AM_CONDITIONAL(BUILD_COMPOSITE, [test "x$BUILD_COMPOSITE" = xyes])
+AC_ARG_ENABLE(damage, AS_HELP_STRING([--enable-damage], [Build XCB Damage Extension (default: yes)]), [BUILD_DAMAGE=$enableval], [BUILD_DAMAGE=yes])
+AM_CONDITIONAL(BUILD_DAMAGE, [test "x$BUILD_DAMAGE" = xyes])
+AC_ARG_ENABLE(dpms, AS_HELP_STRING([--enable-dpms], [Build XCB DPMS Extension (default: yes)]), [BUILD_DPMS=$enableval], [BUILD_DPMS=yes])
+AM_CONDITIONAL(BUILD_DPMS, [test "x$BUILD_DPMS" = xyes])
+AC_ARG_ENABLE(glx, AS_HELP_STRING([--enable-glx], [Build XCB GLX Extension (default: yes)]), [BUILD_GLX=$enableval], [BUILD_GLX=yes])
+AM_CONDITIONAL(BUILD_GLX, [test "x$BUILD_GLX" = xyes])
+AC_ARG_ENABLE(randr, AS_HELP_STRING([--enable-randr], [Build XCB RandR Extension (default: yes)]), [BUILD_RANDR=$enableval], [BUILD_RANDR=yes])
+AM_CONDITIONAL(BUILD_RANDR, [test "x$BUILD_RANDR" = xyes])
+AC_ARG_ENABLE(record, AS_HELP_STRING([--enable-record], [Build XCB Record Extension (default: yes)]), [BUILD_RECORD=$enableval], [BUILD_RECORD=yes])
+AM_CONDITIONAL(BUILD_RECORD, [test "x$BUILD_RECORD" = xyes])
+AC_ARG_ENABLE(render, AS_HELP_STRING([--enable-render], [Build XCB Render Extension (default: yes)]), [BUILD_RENDER=$enableval], [BUILD_RENDER=yes])
+AM_CONDITIONAL(BUILD_RENDER, [test "x$BUILD_RENDER" = xyes])
+AC_ARG_ENABLE(res, AS_HELP_STRING([--enable-res], [Build XCB X-Resource Extension (default: yes)]), [BUILD_RES=$enableval], [BUILD_RES=yes])
+AM_CONDITIONAL(BUILD_RES, [test "x$BUILD_RES" = xyes])
+AC_ARG_ENABLE(screensaver, AS_HELP_STRING([--enable-screensaver], [Build XCB Screensaver Extension (default: yes)]), [BUILD_SCREENSAVER=$enableval], [BUILD_SCREENSAVER=yes])
+AM_CONDITIONAL(BUILD_SCREENSAVER, [test "x$BUILD_SCREENSAVER" = xyes])
+AC_ARG_ENABLE(shape, AS_HELP_STRING([--enable-shape], [Build XCB Shape Extension (default: yes)]), [BUILD_SHAPE=$enableval], [BUILD_SHAPE=yes])
+AM_CONDITIONAL(BUILD_SHAPE, [test "x$BUILD_SHAPE" = xyes])
+AC_ARG_ENABLE(shm, AS_HELP_STRING([--enable-shm], [Build XCB Shm Extension (default: yes)]), [BUILD_SHM=$enableval], [BUILD_SHM=yes])
+AM_CONDITIONAL(BUILD_SHM, [test "x$BUILD_SHM" = xyes])
+AC_ARG_ENABLE(sync, AS_HELP_STRING([--enable-sync], [Build XCB Sync Extension (default: yes)]), [BUILD_SYNC=$enableval], [BUILD_SYNC=yes])
+AM_CONDITIONAL(BUILD_SYNC, [test "x$BUILD_SYNC" = xyes])
+AC_ARG_ENABLE(xevie, AS_HELP_STRING([--enable-xevie], [Build XCB Xevie Extension (default: yes)]), [BUILD_XEVIE=$enableval], [BUILD_XEVIE=yes])
+AM_CONDITIONAL(BUILD_XEVIE, [test "x$BUILD_XEVIE" = xyes])
+AC_ARG_ENABLE(xf86dri, AS_HELP_STRING([--enable-xf86dri], [Build XCB XFree86-DRI Extension (default: yes)]), [BUILD_XF86DRI=$enableval], [BUILD_XF86DRI=yes])
+AM_CONDITIONAL(BUILD_XF86DRI, [test "x$BUILD_XF86DRI" = xyes])
+AC_ARG_ENABLE(xfixes, AS_HELP_STRING([--enable-xfixes], [Build XCB XFixes Extension (default: yes)]), [BUILD_XFIXES=$enableval], [BUILD_XFIXES=yes])
+AM_CONDITIONAL(BUILD_XFIXES, [test "x$BUILD_XFIXES" = xyes])
+AC_ARG_ENABLE(xinerama, AS_HELP_STRING([--enable-xinerama], [Build XCB Xinerama Extension (default: yes)]), [BUILD_XINERAMA=$enableval], [BUILD_XINERAMA=yes])
+AM_CONDITIONAL(BUILD_XINERAMA, [test "x$BUILD_XINERAMA" = xyes])
+AC_ARG_ENABLE(xprint, AS_HELP_STRING([--enable-xprint], [Build XCB Xprint Extension (default: yes)]), [BUILD_XPRINT=$enableval], [BUILD_XPRINT=yes])
+AM_CONDITIONAL(BUILD_XPRINT, [test "x$BUILD_XPRINT" = xyes])
+AC_ARG_ENABLE(xtest, AS_HELP_STRING([--enable-xtest], [Build XCB XTEST Extension (default: yes)]), [BUILD_XTEST=$enableval], [BUILD_XTEST=yes])
+AM_CONDITIONAL(BUILD_XTEST, [test "x$BUILD_XTEST" = xyes])
+AC_ARG_ENABLE(xv, AS_HELP_STRING([--enable-xv], [Build XCB Xv Extension (default: yes)]), [BUILD_XV=$enableval], [BUILD_XV=yes])
+AM_CONDITIONAL(BUILD_XV, [test "x$BUILD_XV" = xyes])
+AC_ARG_ENABLE(xvmc, AS_HELP_STRING([--enable-xvmc], [Build XCB XvMC Extension (default: yes)]), [BUILD_XVMC=$enableval], [BUILD_XVMC=yes])
+AM_CONDITIONAL(BUILD_XVMC, [test "x$BUILD_XVMC" = xyes])
+
+
 AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile doc/Makefile])
-AC_CONFIG_FILES([xcb.pc xcb-xlib.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xprint.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc])
+AC_CONFIG_FILES([xcb.pc xcb-xlib.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xprint.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc ])
 AC_CONFIG_FILES([doc/xcb.doxygen])
 
 AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
index b02caf3..9534feb 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,95 +1,269 @@
 lib_LTLIBRARIES = libxcb.la \
-                  libxcb-xlib.la \
-                  libxcb-composite.la \
-                  libxcb-damage.la \
-                  libxcb-dpms.la \
-                  libxcb-glx.la \
-                  libxcb-randr.la \
-                  libxcb-record.la \
-                  libxcb-render.la \
-                  libxcb-res.la \
-                  libxcb-screensaver.la \
-                  libxcb-shape.la \
-                  libxcb-shm.la \
-                  libxcb-sync.la \
-                  libxcb-xevie.la \
-                  libxcb-xf86dri.la \
-                  libxcb-xfixes.la \
-		  libxcb-xinerama.la \
-                  libxcb-xprint.la \
-                  libxcb-xtest.la \
-                  libxcb-xv.la \
-                  libxcb-xvmc.la
+                  libxcb-xlib.la
+
+if BUILD_COMPOSITE
+lib_LTLIBRARIES += libxcb-composite.la
+endif
+if BUILD_DAMAGE
+lib_LTLIBRARIES += libxcb-damage.la
+endif
+if BUILD_DPMS
+lib_LTLIBRARIES += libxcb-dpms.la
+endif
+if BUILD_GLX
+lib_LTLIBRARIES += libxcb-glx.la
+endif
+if BUILD_RANDR
+lib_LTLIBRARIES += libxcb-randr.la
+endif
+if BUILD_RECORD
+lib_LTLIBRARIES += libxcb-record.la
+endif
+if BUILD_RENDER
+lib_LTLIBRARIES += libxcb-render.la
+endif
+if BUILD_RES
+lib_LTLIBRARIES += libxcb-res.la
+endif
+if BUILD_SCREENSAVER
+lib_LTLIBRARIES += libxcb-screensaver.la
+endif
+if BUILD_SHAPE
+lib_LTLIBRARIES += libxcb-shape.la
+endif
+if BUILD_SHM
+lib_LTLIBRARIES += libxcb-shm.la
+endif
+if BUILD_SYNC
+lib_LTLIBRARIES += libxcb-sync.la
+endif
+if BUILD_XEVIE
+lib_LTLIBRARIES += libxcb-xevie.la
+endif
+if BUILD_XF86DRI
+lib_LTLIBRARIES += libxcb-xf86dri.la
+endif
+if BUILD_XFIXES
+lib_LTLIBRARIES += libxcb-xfixes.la
+endif
+if BUILD_XINERAMA
+lib_LTLIBRARIES += libxcb-xinerama.la
+endif
+if BUILD_XPRINT
+lib_LTLIBRARIES += libxcb-xprint.la
+endif
+if BUILD_XTEST
+lib_LTLIBRARIES += libxcb-xtest.la
+endif
+if BUILD_XV
+lib_LTLIBRARIES += libxcb-xv.la
+endif
+if BUILD_XVMC
+lib_LTLIBRARIES += libxcb-xvmc.la
+endif
+
+
 
 EXTHEADERS =	xproto.h \
 		bigreq.h \
-		composite.h \
-		damage.h \
-		dpms.h \
-		glx.h \
-		randr.h \
-		record.h \
-		render.h \
-		res.h \
-		screensaver.h \
-		shape.h \
-		shm.h \
-		sync.h \
-		xc_misc.h \
-		xevie.h \
-		xf86dri.h \
-		xfixes.h \
-		xinerama.h \
-		xprint.h \
-		xtest.h \
-		xv.h \
-		xvmc.h
+		xc_misc.h
+
+if BUILD_COMPOSITE
+EXTHEADERS += composite.h
+endif
+if BUILD_DAMAGE
+EXTHEADERS += damage.h
+endif
+if BUILD_DPMS
+EXTHEADERS += dpms.h
+endif
+if BUILD_GLX
+EXTHEADERS += glx.h
+endif
+if BUILD_RANDR
+EXTHEADERS += randr.h
+endif
+if BUILD_RECORD
+EXTHEADERS += record.h
+endif
+if BUILD_RENDER
+EXTHEADERS += render.h
+endif
+if BUILD_RES
+EXTHEADERS += res.h
+endif
+if BUILD_SCREENSAVER
+EXTHEADERS += screensaver.h
+endif
+if BUILD_SHAPE
+EXTHEADERS += shape.h
+endif
+if BUILD_SHM
+EXTHEADERS += shm.h
+endif
+if BUILD_SYNC
+EXTHEADERS += sync.h
+endif
+if BUILD_XEVIE
+EXTHEADERS += xevie.h
+endif
+if BUILD_XF86DRI
+EXTHEADERS += xf86dri.h
+endif
+if BUILD_XFIXES
+EXTHEADERS += xfixes.h
+endif
+if BUILD_XINERAMA
+EXTHEADERS += xinerama.h
+endif
+if BUILD_XPRINT
+EXTHEADERS += xprint.h
+endif
+if BUILD_XTEST
+EXTHEADERS += xtest.h
+endif
+if BUILD_XV
+EXTHEADERS += xv.h
+endif
+if BUILD_XVMC
+EXTHEADERS += xvmc.h
+endif
+
+
+
 EXTSOURCES =	xproto.c \
 		bigreq.c \
-		composite.c \
-		damage.c \
-		dpms.c \
-		glx.c \
-		randr.c \
-		record.c \
-		render.c \
-		res.c \
-		screensaver.c \
-		shape.c \
-		shm.c \
-		sync.c \
-		xc_misc.c \
-		xevie.c \
-		xf86dri.c \
-		xfixes.c \
-		xinerama.c \
-		xprint.c \
-		xtest.c \
-		xv.c \
-		xvmc.c
+		xc_misc.c
+
+if BUILD_COMPOSITE
+EXTSOURCES += composite.c
+endif
+if BUILD_DAMAGE
+EXTSOURCES += damage.c
+endif
+if BUILD_DPMS
+EXTSOURCES += dpms.c
+endif
+if BUILD_GLX
+EXTSOURCES += glx.c
+endif
+if BUILD_RANDR
+EXTSOURCES += randr.c
+endif
+if BUILD_RECORD
+EXTSOURCES += record.c
+endif
+if BUILD_RENDER
+EXTSOURCES += render.c
+endif
+if BUILD_RES
+EXTSOURCES += res.c
+endif
+if BUILD_SCREENSAVER
+EXTSOURCES += screensaver.c
+endif
+if BUILD_SHAPE
+EXTSOURCES += shape.c
+endif
+if BUILD_SHM
+EXTSOURCES += shm.c
+endif
+if BUILD_SYNC
+EXTSOURCES += sync.c
+endif
+if BUILD_XEVIE
+EXTSOURCES += xevie.c
+endif
+if BUILD_XF86DRI
+EXTSOURCES += xf86dri.c
+endif
+if BUILD_XFIXES
+EXTSOURCES += xfixes.c
+endif
+if BUILD_XINERAMA
+EXTSOURCES += xinerama.c
+endif
+if BUILD_XPRINT
+EXTSOURCES += xprint.c
+endif
+if BUILD_XTEST
+EXTSOURCES += xtest.c
+endif
+if BUILD_XV
+EXTSOURCES += xv.c
+endif
+if BUILD_XVMC
+EXTSOURCES += xvmc.c
+endif
+
+
+
 EXTENSION_XML = xproto.xml \
 		bigreq.xml \
-		composite.xml \
-		damage.xml \
-		dpms.xml \
-		glx.xml \
-		randr.xml \
-		record.xml \
-		render.xml \
-		res.xml \
-		screensaver.xml \
-		shape.xml \
-		shm.xml \
-		sync.xml \
-		xc_misc.xml \
-		xevie.xml \
-		xf86dri.xml \
-		xfixes.xml \
-		xinerama.xml \
-		xprint.xml \
-		xtest.xml \
-		xvmc.xml \
-		xv.xml
+		xc_misc.xml
+
+if BUILD_COMPOSITE
+EXTENSION_XML += composite.xml
+endif
+if BUILD_DAMAGE
+EXTENSION_XML += damage.xml
+endif
+if BUILD_DPMS
+EXTENSION_XML += dpms.xml
+endif
+if BUILD_GLX
+EXTENSION_XML += glx.xml
+endif
+if BUILD_RANDR
+EXTENSION_XML += randr.xml
+endif
+if BUILD_RECORD
+EXTENSION_XML += record.xml
+endif
+if BUILD_RENDER
+EXTENSION_XML += render.xml
+endif
+if BUILD_RES
+EXTENSION_XML += res.xml
+endif
+if BUILD_SCREENSAVER
+EXTENSION_XML += screensaver.xml
+endif
+if BUILD_SHAPE
+EXTENSION_XML += shape.xml
+endif
+if BUILD_SHM
+EXTENSION_XML += shm.xml
+endif
+if BUILD_SYNC
+EXTENSION_XML += sync.xml
+endif
+if BUILD_XEVIE
+EXTENSION_XML += xevie.xml
+endif
+if BUILD_XF86DRI
+EXTENSION_XML += xf86dri.xml
+endif
+if BUILD_XFIXES
+EXTENSION_XML += xfixes.xml
+endif
+if BUILD_XINERAMA
+EXTENSION_XML += xinerama.xml
+endif
+if BUILD_XPRINT
+EXTENSION_XML += xprint.xml
+endif
+if BUILD_XTEST
+EXTENSION_XML += xtest.xml
+endif
+if BUILD_XV
+EXTENSION_XML += xv.xml
+endif
+if BUILD_XVMC
+EXTENSION_XML += xvmc.xml
+endif
+
+
 
 xcbinclude_HEADERS = xcb.h xcbext.h xcbxlib.h $(EXTHEADERS)
 noinst_HEADERS = xcbint.h
@@ -119,87 +293,191 @@ libxcb_xlib_la_LDFLAGS = -version-info 0:0:0
 libxcb_xlib_la_LIBADD = $(XCB_LIBS)
 libxcb_xlib_la_SOURCES = xcb_xlib.c
 
-# FIXME: find a way to autogenerate this from the XML files.
-
+if BUILD_COMPOSITE
 libxcb_composite_la_LDFLAGS = -version-info 0:0:0
-libxcb_composite_la_LIBADD = $(XCB_LIBS)
-libxcb_composite_la_SOURCES = composite.c composite.h
-
+endif
+if BUILD_DAMAGE
 libxcb_damage_la_LDFLAGS = -version-info 0:0:0
-libxcb_damage_la_LIBADD = $(XCB_LIBS)
-libxcb_damage_la_SOURCES = damage.c damage.h
-
+endif
+if BUILD_DPMS
 libxcb_dpms_la_LDFLAGS = -version-info 0:0:0
-libxcb_dpms_la_LIBADD = $(XCB_LIBS)
-libxcb_dpms_la_SOURCES = dpms.c dpms.h
-
+endif
+if BUILD_GLX
 libxcb_glx_la_LDFLAGS = -version-info 0:0:0
-libxcb_glx_la_LIBADD = $(XCB_LIBS)
-libxcb_glx_la_SOURCES = glx.c glx.h
-
+endif
+if BUILD_RANDR
 libxcb_randr_la_LDFLAGS = -version-info 0:0:0
-libxcb_randr_la_LIBADD = $(XCB_LIBS)
-libxcb_randr_la_SOURCES = randr.c randr.h
-
+endif
+if BUILD_RECORD
 libxcb_record_la_LDFLAGS = -version-info 0:0:0
-libxcb_record_la_LIBADD = $(XCB_LIBS)
-libxcb_record_la_SOURCES = record.c record.h
-
+endif
+if BUILD_RENDER
 libxcb_render_la_LDFLAGS = -version-info 0:0:0
-libxcb_render_la_LIBADD = $(XCB_LIBS)
-libxcb_render_la_SOURCES = render.c render.h
-
+endif
+if BUILD_RES
 libxcb_res_la_LDFLAGS = -version-info 0:0:0
-libxcb_res_la_LIBADD = $(XCB_LIBS)
-libxcb_res_la_SOURCES = res.c res.h
-
+endif
+if BUILD_SCREENSAVER
 libxcb_screensaver_la_LDFLAGS = -version-info 0:0:0
-libxcb_screensaver_la_LIBADD = $(XCB_LIBS)
-libxcb_screensaver_la_SOURCES = screensaver.c screensaver.h
-
+endif
+if BUILD_SHAPE
 libxcb_shape_la_LDFLAGS = -version-info 0:0:0
-libxcb_shape_la_LIBADD = $(XCB_LIBS)
-libxcb_shape_la_SOURCES = shape.c shape.h
-
+endif
+if BUILD_SHM
 libxcb_shm_la_LDFLAGS = -version-info 0:0:0
-libxcb_shm_la_LIBADD = $(XCB_LIBS)
-libxcb_shm_la_SOURCES = shm.c shm.h
-
+endif
+if BUILD_SYNC
 libxcb_sync_la_LDFLAGS = -version-info 0:0:0
-libxcb_sync_la_LIBADD = $(XCB_LIBS)
-libxcb_sync_la_SOURCES = sync.c sync.h
-
+endif
+if BUILD_XEVIE
 libxcb_xevie_la_LDFLAGS = -version-info 0:0:0
-libxcb_xevie_la_LIBADD = $(XCB_LIBS)
-libxcb_xevie_la_SOURCES = xevie.c xevie.h
-
+endif
+if BUILD_XF86DRI
 libxcb_xf86dri_la_LDFLAGS = -version-info 0:0:0
-libxcb_xf86dri_la_LIBADD = $(XCB_LIBS)
-libxcb_xf86dri_la_SOURCES = xf86dri.c xf86dri.h
-
+endif
+if BUILD_XFIXES
 libxcb_xfixes_la_LDFLAGS = -version-info 0:0:0
-libxcb_xfixes_la_LIBADD = $(XCB_LIBS)
-libxcb_xfixes_la_SOURCES = xfixes.c xfixes.h
-
+endif
+if BUILD_XINERAMA
+libxcb_xinerama_la_LDFLAGS = -version-info 0:0:0
+endif
+if BUILD_XPRINT
 libxcb_xprint_la_LDFLAGS = -version-info 0:0:0
-libxcb_xprint_la_LIBADD = $(XCB_LIBS)
-libxcb_xprint_la_SOURCES = xprint.c xprint.h
-
+endif
+if BUILD_XTEST
 libxcb_xtest_la_LDFLAGS = -version-info 0:0:0
-libxcb_xtest_la_LIBADD = $(XCB_LIBS)
-libxcb_xtest_la_SOURCES = xtest.c xtest.h
-
+endif
+if BUILD_XV
 libxcb_xv_la_LDFLAGS = -version-info 0:0:0
-libxcb_xv_la_LIBADD = $(XCB_LIBS)
-libxcb_xv_la_SOURCES = xv.c xv.h
-
+endif
+if BUILD_XVMC
 libxcb_xvmc_la_LDFLAGS = -version-info 0:0:0
-libxcb_xvmc_la_LIBADD = $(XCB_LIBS)
-libxcb_xvmc_la_SOURCES = xvmc.c xvmc.h
+endif
 
-libxcb_xinerama_la_LDFLAGS = -version-info 0:0:0
+
+if BUILD_COMPOSITE
+libxcb_composite_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_DAMAGE
+libxcb_damage_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_DPMS
+libxcb_dpms_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_GLX
+libxcb_glx_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_RANDR
+libxcb_randr_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_RECORD
+libxcb_record_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_RENDER
+libxcb_render_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_RES
+libxcb_res_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_SCREENSAVER
+libxcb_screensaver_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_SHAPE
+libxcb_shape_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_SHM
+libxcb_shm_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_SYNC
+libxcb_sync_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_XEVIE
+libxcb_xevie_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_XF86DRI
+libxcb_xf86dri_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_XFIXES
+libxcb_xfixes_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_XINERAMA
 libxcb_xinerama_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_XPRINT
+libxcb_xprint_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_XTEST
+libxcb_xtest_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_XV
+libxcb_xv_la_LIBADD = $(XCB_LIBS)
+endif
+if BUILD_XVMC
+libxcb_xvmc_la_LIBADD = $(XCB_LIBS)
+endif
+
+
+if BUILD_COMPOSITE
+libxcb_composite_la_SOURCES = composite.c composite.h
+endif
+if BUILD_DAMAGE
+libxcb_damage_la_SOURCES = damage.c damage.h
+endif
+if BUILD_DPMS
+libxcb_dpms_la_SOURCES = dpms.c dpms.h
+endif
+if BUILD_GLX
+libxcb_glx_la_SOURCES = glx.c glx.h
+endif
+if BUILD_RANDR
+libxcb_randr_la_SOURCES = randr.c randr.h
+endif
+if BUILD_RECORD
+libxcb_record_la_SOURCES = record.c record.h
+endif
+if BUILD_RENDER
+libxcb_render_la_SOURCES = render.c render.h
+endif
+if BUILD_RES
+libxcb_res_la_SOURCES = res.c res.h
+endif
+if BUILD_SCREENSAVER
+libxcb_screensaver_la_SOURCES = screensaver.c screensaver.h
+endif
+if BUILD_SHAPE
+libxcb_shape_la_SOURCES = shape.c shape.h
+endif
+if BUILD_SHM
+libxcb_shm_la_SOURCES = shm.c shm.h
+endif
+if BUILD_SYNC
+libxcb_sync_la_SOURCES = sync.c sync.h
+endif
+if BUILD_XEVIE
+libxcb_xevie_la_SOURCES = xevie.c xevie.h
+endif
+if BUILD_XF86DRI
+libxcb_xf86dri_la_SOURCES = xf86dri.c xf86dri.h
+endif
+if BUILD_XFIXES
+libxcb_xfixes_la_SOURCES = xfixes.c xfixes.h
+endif
+if BUILD_XINERAMA
 libxcb_xinerama_la_SOURCES = xinerama.c xinerama.h
+endif
+if BUILD_XPRINT
+libxcb_xprint_la_SOURCES = xprint.c xprint.h
+endif
+if BUILD_XTEST
+libxcb_xtest_la_SOURCES = xtest.c xtest.h
+endif
+if BUILD_XV
+libxcb_xv_la_SOURCES = xv.c xv.h
+endif
+if BUILD_XVMC
+libxcb_xvmc_la_SOURCES = xvmc.c xvmc.h
+endif
+
 
 $(EXTHEADERS) $(EXTSOURCES): c-client.xsl
 

-- 
Eamon Walsh <ewalsh at tycho.nsa.gov>
National Security Agency



More information about the Xcb mailing list