[libsoup] Fix build with --without-gnome



commit c5d416e6546edde284e1d4ea16bcd72d30c1f267
Author: Dan Winship <danw gnome org>
Date:   Tue Mar 22 08:57:56 2016 -0400

    Fix build with --without-gnome
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764015

 libsoup/Makefile.am |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/Makefile.am b/libsoup/Makefile.am
index 0b208d3..4a0db8e 100644
--- a/libsoup/Makefile.am
+++ b/libsoup/Makefile.am
@@ -357,7 +357,10 @@ include $(top_srcdir)/build/Makefile.msvcproj
 
 if HAVE_INTROSPECTION
 # Introspection Items for MSVC
-MSVC_INTROSPECT_GIRS = Soup-2.4.gir SoupGNOME-2.4.gir
+MSVC_INTROSPECT_GIRS = Soup-2.4.gir
+if BUILD_LIBSOUP_GNOME
+MSVC_INTROSPECT_GIRS += SoupGNOME-2.4.gir
+endif
 
 BASE_MSVC_GIR_CFLAGS =         \
        $(SOUP_COMMON_CPPFLAGS) \
@@ -377,6 +380,7 @@ Soup_2_4_gir_MSVC_LIBS = soup-2.4
 Soup_2_4_gir_MSVC_CFLAGS =  $(BASE_MSVC_GIR_CFLAGS) $(SOUP_UNSTABLE_REQUEST_CFLAG)
 Soup_2_4_gir_MSVC_SCANNERFLAGS = --c-include \"libsoup/soup.h\"
 
+if BUILD_LIBSOUP_GNOME
 # libsoup-gnome
 SoupGNOME_2_4_gir_MSVC_FILES = $(gi_soup_gnome_files)
 SoupGNOME_2_4_gir_MSVC_GIR_DEPS = Soup-2.4.gir
@@ -387,6 +391,7 @@ SoupGNOME_2_4_gir_MSVC_SCANNERFLAGS =       i       \
        $(SOUPGNOME_GIR_SCANNER_BASE_FLAGS)     \
         --c-include \"libsoup/soup-gnome.h\"   \
        --include-uninstalled=./Soup-2.4.gir
+endif
 
 include $(top_srcdir)/build/Makefile.msvc-introspection
 else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]