From aaba2b6a4f5bf7b94eb7b483eba0042acc3a495d Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 22 Aug 2016 19:24:05 -0700 Subject: [PATCH] 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 file changed, 4 insertions(+), 3 deletions(-) diff --git a/data/Makefile.am b/data/Makefile.am index 5d0fa1d8..dd38dace 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