2015-12-10 12:54:15 +00:00
|
|
|
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Matrix-GLib\"
|
|
|
|
|
2016-03-01 16:42:19 +00:00
|
|
|
# Empty variables for elements to be added later
|
|
|
|
CLEANFILES =
|
|
|
|
BUILT_SOURCES =
|
|
|
|
EXTRA_DIST =
|
|
|
|
|
|
|
|
# Libraries to create
|
2015-12-10 12:54:15 +00:00
|
|
|
lib_LTLIBRARIES = libmatrix-glib-0.0.la
|
2016-03-01 16:42:19 +00:00
|
|
|
|
|
|
|
# Binaries to create
|
2016-01-21 15:37:09 +00:00
|
|
|
bin_PROGRAMS = test-api-client
|
2015-12-10 12:54:15 +00:00
|
|
|
|
|
|
|
INST_H_SRC_FILES = \
|
2016-01-25 10:39:49 +00:00
|
|
|
matrix-types.h \
|
2015-12-10 12:54:15 +00:00
|
|
|
matrix-api.h \
|
2015-12-11 13:15:42 +00:00
|
|
|
matrix-http-api.h \
|
2016-01-22 10:40:12 +00:00
|
|
|
matrix-client.h \
|
2016-01-22 10:36:40 +00:00
|
|
|
matrix-http-client.h \
|
2015-12-10 12:54:15 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2015-12-15 10:58:18 +00:00
|
|
|
INST_H_BUILT_FILES = \
|
|
|
|
matrix-version.h \
|
|
|
|
matrix-enumtypes.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2016-01-07 15:57:10 +00:00
|
|
|
matrix_enum_headers = \
|
2016-01-25 10:39:49 +00:00
|
|
|
matrix-types.h \
|
2016-01-07 15:57:10 +00:00
|
|
|
matrix-api.h \
|
|
|
|
$(NULL)
|
2015-12-10 12:54:15 +00:00
|
|
|
|
|
|
|
libmatrix_glib_0_0_la_SOURCES = \
|
2016-03-01 16:42:19 +00:00
|
|
|
$(INST_H_BUILT_FILES) \
|
|
|
|
matrix-marshalers.c \
|
2015-12-10 12:54:15 +00:00
|
|
|
matrix-version.c \
|
2016-01-25 10:39:49 +00:00
|
|
|
matrix-types.c \
|
2015-12-10 12:54:15 +00:00
|
|
|
matrix-api.c \
|
2015-12-11 13:15:42 +00:00
|
|
|
matrix-http-api.c \
|
2015-12-15 10:58:18 +00:00
|
|
|
matrix-enumtypes.c \
|
2016-01-15 16:58:35 +00:00
|
|
|
utils.c \
|
2016-01-22 10:40:12 +00:00
|
|
|
matrix-client.c \
|
2016-01-22 10:36:40 +00:00
|
|
|
matrix-http-client.c \
|
2015-12-10 12:54:15 +00:00
|
|
|
$(INST_H_SRC_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
|
2016-03-01 16:42:19 +00:00
|
|
|
libmatrix_glib_0_0_la_CFLAGS = \
|
|
|
|
$(GLIB_CFLAGS) \
|
|
|
|
$(GOBJECT_CFLAGS) \
|
|
|
|
$(SOUP_CFLAGS) \
|
|
|
|
$(JSON_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libmatrix_glib_0_0_la_LIBADD = \
|
|
|
|
$(GLIB_LIBS) \
|
|
|
|
$(GOBJECT_LIBS) \
|
|
|
|
$(SOUP_LIBS) \
|
|
|
|
$(JSON_LIBS) \
|
|
|
|
$(NULL)
|
2015-12-10 12:54:15 +00:00
|
|
|
|
2016-03-01 16:42:19 +00:00
|
|
|
libmatrix_glib_0_0_la_LDFLAGS = \
|
|
|
|
-version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)"
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
2016-01-22 10:40:12 +00:00
|
|
|
matrix-enumtypes.c \
|
|
|
|
matrix-enumtypes.h \
|
|
|
|
matrix-marshalers.c \
|
|
|
|
matrix-marshalers.h \
|
|
|
|
$(NULL)
|
2015-12-15 10:58:18 +00:00
|
|
|
|
2016-02-11 10:42:07 +00:00
|
|
|
test_api_client_SOURCES = test-api-client.c
|
2016-01-21 15:37:09 +00:00
|
|
|
test_api_client_CFLAGS = $(libmatrix_glib_0_0_la_CFLAGS)
|
2016-03-01 16:42:19 +00:00
|
|
|
test_api_client_LDADD = \
|
|
|
|
$(libmatrix_glib_0_0_la_LIBADD) \
|
|
|
|
libmatrix-glib-$(MATRIX_GLIB_API_VERSION).la \
|
|
|
|
$(NULL)
|
2015-12-14 15:29:22 +00:00
|
|
|
|
2016-03-01 16:42:19 +00:00
|
|
|
CLEANFILES += $(BUILT_SOURCES)
|
|
|
|
EXTRA_DIST += \
|
2015-12-15 10:58:18 +00:00
|
|
|
matrix-enumtypes.h.template \
|
|
|
|
matrix-enumtypes.c.template \
|
2016-01-22 10:40:12 +00:00
|
|
|
matrix-marshalers.list \
|
2015-12-15 10:58:18 +00:00
|
|
|
$(INST_H_SRC_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
matrix-enumtypes.h: $(matrix_enum_headers) matrix-enumtypes.h.template
|
2016-03-01 16:42:19 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(filter %.template,$^) \
|
|
|
|
$(filter-out %.template,$^) > $@.tmp \
|
2016-01-18 17:21:44 +00:00
|
|
|
&& mv $@.tmp $@
|
2015-12-15 10:58:18 +00:00
|
|
|
|
|
|
|
matrix-enumtypes.c: $(matrix_enum_headers) matrix-enumtypes.h matrix-enumtypes.c.template
|
2016-03-01 16:42:19 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(filter %.template,$^) \
|
|
|
|
$(filter-out %.template,$^) > $@.tmp \
|
2016-01-18 17:21:44 +00:00
|
|
|
&& mv $@.tmp $@
|
2015-12-10 12:54:15 +00:00
|
|
|
|
2016-03-01 08:21:33 +00:00
|
|
|
matrix-marshalers.h: stamp-matrix-marshalers
|
|
|
|
@true
|
|
|
|
|
|
|
|
stamp-matrix-marshalers: matrix-marshalers.list
|
2016-03-01 16:42:19 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_matrix_marshal \
|
|
|
|
$(srcdir)/matrix-marshalers.list \
|
|
|
|
--header \
|
|
|
|
--valist-marshallers >> xgen-gmlh \
|
|
|
|
&& (cmp -s xgen-gmlh matrix-marshalers.h \
|
|
|
|
|| cp xgen-gmlh matrix-marshalers.h) \
|
2016-03-01 08:21:33 +00:00
|
|
|
&& rm -f xgen-gmlh \
|
|
|
|
&& echo timestamp > $(@F)
|
2016-01-22 10:40:12 +00:00
|
|
|
|
2016-03-01 08:21:33 +00:00
|
|
|
matrix-marshalers.c: matrix-marshalers.h
|
2016-01-22 10:40:12 +00:00
|
|
|
$(AM_V_GEN) (echo "#include \"matrix-marshalers.h\""; \
|
2016-03-01 08:21:33 +00:00
|
|
|
echo "#undef G_ENABLE_DEBUG"; \
|
|
|
|
$(GLIB_GENMARSHAL) --prefix=_matrix_marshal \
|
|
|
|
$(srcdir)/matrix-marshalers.list \
|
|
|
|
--body \
|
|
|
|
--valist-marshallers) >> xgen-gmlc \
|
2016-01-22 10:40:12 +00:00
|
|
|
&& cp xgen-gmlc matrix-marshalers.c \
|
|
|
|
&& rm -f xgen-gmlc
|
|
|
|
|
2015-12-10 12:54:15 +00:00
|
|
|
include $(INTROSPECTION_MAKEFILE)
|
2016-03-01 16:42:19 +00:00
|
|
|
Matrix-0.0.gir: libmatrix-glib-$(MATRIX_GLIB_API_VERSION).la
|
|
|
|
|
|
|
|
Matrix_0_0_gir_FILES = \
|
|
|
|
$(INST_H_SRC_FILES) \
|
|
|
|
$(INST_H_BUILT_FILES) \
|
|
|
|
$(filter %.c,$(libmatrix_glib_0_0_la_SOURCES)) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
Matrix_0_0_gir_LIBS = libmatrix-glib-$(MATRIX_GLIB_API_VERSION).la
|
|
|
|
|
|
|
|
Matrix_0_0_gir_SCANNERFLAGS = \
|
|
|
|
--identifier-prefix=Matrix \
|
|
|
|
--symbol-prefix=matrix \
|
|
|
|
--warn-all \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
Matrix_0_0_gir_INCLUDES = GLib-2.0 GObject-2.0 Soup-2.4 Json-1.0
|
|
|
|
|
|
|
|
Matrix_0_0_gir_CFLAGS = \
|
|
|
|
-D__MATRIX_GLIB_BUILDING__ \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(srcdir) \
|
|
|
|
-I$(builddir) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
Matrix_0_0_gir_EXPORT_PACKAGES = matrix-glib
|
2015-12-10 12:54:15 +00:00
|
|
|
INTROSPECTION_GIRS = Matrix-$(MATRIX_GLIB_API_VERSION).gir
|
|
|
|
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = Matrix-$(MATRIX_GLIB_API_VERSION).gir
|
|
|
|
|
|
|
|
typelibsdir = $(libdir)/girepository-1.0
|
|
|
|
typelibs_DATA = Matrix-$(MATRIX_GLIB_API_VERSION).typelib
|
|
|
|
|
2016-03-01 16:42:19 +00:00
|
|
|
headerdir = $(includedir)/matrix-glib-$(MATRIX_GLIB_API_VERSION)
|
2015-12-10 12:54:15 +00:00
|
|
|
header_DATA = \
|
|
|
|
$(INST_H_SRC_FILES) \
|
|
|
|
$(INST_H_BUILT_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
|