[telepathy-python/master] Initial autotools-ing of telepathy-python.
Jonny Lamb
jonny.lamb at collabora.co.uk
Tue Aug 25 11:07:36 PDT 2009
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
Makefile.am | 6 +++
autogen.sh | 51 ++++++++++++++++++++++++++++
configure.ac | 44 ++++++++++++++++++++++++
examples/Makefile.am | 21 +++++++++++
spec/Makefile.am | 58 +++++++++++++++++++++++++++++++
src/Makefile.am | 88 ++++++++++++++++++++++++++++++++++++++++++++++++
src/_version.py.in | 5 +++
src/client/Makefile.am | 11 ++++++
src/server/Makefile.am | 15 ++++++++
tools/Makefile.am | 6 +++
10 files changed, 305 insertions(+), 0 deletions(-)
create mode 100644 ChangeLog
create mode 100644 Makefile.am
create mode 100755 autogen.sh
create mode 100644 configure.ac
create mode 100644 examples/Makefile.am
create mode 100644 spec/Makefile.am
create mode 100644 src/Makefile.am
create mode 100644 src/_version.py.in
create mode 100644 src/client/Makefile.am
create mode 100644 src/server/Makefile.am
create mode 100644 tools/Makefile.am
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..e69de29
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..363abe6
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,6 @@
+SUBDIRS = examples src spec tools
+
+EXTRA_DIST = \
+ NEWS \
+ AUTHORS \
+ COPYING
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..c26ae0e
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+PROJECT=telepathy-python
+
+test -f configure.ac || {
+ echo "You must run this script in the top-level $PROJECT directory">&2
+ exit 1
+}
+
+(autoreconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf, automake and libtoolize installed">&2
+ echo "to compile $PROJECT. Download the appropriate packages for">&2
+ echo "your distribution, or get the source tarball at ">&2
+ echo "ftp://ftp.gnu.org/pub/gnu/">&2
+ exit 1
+}
+
+if test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
+fi
+
+echo "Running autoreconf -f -i..."
+autoreconf -f -i
+
+cd $ORIGDIR
+
+run_configure=true
+for arg in $*; do
+ case $arg in
+ --no-configure)
+ run_configure=false
+ ;;
+ *)
+ ;;
+ esac
+done
+
+if $run_configure; then
+ $srcdir/configure --config-cache "$@"
+ echo
+ echo "Now run 'make' to compile $PROJECT."
+fi
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..6da032f
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,44 @@
+-*- mode: m4 -*-
+AC_PREREQ(2.59c)
+
+dnl If not 1, append datestamp to the version number
+m4_define(telepathy_python_released, 0)
+dnl The telepathy-python version number (must actually be numeric at the moment)
+m4_define(telepathy_python_major_version, 0)
+m4_define(telepathy_python_minor_version, 15)
+m4_define(telepathy_python_micro_version, 11)
+
+m4_define(telepathy_python_maybe_datestamp,
+ m4_esyscmd([if test x]telepathy_python_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
+
+m4_define(telepathy_python_version, telepathy_python_major_version.telepathy_python_minor_version.telepathy_python_micro_version[]telepathy_python_maybe_datestamp)
+
+AC_INIT(telepathy-python, telepathy_python_version,
+ [http://bugs.freedesktop.org/enter_bug.cgi?product=Telepathy&component=telepathy-python])
+AM_INIT_AUTOMAKE
+
+AC_DEFINE(TELEPATHY_PYTHON_MAJOR_VERSION, telepathy_python_major_version, [telepathy-python major version])
+AC_SUBST(TELEPATHY_PYTHON_MAJOR_VERSION, telepathy_python_major_version)
+AC_DEFINE(TELEPATHY_PYTHON_MINOR_VERSION, telepathy_python_minor_version, [telepathy-python minor version])
+AC_SUBST(TELEPATHY_PYTHON_MINOR_VERSION, telepathy_python_minor_version)
+AC_DEFINE(TELEPATHY_PYTHON_MICRO_VERSION, telepathy_python_micro_version, [telepathy-python micro version])
+AC_SUBST(TELEPATHY_PYTHON_MICRO_VERSION, telepathy_python_micro_version)
+
+AM_PATH_PYTHON(2.4.0)
+
+XSLTPROC=
+AC_CHECK_PROGS([XSLTPROC], [xsltproc])
+if test -z "$XSLTPROC"; then
+ AC_MSG_ERROR([xsltproc (from the libxslt source package) is required])
+fi
+
+AC_CONFIG_FILES(
+ Makefile
+ examples/Makefile
+ src/Makefile
+ spec/Makefile
+ src/client/Makefile
+ src/server/Makefile
+ tools/Makefile
+ src/_version.py)
+AC_OUTPUT
diff --git a/examples/Makefile.am b/examples/Makefile.am
new file mode 100644
index 0000000..3f104f0
--- /dev/null
+++ b/examples/Makefile.am
@@ -0,0 +1,21 @@
+EXTRA_DIST = \
+ account.py \
+ call.py \
+ file-transfer.py \
+ roomlist.py \
+ tube-dbus-muc.py \
+ aliases.py \
+ chatroom.py \
+ generate-manager-file.py \
+ roster.py \
+ tube-stream-muc.py
+ avatar.py \
+ connections.py \
+ message.py \
+ stream_tube_client.py \
+ tube-stream-private.py
+ call-gtk.py \
+ deny.py \
+ register.py \
+ tubeconn.py \
+ watch.py
diff --git a/spec/Makefile.am b/spec/Makefile.am
new file mode 100644
index 0000000..99c428c
--- /dev/null
+++ b/spec/Makefile.am
@@ -0,0 +1,58 @@
+EXTRA_DIST = \
+ Account_Interface_Avatar.xml \
+ Account_Manager.xml \
+ Account.xml \
+ all.xml \
+ Channel_Bundle.xml \
+ Channel_Dispatcher_Interface_Operation_List.xml \
+ Channel_Dispatcher.xml \
+ Channel_Dispatch_Operation.xml \
+ Channel_Future.xml \
+ Channel_Handler.xml \
+ Channel_Interface_Call_Merging.xml \
+ Channel_Interface_Call_State.xml \
+ Channel_Interface_Chat_State.xml \
+ Channel_Interface_Destroyable.xml \
+ Channel_Interface_DTMF.xml \
+ Channel_Interface_Group.xml \
+ Channel_Interface_Hold.xml \
+ Channel_Interface_HTML.xml \
+ Channel_Interface_Media_Signalling.xml \
+ Channel_Interface_Messages.xml \
+ Channel_Interface_Password.xml \
+ Channel_Interface_Transfer.xml \
+ Channel_Interface_Tube.xml \
+ Channel_Request.xml \
+ Channel_Type_Contact_List.xml \
+ Channel_Type_Contact_Search.xml \
+ Channel_Type_DBus_Tube.xml \
+ Channel_Type_File_Transfer.xml \
+ Channel_Type_Room_List.xml \
+ Channel_Type_Streamed_Media.xml \
+ Channel_Type_Stream_Tube.xml \
+ Channel_Type_Text.xml \
+ Channel_Type_Tubes.xml \
+ Channel.xml \
+ Client_Approver.xml \
+ Client_Handler.xml \
+ Client_Observer.xml \
+ Client.xml \
+ Connection_Interface_Aliasing.xml \
+ Connection_Interface_Avatars.xml \
+ Connection_Interface_Capabilities.xml \
+ Connection_Interface_Contact_Capabilities.xml \
+ Connection_Interface_Contact_Info.xml \
+ Connection_Interface_Contacts.xml \
+ Connection_Interface_Forwarding.xml \
+ Connection_Interface_Presence.xml \
+ Connection_Interface_Privacy.xml \
+ Connection_Interface_Renaming.xml \
+ Connection_Interface_Requests.xml \
+ Connection_Interface_Simple_Presence.xml \
+ Connection_Manager.xml \
+ Connection.xml \
+ errors.xml \
+ generic-types.xml \
+ Media_Session_Handler.xml \
+ Media_Stream_Handler.xml \
+ Properties_Interface.xml
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..742911a
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,88 @@
+SUBDIRS = client server
+
+telepathydir = $(pythondir)/telepathy
+telepathy_PYTHON = \
+ constants.py \
+ errors.py \
+ __init__.py \
+ interfaces.py \
+ utils.py \
+ _version.py \
+ $(BUILT_SOURCES)
+
+spec_files= \
+ _generated/Account_Interface_Avatar.py \
+ _generated/Account_Manager.py \
+ _generated/Account.py \
+ _generated/Channel_Handler.py \
+ _generated/Channel_Interface_Call_State.py \
+ _generated/Channel_Interface_Chat_State.py \
+ _generated/Channel_Interface_Destroyable.py \
+ _generated/Channel_Interface_DTMF.py \
+ _generated/Channel_Interface_Group.py \
+ _generated/Channel_Interface_Hold.py \
+ _generated/Channel_Interface_Media_Signalling.py \
+ _generated/Channel_Interface_Messages.py \
+ _generated/Channel_Interface_Password.py \
+ _generated/Channel_Type_Contact_List.py \
+ _generated/Channel_Type_Room_List.py \
+ _generated/Channel_Type_Streamed_Media.py \
+ _generated/Channel_Type_Text.py \
+ _generated/Channel_Type_Tubes.py \
+ _generated/Channel.py \
+ _generated/Connection_Interface_Aliasing.py \
+ _generated/Connection_Interface_Avatars.py \
+ _generated/Connection_Interface_Capabilities.py \
+ _generated/Connection_Interface_Contact_Capabilities.py \
+ _generated/Connection_Interface_Contacts.py \
+ _generated/Connection_Interface_Presence.py \
+ _generated/Connection_Interface_Requests.py \
+ _generated/Connection_Interface_Simple_Presence.py \
+ _generated/Connection_Manager.py \
+ _generated/Connection.py \
+ _generated/Media_Session_Handler.py \
+ _generated/Media_Stream_Handler.py \
+ _generated/Properties_Interface.py
+
+BUILT_SOURCES = \
+ _generated/interfaces.py \
+ _generated/constants.py \
+ _generated/errors.py \
+ _generated/__init__.py \
+ ${spec_files}
+
+CLEANFILES = \
+ _version.py \
+ $(BUILT_SOURCES)
+
+EXTRA_DIST = _version.py.in
+
+distclean-local:
+ rm -rf *.pyc _generated
+
+XSLTPROC_OPTS = --nonet --novalid --xinclude
+tools_dir = $(top_srcdir)/tools
+spec_dir = $(top_srcdir)/spec
+
+_generated/interfaces.py:
+ $(XSLTPROC) $(XSLTPROC_OPTS) -o $@ \
+ $(tools_dir)/python-interfaces-generator.xsl \
+ $(spec_dir)/all.xml
+
+_generated/constants.py:
+ $(XSLTPROC) $(XSLTPROC_OPTS) -o $@ \
+ $(tools_dir)/python-constants-generator.xsl \
+ $(spec_dir)/all.xml
+
+_generated/errors.py:
+ $(XSLTPROC) $(XSLTPROC_OPTS) -o $@ \
+ $(tools_dir)/python-errors-generator.xsl \
+ $(spec_dir)/all.xml
+
+_generated/__init__.py:
+ echo "# Placeholder for package" > $@
+
+_generated/%.py:
+ $(XSLTPROC) $(XSLTPROC_OPTS) -o $@ \
+ $(tools_dir)/spec-to-python.xsl \
+ $(spec_dir)/$*.xml
diff --git a/src/_version.py.in b/src/_version.py.in
new file mode 100644
index 0000000..5567ba6
--- /dev/null
+++ b/src/_version.py.in
@@ -0,0 +1,5 @@
+__all__ = ('version', '__version__')
+
+# @configure_input@
+version = (@TELEPATHY_PYTHON_MAJOR_VERSION@, @TELEPATHY_PYTHON_MINOR_VERSION@, @TELEPATHY_PYTHON_MICRO_VERSION@)
+__version__ = "@TELEPATHY_PYTHON_MAJOR_VERSION at .@TELEPATHY_PYTHON_MINOR_VERSION at .@TELEPATHY_PYTHON_MICRO_VERSION@"
diff --git a/src/client/Makefile.am b/src/client/Makefile.am
new file mode 100644
index 0000000..9dca44b
--- /dev/null
+++ b/src/client/Makefile.am
@@ -0,0 +1,11 @@
+telepathydir = $(pythondir)/telepathy/client
+telepathy_PYTHON = \
+ channel.py \
+ connmgr.py \
+ conn.py \
+ __init__.py \
+ interfacefactory.py \
+ managerregistry.py
+
+clean-local:
+ rm -rf *.pyc
diff --git a/src/server/Makefile.am b/src/server/Makefile.am
new file mode 100644
index 0000000..4a12557
--- /dev/null
+++ b/src/server/Makefile.am
@@ -0,0 +1,15 @@
+telepathydir = $(pythondir)/telepathy/server
+telepathy_PYTHON = \
+ channelhandler.py \
+ channelmanager.py \
+ channel.py \
+ connmgr.py \
+ conn.py \
+ debug.py \
+ handle.py \
+ __init__.py \
+ media.py \
+ properties.py
+
+clean-local:
+ rm -rf *.pyc
diff --git a/tools/Makefile.am b/tools/Makefile.am
new file mode 100644
index 0000000..5154040
--- /dev/null
+++ b/tools/Makefile.am
@@ -0,0 +1,6 @@
+EXTRA_DIST = \
+ python-constants-generator.xsl \
+ python-errors-generator.xsl \
+ python-interfaces-generator.xsl \
+ spec-to-python.xsl
+
--
1.5.6.5
More information about the telepathy-commits
mailing list