summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Welche <prlw1@cam.ac.uk>2014-01-23 23:49:51 +0000
committerPatrick Welche <prlw1@cam.ac.uk>2014-01-23 23:58:45 +0000
commit15fdd827ce4bff847fb35c817c6ea2d3650eec00 (patch)
tree4e1f8bebc562032e94752c292baa2b80bc1cf240
parentdf21dbbc84fa319af2a0f0664de436ca30df616e (diff)
downloadpygobject-15fdd827ce4bff847fb35c817c6ea2d3650eec00.tar.gz
build: Add --without-common configure option for package maintainers
https://bugzilla.gnome.org/show_bug.cgi?id=721646
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac7
-rw-r--r--gi/Makefile.am2
3 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 1ab1b634..ea0b4bac 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -80,9 +80,11 @@ all-local: build_pylinks
check-local: build_pylinks
+if WITH_COMMON
# pkg-config files
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pygobject-$(PLATFORM_VERSION).pc
+endif
# python
pyexec_LTLIBRARIES =
diff --git a/configure.ac b/configure.ac
index d9e4661f..93305f92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -226,6 +226,13 @@ if test "$enable_cairo" != no; then
fi
AM_CONDITIONAL(ENABLE_CAIRO, test "$enable_cairo" = "yes")
+AC_ARG_WITH(common,
+ AS_HELP_STRING([--without-common],
+ [For package maintainers: do not install Python version independent files]),
+ with_common=$enableval,
+ with_common=yes)
+AM_CONDITIONAL(WITH_COMMON, test "$with_common" = "yes")
+
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
diff --git a/gi/Makefile.am b/gi/Makefile.am
index f1a79bd6..fa1ce9a3 100644
--- a/gi/Makefile.am
+++ b/gi/Makefile.am
@@ -26,7 +26,9 @@ extension_ldflags += \
endif
pkgincludedir = $(includedir)/pygobject-$(PLATFORM_VERSION)
+if WITH_COMMON
pkginclude_HEADERS = pygobject.h
+endif
pygidir = $(pyexecdir)/gi