[sysprof] build: only install sysprof-ui-2.pc if we build the UI
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] build: only install sysprof-ui-2.pc if we build the UI
- Date: Tue, 23 Aug 2016 02:24:23 +0000 (UTC)
commit aaba2b6a4f5bf7b94eb7b483eba0042acc3a495d
Author: Christian Hergert <chergert redhat com>
Date: Mon Aug 22 19:24:05 2016 -0700
build: only install sysprof-ui-2.pc if we build the UI
This fixes an error were a pkg-config check could succeed for the UI
being installed when the gtk library was not built.
data/Makefile.am | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 5d0fa1d..dd38dac 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -7,9 +7,10 @@ desktopdir = $(datadir)/applications
desktop_DATA = org.gnome.Sysprof2.desktop
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = \
- sysprof-$(API_VERSION).pc \
- sysprof-ui-$(API_VERSION).pc
+pkgconfig_DATA = sysprof-$(API_VERSION).pc
+if ENABLE_GTK
+pkgconfig_DATA += sysprof-ui-$(API_VERSION).pc
+endif
gsettings_SCHEMAS = org.gnome.sysprof2.gschema.xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]