[gnome-software] trivial: Fix compile without snapd-glib
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix compile without snapd-glib
- Date: Mon, 12 Sep 2016 08:30:21 +0000 (UTC)
commit 25cf626e08c3369fd7373f63a9db2ed035a39233
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 12 09:30:02 2016 +0100
trivial: Fix compile without snapd-glib
src/plugins/Makefile.am | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index 75d690c..ad5e63e 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -46,9 +46,12 @@ plugin_LTLIBRARIES = \
libgs_plugin_repos.la \
libgs_plugin_fedora-tagger-usage.la \
libgs_plugin_icons.la \
- libgs_plugin_snap.la \
libgs_plugin_ubuntuone.la
+if HAVE_SNAP
+plugin_LTLIBRARIES += libgs_plugin_snap.la
+endif
+
if HAVE_PACKAGEKIT
plugin_LTLIBRARIES += \
libgs_plugin_systemd-updates.la \
@@ -360,6 +363,7 @@ libgs_plugin_packagekit_proxy_la_LIBADD = $(GS_PLUGIN_LIBS)
libgs_plugin_packagekit_proxy_la_LDFLAGS = -module -avoid-version
libgs_plugin_packagekit_proxy_la_CFLAGS = $(GS_PLUGIN_CFLAGS) $(WARN_CFLAGS)
+if HAVE_SNAP
libgs_plugin_snap_la_SOURCES = \
gs-plugin-snap.c \
gs-snapd.h \
@@ -371,6 +375,7 @@ libgs_plugin_snap_la_LIBADD = \
$(JSON_GLIB_LIBS)
libgs_plugin_snap_la_LDFLAGS = -module -avoid-version
libgs_plugin_snap_la_CFLAGS = $(GS_PLUGIN_CFLAGS) $(WARN_CFLAGS)
+endif
libgs_plugin_ubuntuone_la_SOURCES = \
gs-plugin-ubuntuone.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]