Permalink
Browse files

Blank slate - remove build infrastructure, broad project restructuring.

  • Loading branch information...
1 parent 557fa40 commit ddfdd798fbc321e9cadc21ccb7bf13345ff0d3f6 @cortesi cortesi committed Dec 18, 2009
View
@@ -1,6 +0,0 @@
-SUBDIRS=src doc
-
-pkgconfigdir = $(libdir)/pkgconfig
-
-pkgconfig_DATA = xpyb.pc
-dist_doc_DATA = README COPYING INSTALL NEWS
View
@@ -1,12 +0,0 @@
-#! /bin/sh
-
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-ORIGDIR=`pwd`
-cd $srcdir
-
-autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
-
-$srcdir/configure --enable-maintainer-mode "$@"
View
@@ -1,119 +0,0 @@
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ(2.57)
-AC_INIT([xpyb],
- 1.2,
- [xcb@lists.freedesktop.org])
-AC_CONFIG_SRCDIR([xpyb.pc.in])
-AM_INIT_AUTOMAKE([foreign dist-bzip2])
-
-AM_PATH_PYTHON([2.5])
-AC_MSG_CHECKING([for python include dir])
-PYTHON_INCLUDE=`$PYTHON -c "from distutils import sysconfig; \
- print sysconfig.get_python_inc()"`
-if test -z "${PYTHON_INCLUDE}"; then
- AC_MSG_ERROR([Failed to find Python include directory.
- Check your Python installation.])
-fi
-
-AC_MSG_RESULT([$PYTHON_INCLUDE])
-AC_SUBST([PYTHON_INCLUDE])
-
-AC_CONFIG_HEADERS([src/config.h])
-
-AC_DISABLE_STATIC
-AC_PROG_LIBTOOL
-AC_PROG_CC
-
-# Checks for pkg-config packages
-PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 1.1)
-PKG_CHECK_MODULES(LIBXCB, xcb >= 1.1)
-
-# Find the xcb-proto protocol descriptions
-AC_MSG_CHECKING([for xcb-proto include dir])
-XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
-AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
-AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
-
-# Find the xcbgen Python package
-AC_MSG_CHECKING([for xcb-proto python dir])
-XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
-AC_MSG_RESULT($XCBPROTO_XCBPYTHONDIR)
-AC_SUBST(XCBPROTO_XCBPYTHONDIR)
-
-AC_HEADER_STDC
-if test "x$GCC" = xyes ; then
- CWARNFLAGS="-Wall -Wmissing-declarations"
-else
- AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
- if test "x$SUNCC" = "xyes"; then
- CWARNFLAGS="-v"
- fi
-fi
-AC_SUBST(CWARNFLAGS)
-
-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(xinput, AS_HELP_STRING([--enable-xinput], [Build XCB XInput Extension (EXPERIMENTAL) (default: no)]), [BUILD_XINPUT=$enableval], [BUILD_XINPUT=no])
-AM_CONDITIONAL(BUILD_XINPUT, [test "x$BUILD_XINPUT" = 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(xselinux, AS_HELP_STRING([--enable-xselinux], [Build XCB SELinux Extension (default: no)]), [BUILD_SELINUX=$enableval], [BUILD_SELINUX=no])
-AM_CONDITIONAL(BUILD_SELINUX, [test "x$BUILD_SELINUX" = 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 doc/Makefile])
-AC_CONFIG_FILES([xpyb.pc])
-
-AC_OUTPUT
-
-dnl Configuration output
-
-echo ""
-echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
-echo ""
-echo " Used CFLAGS:"
-echo " CPPFLAGS............: ${CPPFLAGS}"
-echo " CFLAGS..............: ${CFLAGS}"
-echo " Warning CFLAGS......: ${CWARNFLAGS}"
-echo ""
-echo " Installation:"
-echo " Prefix..............: ${prefix}"
-echo ""
View
@@ -1,151 +0,0 @@
-EXTSOURCES = xproto.py \
- bigreq.py \
- xc_misc.py
-EXTENSION_XML = xproto.xml \
- bigreq.xml \
- xc_misc.xml
-
-pkgpythondir = $(pyexecdir)/xcb
-
-pkgpython_LTLIBRARIES = xcb.la
-
-xcb_la_LIBADD = $(LIBXCB_LIBS)
-xcb_la_CPPFLAGS = -I$(PYTHON_INCLUDE)
-xcb_la_CFLAGS = -g $(CWARNFLAGS)
-xcb_la_LDFLAGS = -module
-xcb_la_SOURCES = conn.c constant.c cookie.c error.c event.c except.c \
- ext.c extkey.c iter.c list.c module.c protobj.c \
- reply.c request.c response.c struct.c union.c void.c \
- py_client.py
-
-noinst_HEADERS = conn.h constant.h cookie.h error.h event.h except.h \
- ext.h extkey.h iter.h list.h module.h protobj.h \
- reply.h request.h response.h struct.h union.h void.h
-
-# FIXME: find a way to autogenerate this from the XML files.
-
-if BUILD_COMPOSITE
-EXTSOURCES += composite.py
-EXTENSION_XML += composite.xml
-endif
-
-if BUILD_DAMAGE
-EXTSOURCES += damage.py
-EXTENSION_XML += damage.xml
-endif
-
-if BUILD_DPMS
-EXTSOURCES += dpms.py
-EXTENSION_XML += dpms.xml
-endif
-
-if BUILD_GLX
-EXTSOURCES += glx.py
-EXTENSION_XML += glx.xml
-endif
-
-if BUILD_RANDR
-EXTSOURCES += randr.py
-EXTENSION_XML += randr.xml
-endif
-
-if BUILD_RECORD
-EXTSOURCES += record.py
-EXTENSION_XML += record.xml
-endif
-
-if BUILD_RENDER
-EXTSOURCES += render.py
-EXTENSION_XML += render.xml
-endif
-
-if BUILD_RES
-EXTSOURCES += res.py
-EXTENSION_XML += res.xml
-endif
-
-if BUILD_SCREENSAVER
-EXTSOURCES += screensaver.py
-EXTENSION_XML += screensaver.xml
-endif
-
-if BUILD_SHAPE
-EXTSOURCES += shape.py
-EXTENSION_XML += shape.xml
-endif
-
-if BUILD_SHM
-EXTSOURCES += shm.py
-EXTENSION_XML += shm.xml
-endif
-
-if BUILD_SYNC
-EXTSOURCES += sync.py
-EXTENSION_XML += sync.xml
-endif
-
-if BUILD_XEVIE
-EXTSOURCES += xevie.py
-EXTENSION_XML += xevie.xml
-endif
-
-if BUILD_XF86DRI
-EXTSOURCES += xf86dri.py
-EXTENSION_XML += xf86dri.xml
-endif
-
-if BUILD_XFIXES
-EXTSOURCES += xfixes.py
-EXTENSION_XML += xfixes.xml
-endif
-
-if BUILD_XINERAMA
-EXTSOURCES += xinerama.py
-EXTENSION_XML += xinerama.xml
-endif
-
-if BUILD_XINPUT
-EXTSOURCES += xinput.py
-EXTENSION_XML += xinput.xml
-endif
-
-if BUILD_XPRINT
-EXTSOURCES += xprint.py
-EXTENSION_XML += xprint.xml
-endif
-
-if BUILD_SELINUX
-EXTSOURCES += xselinux.py
-EXTENSION_XML += xselinux.xml
-endif
-
-if BUILD_XTEST
-EXTSOURCES += xtest.py
-EXTENSION_XML += xtest.xml
-endif
-
-if BUILD_XV
-EXTSOURCES += xv.py
-EXTENSION_XML += xv.xml
-endif
-
-if BUILD_XVMC
-EXTSOURCES += xvmc.py
-EXTENSION_XML += xvmc.xml
-endif
-
-
-pkgpython_PYTHON = __init__.py $(EXTSOURCES)
-
-BUILT_SOURCES = $(EXTSOURCES)
-CLEANFILES = $(EXTSOURCES) $(EXTENSION_XML)
-
-$(EXTSOURCES): py_client.py
-
-SUFFIXES = .xml
-
-.xml.py:
- $(PYTHON) $(srcdir)/py_client.py -p $(XCBPROTO_XCBPYTHONDIR) $(XCBPROTO_XCBINCLUDEDIR)/$<
-
-$(EXTENSION_XML):
- $(LN_S) -f $(XCBPROTO_XCBINCLUDEDIR)/$@ $@
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,10 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: XPyB
-Description: X-protocol Python Binding
-Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lxcb
-Cflags: -I${includedir}

0 comments on commit ddfdd79

Please sign in to comment.