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.
This commit is contained in:
Christian Hergert
2016-08-22 19:24:05 -07:00
parent 6ed7ec20ae
commit aaba2b6a4f

View File

@ -7,9 +7,10 @@ desktopdir = $(datadir)/applications
desktop_DATA = org.gnome.Sysprof2.desktop desktop_DATA = org.gnome.Sysprof2.desktop
pkgconfigdir = $(libdir)/pkgconfig pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \ pkgconfig_DATA = sysprof-$(API_VERSION).pc
sysprof-$(API_VERSION).pc \ if ENABLE_GTK
sysprof-ui-$(API_VERSION).pc pkgconfig_DATA += sysprof-ui-$(API_VERSION).pc
endif
gsettings_SCHEMAS = org.gnome.sysprof2.gschema.xml gsettings_SCHEMAS = org.gnome.sysprof2.gschema.xml