forked from Mirrors/flatpak-builder
Add backport of g_autoptr support for json-glib
parent
3833cc938e
commit
b744cd2493
|
@ -56,6 +56,7 @@ libflatpak_common_la_CFLAGS = \
|
|||
$(HIDDEN_VISIBILITY_CFLAGS) \
|
||||
$(OSTREE_CFLAGS) \
|
||||
$(SOUP_CFLAGS) \
|
||||
$(JSON_CFLAGS) \
|
||||
$(XAUTH_CFLAGS) \
|
||||
$(LIBSECCOMP_CFLAGS) \
|
||||
-I$(srcdir)/dbus-proxy \
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <libsoup/soup.h>
|
||||
#include "flatpak-dbus.h"
|
||||
#include <ostree.h>
|
||||
#include <json-glib/json-glib.h>
|
||||
|
||||
typedef enum {
|
||||
FLATPAK_HOST_COMMAND_FLAGS_CLEAR_ENV = 1 << 0,
|
||||
|
@ -433,6 +434,17 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (SoupRequestHTTP, g_object_unref)
|
|||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SoupURI, soup_uri_free)
|
||||
#endif
|
||||
|
||||
#if !JSON_CHECK_VERSION(1,2,0)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonArray, json_array_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonBuilder, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonGenerator, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonNode, json_node_free)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonObject, json_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonParser, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonPath, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonReader, g_object_unref)
|
||||
#endif
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 43, 4)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUnixFDList, g_object_unref)
|
||||
#endif
|
||||
|
|
|
@ -35,4 +35,4 @@ xdg_document_portal_SOURCES = \
|
|||
$(NULL)
|
||||
|
||||
xdg_document_portal_LDADD = $(BASE_LIBS) $(FUSE_LIBS) libflatpak-common.la
|
||||
xdg_document_portal_CFLAGS = $(BASE_CFLAGS) $(OSTREE_CFLAGS) $(SOUP_CFLAGS) $(FUSE_CFLAGS) -I$(srcdir)/document-portal -I$(builddir)/document-portal -I$(srcdir)/permission-store -I$(builddir)/permission-store -DFLATPAK_COMPILATION
|
||||
xdg_document_portal_CFLAGS = $(BASE_CFLAGS) $(OSTREE_CFLAGS) $(SOUP_CFLAGS) $(JSON_CFLAGS) $(FUSE_CFLAGS) -I$(srcdir)/document-portal -I$(builddir)/document-portal -I$(srcdir)/permission-store -I$(builddir)/permission-store -DFLATPAK_COMPILATION
|
||||
|
|
|
@ -75,6 +75,7 @@ libflatpak_la_CFLAGS = \
|
|||
$(BASE_CFLAGS) \
|
||||
$(OSTREE_CFLAGS) \
|
||||
$(SOUP_CFLAGS) \
|
||||
$(JSON_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
libflatpak_la_LDFLAGS = \
|
||||
|
|
|
@ -31,4 +31,4 @@ xdg_permission_store_SOURCES = \
|
|||
$(NULL)
|
||||
|
||||
xdg_permission_store_LDADD = $(BASE_LIBS) libflatpak-common.la
|
||||
xdg_permission_store_CFLAGS = $(BASE_CFLAGS) $(SOUP_CFLAGS) $(OSTREE_CFLAGS) $(GSYSTEM_CFLAGS) -I$(srcdir)/permission-store -I$(builddir)/permission-store
|
||||
xdg_permission_store_CFLAGS = $(BASE_CFLAGS) $(SOUP_CFLAGS) $(JSON_CFLAGS) $(OSTREE_CFLAGS) $(GSYSTEM_CFLAGS) -I$(srcdir)/permission-store -I$(builddir)/permission-store
|
||||
|
|
|
@ -13,4 +13,4 @@ flatpak_session_helper_SOURCES = \
|
|||
$(NULL)
|
||||
|
||||
flatpak_session_helper_LDADD = $(BASE_LIBS) libflatpak-common.la
|
||||
flatpak_session_helper_CFLAGS = $(BASE_CFLAGS) $(SOUP_CFLAGS) $(OSTREE_CFLAGS) $(GSYSTEM_CFLAGS)
|
||||
flatpak_session_helper_CFLAGS = $(BASE_CFLAGS) $(SOUP_CFLAGS) $(OSTREE_CFLAGS) $(GSYSTEM_CFLAGS) $(JSON_CFLAGS)
|
||||
|
|
Loading…
Reference in New Issue