From 15fdd827ce4bff847fb35c817c6ea2d3650eec00 Mon Sep 17 00:00:00 2001 From: Patrick Welche Date: Thu, 23 Jan 2014 23:49:51 +0000 Subject: 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(+) 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 -- cgit v1.2.1