[pygobject] build: Add --without-common configure option for package maintainers
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] build: Add --without-common configure option for package maintainers
- Date: Fri, 24 Jan 2014 00:15:51 +0000 (UTC)
commit 15fdd827ce4bff847fb35c817c6ea2d3650eec00
Author: Patrick Welche <prlw1 cam ac uk>
Date: Thu Jan 23 23:49:51 2014 +0000
build: Add --without-common configure option for package maintainers
https://bugzilla.gnome.org/show_bug.cgi?id=721646
Makefile.am | 2 ++
configure.ac | 7 +++++++
gi/Makefile.am | 2 ++
3 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1ab1b63..ea0b4ba 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 d9e4661..93305f9 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 f1a79bd..fa1ce9a 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]