mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
[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:
parent
6e1f9ad9b6
commit
5c8ae6d2dc
@ -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 \
|
||||
|
@ -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__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user