[gnome-software/wip/ubuntu-xenial] trivial: Fix compile without snapd-glib



commit 675a2925ff683d7f0c496e545ae46e823416222e
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 fd65be2..3783a5a 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -41,7 +41,6 @@ plugin_LTLIBRARIES =                                  \
        libgs_plugin_fedora_tagger_usage.la             \
        libgs_plugin_epiphany.la                        \
        libgs_plugin_icons.la                           \
-       libgs_plugin_snap.la                            \
        libgs_plugin_ubuntuone.la
 
 if HAVE_APT
@@ -49,6 +48,10 @@ plugin_LTLIBRARIES +=                                        \
        libgs_plugin_apt.la
 endif
 
+if HAVE_SNAP
+plugin_LTLIBRARIES += libgs_plugin_snap.la
+endif
+
 if HAVE_PACKAGEKIT
 plugin_LTLIBRARIES +=                                  \
        libgs_plugin_systemd-updates.la                 \
@@ -291,6 +294,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                                      \
@@ -303,6 +307,7 @@ libgs_plugin_snap_la_LIBADD =                               \
        $(LIBSECRET_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]