[goocanvas/introspection] Autotools foo for pygobject overrides
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvas/introspection] Autotools foo for pygobject overrides
- Date: Thu, 26 May 2011 09:07:06 +0000 (UTC)
commit 100aca9a748acdf7b1ed3382bd282866507f4377
Author: John Stowers <john stowers gmail com>
Date: Thu May 26 21:06:43 2011 +1200
Autotools foo for pygobject overrides
Makefile.am | 2 +-
bindings/Makefile.am | 1 +
bindings/python/Makefile.am | 5 +++++
configure.in | 25 +++++++++++++++++++++++++
4 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 0e7993c..273e4d3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-SUBDIRS = src demo docs po
+SUBDIRS = src demo docs po bindings
# require automake 1.7
AUTOMAKE_OPTIONS = 1.7
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
new file mode 100644
index 0000000..96fcb3e
--- /dev/null
+++ b/bindings/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = python
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
new file mode 100644
index 0000000..5e260ec
--- /dev/null
+++ b/bindings/python/Makefile.am
@@ -0,0 +1,5 @@
+if ENABLE_PYTHON
+overridesdir = $(pyoverridesdir)
+overrides_PYTHON = \
+ GooCanvas.py
+endif
diff --git a/configure.in b/configure.in
index 91034e9..364e1d3 100644
--- a/configure.in
+++ b/configure.in
@@ -28,6 +28,8 @@ AM_PROG_LIBTOOL
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+PYGOBJECT_REQUIRED=2.28
+
pkg_modules="gtk+-3.0 >= 3.0.0 glib-2.0 >= 2.28.0 cairo >= 1.10.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
@@ -77,6 +79,27 @@ esac
AC_MSG_RESULT([$platform_win32])
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
+AM_PATH_PYTHON
+
+AC_ARG_ENABLE([python],
+ AS_HELP_STRING([--enable-python[=@<:@no/auto/yes@:>@]],[Build with python support]),
+ [enable_python=$enableval],
+ [enable_python="auto"])
+
+if test "x$enable_python" = "xauto"; then
+ PKG_CHECK_EXISTS([pygobject-2.0 >= $PYGOBJECT_REQUIRED],
+ [enable_python=yes],[enable_python=no])
+fi
+
+if test "x$enable_python" = "xyes"; then
+ PKG_CHECK_MODULES(PYTHON, [pygobject-2.0 >= $PYGOBJECT_REQUIRED])
+
+ pyoverridesdir=`$PKG_CONFIG --variable=overridesdir pygobject-2.0`
+ AC_SUBST(pyoverridesdir)
+fi
+
+AM_CONDITIONAL(ENABLE_PYTHON, test x"$enable_python" = "xyes")
+
GTK_DOC_CHECK(1.8)
AC_OUTPUT([
@@ -84,6 +107,8 @@ Makefile
src/Makefile
demo/Makefile
docs/Makefile
+bindings/Makefile
+bindings/python/Makefile
po/Makefile.in
goocanvas-2.0.pc
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]