[json] Fix compilation of the internal JSON-GLib

Define the symbols needed to pass the single include policy when
compiling the static object.
This commit is contained in:
Emmanuele Bassi 2009-08-13 18:05:38 +01:00
parent 6e1f9ad9b6
commit 5c8ae6d2dc
2 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,8 @@ INCLUDES = \
-I$(top_srcdir) \
-DG_DISABLE_SINGLE_INCLUDES \
-DG_LOG_DOMAIN=\"Clutter-Json\" \
-DG_DISABLE_DEPRECATED
-DG_DISABLE_DEPRECATED \
-DJSON_COMPILATION
AM_CFLAGS = $(MAINTAINER_CFLAGS)
@ -40,6 +41,7 @@ BUILT_GIRSOURCES =
ClutterJson-@CLUTTER_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libclutter-json.la
$(INTROSPECTION_SCANNER) -v --namespace ClutterJson --nsversion=@CLUTTER_API_VERSION@ \
$(INCLUDES) \
--add-include-path=$(srcdir) --add-include-path=. \
--include=GObject-2.0 \
--library=clutter-json \

View File

@ -1,8 +1,12 @@
#ifndef __JSON_GLIB_H__
#define __JSON_GLIB_H__
#define __JSON_GLIB_INSIDE__
#include "json-types.h"
#include "json-generator.h"
#include "json-parser.h"
#undef __JSON_GLIB_INSIDE__
#endif /* __JSON_GLIB_H__ */