mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
21aa09748c
configure.ac: Check for gobject-introspection build/introspection.m4: Include the file that defines the GOBJECT_CHECK_INTROSPECTION m4 macro in case we want to disable the introspection data generation. clutter/json/Makefile.am: Build the .gir for "ClutterJson" (json-glib as part of the Clutter library) clutter/Makefile.am: Build the .gir for clutter, compile the Clutter and ClutterJson girs into typelibs, and install them. Also move GCC_FLAGS from $(INCLUDES) to $(AM_CFLAGS) since it includes non-preprocessor flag like -Wall. See also: http://bugzilla.openedhand.com/show_bug.cgi?id=1450 Based on a patch by: Owen W. Taylor <otaylor@fishsoup.net> Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
source_c = \
|
|
json-array.c \
|
|
json-generator.c \
|
|
json-marshal.c \
|
|
json-node.c \
|
|
json-object.c \
|
|
json-parser.c
|
|
|
|
source_h = \
|
|
json-generator.h \
|
|
json-glib.h \
|
|
json-marshal.h \
|
|
json-parser.h \
|
|
json-types.h
|
|
|
|
noinst_LTLIBRARIES = libclutter-json.la
|
|
|
|
libclutter_json_la_SOURCES = $(source_c) $(source_h)
|
|
|
|
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
-DG_DISABLE_DEPRECATED \
|
|
$(GCC_FLAGS) \
|
|
$(CLUTTER_CFLAGS) \
|
|
$(CLUTTER_DEBUG_CFLAGS)
|
|
|
|
clutterjsondir = $(includedir)/clutter-@CLUTTER_MAJORMINOR@/clutter/json
|
|
clutterjson_HEADERS = $(source_h)
|
|
|
|
noinst_DATA =
|
|
CLEANFILES =
|
|
|
|
if HAVE_INTROSPECTION
|
|
BUILT_GIRSOURCES =
|
|
|
|
ClutterJson-@CLUTTER_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libclutter-json.la
|
|
$(INTROSPECTION_SCANNER) -v --namespace ClutterJson --nsversion=@CLUTTER_API_VERSION@ \
|
|
--add-include-path=$(srcdir) --add-include-path=. \
|
|
--include=GObject-2.0 \
|
|
--library=clutter-json \
|
|
--libtool="$(top_builddir)/doltlibtool" \
|
|
--pkg gobject-2.0 \
|
|
--output $@ \
|
|
$(clutterjson_HEADERS) \
|
|
$(source_c)
|
|
|
|
BUILT_GIRSOURCES += ClutterJson-@CLUTTER_API_VERSION@.gir
|
|
|
|
noinst_DATA += $(BUILT_GIRSOURCES)
|
|
|
|
CLEANFILES += $(BUILT_GIRSOURCES)
|
|
endif
|