2017-12-07 08:38:19 +00:00
|
|
|
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Matrix-GLib\" -D__MATRIX_GLIB_SDK_COMPILATION
|
2015-12-10 12:54:15 +00:00
|
|
|
|
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
|
|
|
|
2016-02-27 15:19:57 +00:00
|
|
|
AM_CPPFLAGS += \
|
|
|
|
-include $(CONFIG_HEADER) \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-g \
|
|
|
|
-Wall \
|
|
|
|
$(GLIB_CFLAGS) \
|
|
|
|
$(GOBJECT_CFLAGS) \
|
|
|
|
$(SOUP_CFLAGS) \
|
|
|
|
$(JSON_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2016-03-01 16:42:19 +00:00
|
|
|
# Binaries to create
|
2016-01-22 11:29:10 +00:00
|
|
|
bin_PROGRAMS = test-api-client test-client
|
2015-12-10 12:54:15 +00:00
|
|
|
|
2017-12-12 14:48:45 +00:00
|
|
|
EVENT_H_FILES = \
|
2017-11-13 08:47:24 +00:00
|
|
|
matrix-event-base.h \
|
2017-11-19 10:59:30 +00:00
|
|
|
matrix-event-call-base.h \
|
2017-11-21 13:01:45 +00:00
|
|
|
matrix-event-call-answer.h \
|
2017-11-21 13:12:14 +00:00
|
|
|
matrix-event-call-hangup.h \
|
2017-11-21 14:07:44 +00:00
|
|
|
matrix-event-call-invite.h \
|
2017-11-23 08:36:32 +00:00
|
|
|
matrix-event-call-candidates.h \
|
2017-12-12 14:48:45 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MESSAGE_H_FILES = \
|
2017-11-17 14:18:28 +00:00
|
|
|
matrix-message-base.h \
|
2017-11-18 10:49:04 +00:00
|
|
|
matrix-message-text.h \
|
2017-11-18 10:52:29 +00:00
|
|
|
matrix-message-location.h \
|
2017-11-18 13:30:02 +00:00
|
|
|
matrix-message-emote.h \
|
2017-11-20 08:25:48 +00:00
|
|
|
matrix-message-file.h \
|
2017-11-20 08:26:13 +00:00
|
|
|
matrix-message-image.h \
|
2017-11-20 09:03:14 +00:00
|
|
|
matrix-message-audio.h \
|
2017-11-20 09:27:17 +00:00
|
|
|
matrix-message-video.h \
|
2017-11-20 15:46:55 +00:00
|
|
|
matrix-message-notice.h \
|
2017-11-13 12:10:57 +00:00
|
|
|
matrix-event-room-base.h \
|
2017-11-13 13:55:16 +00:00
|
|
|
matrix-event-state-base.h \
|
2017-11-13 14:31:19 +00:00
|
|
|
matrix-event-tag.h \
|
2017-11-14 07:35:00 +00:00
|
|
|
matrix-event-presence.h \
|
2017-11-14 10:18:19 +00:00
|
|
|
matrix-event-room-member.h \
|
2017-11-15 07:25:06 +00:00
|
|
|
matrix-event-room-topic.h \
|
2017-11-15 14:07:31 +00:00
|
|
|
matrix-event-room-aliases.h \
|
2017-11-19 09:03:12 +00:00
|
|
|
matrix-event-room-avatar.h \
|
2017-11-19 09:46:37 +00:00
|
|
|
matrix-event-room-name.h \
|
2017-11-21 07:47:09 +00:00
|
|
|
matrix-event-room-message.h \
|
2017-11-21 08:46:14 +00:00
|
|
|
matrix-event-room-history-visibility.h \
|
2017-11-21 09:51:44 +00:00
|
|
|
matrix-event-room-join-rules.h \
|
2017-11-21 14:31:40 +00:00
|
|
|
matrix-event-room-canonical-alias.h \
|
2017-11-21 19:27:33 +00:00
|
|
|
matrix-event-room-create.h \
|
2017-11-22 09:14:23 +00:00
|
|
|
matrix-event-room-power-levels.h \
|
2017-11-22 10:00:54 +00:00
|
|
|
matrix-event-room-guest-access.h \
|
2017-11-22 09:37:06 +00:00
|
|
|
matrix-event-room-message-feedback.h \
|
2017-11-22 10:24:53 +00:00
|
|
|
matrix-event-room-redaction.h \
|
2017-11-22 12:31:33 +00:00
|
|
|
matrix-event-room-third-party-invite.h \
|
2017-11-14 11:59:36 +00:00
|
|
|
matrix-event-typing.h \
|
2017-11-14 16:52:07 +00:00
|
|
|
matrix-event-receipt.h \
|
2017-12-12 14:48:45 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
INST_H_SRC_FILES = \
|
|
|
|
matrix-types.h \
|
|
|
|
matrix-compacts.h \
|
|
|
|
matrix-api.h \
|
|
|
|
matrix-http-api.h \
|
|
|
|
matrix-client.h \
|
|
|
|
matrix-http-client.h \
|
|
|
|
$(EVENT_H_FILES) \
|
|
|
|
$(MESSAGE_H_FILES) \
|
2017-11-03 05:49:07 +00:00
|
|
|
utils.h \
|
2017-11-03 13:57:19 +00:00
|
|
|
matrix-profile.h \
|
2017-11-20 15:29:02 +00:00
|
|
|
matrix-room.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 \
|
2017-11-02 07:29:46 +00:00
|
|
|
matrix-enumtypes.h \
|
2016-01-27 18:35:19 +00:00
|
|
|
matrix-marshalers.h \
|
2016-01-07 15:57:10 +00:00
|
|
|
$(NULL)
|
2015-12-10 12:54:15 +00:00
|
|
|
|
2017-11-02 07:29:46 +00:00
|
|
|
matrix_enum_headers = \
|
2017-11-03 12:32:38 +00:00
|
|
|
matrix-types.h \
|
2017-11-02 07:29:46 +00:00
|
|
|
$(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) \
|
2016-01-27 18:35:19 +00:00
|
|
|
matrix-marshalers.c \
|
|
|
|
matrix-event-types.c \
|
2015-12-10 12:54:15 +00:00
|
|
|
matrix-version.c \
|
2017-11-24 07:06:14 +00:00
|
|
|
matrix-api.c \
|
2017-11-28 17:09:55 +00:00
|
|
|
matrix-http-api.c \
|
2017-11-29 08:46:49 +00:00
|
|
|
matrix-client.c \
|
2017-11-30 08:16:07 +00:00
|
|
|
matrix-http-client.c \
|
2017-11-03 12:32:38 +00:00
|
|
|
matrix-types.c \
|
2017-11-11 07:41:50 +00:00
|
|
|
matrix-compacts.c \
|
2017-11-13 08:47:24 +00:00
|
|
|
matrix-event-base.c \
|
2017-11-19 10:59:30 +00:00
|
|
|
matrix-event-call-base.c \
|
2017-11-21 13:01:45 +00:00
|
|
|
matrix-event-call-answer.c \
|
2017-11-21 13:12:14 +00:00
|
|
|
matrix-event-call-hangup.c \
|
2017-11-21 14:07:44 +00:00
|
|
|
matrix-event-call-invite.c \
|
2017-11-23 08:36:32 +00:00
|
|
|
matrix-event-call-candidates.c \
|
2017-11-17 14:18:28 +00:00
|
|
|
matrix-message-base.c \
|
2017-11-18 10:49:04 +00:00
|
|
|
matrix-message-text.c \
|
2017-11-18 10:52:29 +00:00
|
|
|
matrix-message-location.c \
|
2017-11-18 13:30:02 +00:00
|
|
|
matrix-message-emote.c \
|
2017-11-20 08:25:48 +00:00
|
|
|
matrix-message-file.c \
|
2017-11-20 08:26:13 +00:00
|
|
|
matrix-message-image.c \
|
2017-11-20 09:03:14 +00:00
|
|
|
matrix-message-audio.c \
|
2017-11-20 09:27:17 +00:00
|
|
|
matrix-message-video.c \
|
2017-11-20 15:46:55 +00:00
|
|
|
matrix-message-notice.c \
|
2017-11-13 14:31:19 +00:00
|
|
|
matrix-event-tag.c \
|
2017-11-14 07:35:00 +00:00
|
|
|
matrix-event-presence.c \
|
2017-11-14 10:18:19 +00:00
|
|
|
matrix-event-room-member.c \
|
2017-11-14 11:59:36 +00:00
|
|
|
matrix-event-typing.c \
|
2017-11-13 12:10:57 +00:00
|
|
|
matrix-event-room-base.c \
|
2017-11-13 13:55:16 +00:00
|
|
|
matrix-event-state-base.c \
|
2017-11-14 16:52:07 +00:00
|
|
|
matrix-event-receipt.c \
|
2017-11-15 07:25:06 +00:00
|
|
|
matrix-event-room-topic.c \
|
2017-11-15 14:07:31 +00:00
|
|
|
matrix-event-room-aliases.c \
|
2017-11-19 09:03:12 +00:00
|
|
|
matrix-event-room-avatar.c \
|
2017-11-19 09:46:37 +00:00
|
|
|
matrix-event-room-name.c \
|
2017-11-21 07:47:09 +00:00
|
|
|
matrix-event-room-message.c \
|
2017-11-21 08:46:14 +00:00
|
|
|
matrix-event-room-history-visibility.c \
|
2017-11-21 09:51:44 +00:00
|
|
|
matrix-event-room-join-rules.c \
|
2017-11-21 14:31:40 +00:00
|
|
|
matrix-event-room-canonical-alias.c \
|
2017-11-21 19:27:33 +00:00
|
|
|
matrix-event-room-create.c \
|
2017-11-22 09:14:23 +00:00
|
|
|
matrix-event-room-power-levels.c \
|
2017-11-22 09:37:06 +00:00
|
|
|
matrix-event-room-message-feedback.c \
|
2017-11-22 10:24:53 +00:00
|
|
|
matrix-event-room-redaction.c \
|
2017-11-22 10:00:54 +00:00
|
|
|
matrix-event-room-guest-access.c \
|
2017-11-22 12:31:33 +00:00
|
|
|
matrix-event-room-third-party-invite.c \
|
2017-11-03 13:57:19 +00:00
|
|
|
matrix-profile.c \
|
2017-11-20 15:29:02 +00:00
|
|
|
matrix-room.c \
|
2017-11-03 05:49:07 +00:00
|
|
|
utils.c \
|
2017-11-02 07:29:46 +00:00
|
|
|
matrix-enumtypes.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 += \
|
2017-11-02 07:29:46 +00:00
|
|
|
matrix-enumtypes.c \
|
|
|
|
matrix-enumtypes.h \
|
2016-01-27 18:35:19 +00:00
|
|
|
matrix-marshalers.c \
|
|
|
|
matrix-marshalers.h \
|
2016-01-22 10:40:12 +00:00
|
|
|
$(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-02-27 15:19:57 +00:00
|
|
|
test_api_client_CFLAGS = $(libmatrix_glib_0_0_la_CFLAGS) $(AM_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-01-22 11:29:10 +00:00
|
|
|
test_client_SOURCES = test-client.c
|
|
|
|
test_client_CFLAGS = $(libmatrix_glib_0_0_la_CFLAGS) $(AM_CFLAGS)
|
|
|
|
test_client_LDADD = \
|
|
|
|
$(libmatrix_glib_0_0_la_LIBADD) \
|
|
|
|
libmatrix-glib-$(MATRIX_GLIB_API_VERSION).la \
|
|
|
|
$(NULL)
|
|
|
|
|
2016-03-01 16:42:19 +00:00
|
|
|
CLEANFILES += $(BUILT_SOURCES)
|
|
|
|
EXTRA_DIST += \
|
2017-11-02 07:29:46 +00:00
|
|
|
matrix-enumtypes.h.template \
|
|
|
|
matrix-enumtypes.c.template \
|
2016-01-27 18:35:19 +00:00
|
|
|
matrix-marshalers.list \
|
2015-12-15 10:58:18 +00:00
|
|
|
$(INST_H_SRC_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
|
2017-11-02 07:29:46 +00:00
|
|
|
matrix-enumtypes.h: $(matrix_enum_headers) matrix-enumtypes.h.template
|
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(filter %.template,$^) \
|
|
|
|
$(filter-out %.template,$^) > $@.tmp \
|
|
|
|
&& mv $@.tmp $@
|
|
|
|
|
|
|
|
matrix-enumtypes.c: $(matrix_enum_headers) matrix-enumtypes.h matrix-enumtypes.c.template
|
|
|
|
$(AM_V_GEN) $(GLIB_MKENUMS) --template $(filter %.template,$^) \
|
|
|
|
$(filter-out %.template,$^) > $@.tmp \
|
|
|
|
&& mv $@.tmp $@
|
|
|
|
|
2016-01-27 18:35:19 +00:00
|
|
|
matrix-marshalers.h: stamp-matrix-marshalers
|
|
|
|
@true
|
|
|
|
|
|
|
|
stamp-matrix-marshalers: matrix-marshalers.list
|
|
|
|
$(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) \
|
|
|
|
&& rm -f xgen-gmlh \
|
|
|
|
&& echo timestamp > $(@F)
|
|
|
|
|
|
|
|
matrix-marshalers.c: matrix-marshalers.h
|
|
|
|
$(AM_V_GEN) (echo "#include \"matrix-marshalers.h\""; \
|
|
|
|
echo "#undef G_ENABLE_DEBUG"; \
|
|
|
|
$(GLIB_GENMARSHAL) --prefix=_matrix_marshal \
|
|
|
|
$(srcdir)/matrix-marshalers.list \
|
|
|
|
--body \
|
|
|
|
--valist-marshallers) >> xgen-gmlc \
|
|
|
|
&& cp xgen-gmlc matrix-marshalers.c \
|
|
|
|
&& rm -f xgen-gmlc
|
|
|
|
|
|
|
|
CLEANFILES += stamp-matrix-marshalers
|
|
|
|
|
2017-12-12 14:48:45 +00:00
|
|
|
libmatrix_glib_dlname = \
|
2016-03-10 15:06:51 +00:00
|
|
|
`$(SED) -nE "s/^dlname='([A-Za-z0-9.+-]+)'/\1/p" libmatrix-glib-0.0.la`¬
|
|
|
|
|
2017-12-12 14:48:45 +00:00
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
|
|
|
|
include $(INTROSPECTION_MAKEFILE)
|
|
|
|
|
|
|
|
INTROSPECTION_GIRS = \
|
|
|
|
Matrix-$(MATRIX_GLIB_API_VERSION).gir \
|
|
|
|
MatrixEvent-$(MATRIX_GLIB_API_VERSION).gir \
|
|
|
|
MatrixMessage-$(MATRIX_GLIB_API_VERSION).gir \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
Matrix-$(MATRIX_GLIB_API_VERSION).gir: libmatrix-glib-0.0.la
|
|
|
|
Matrix_0_0_gir_FILES = $(INST_H_SRC_FILE) $(INST_H_BUILT_FILES) $(filter %.c,$(libmatrix_glib_0_0_la_SOURCES))
|
|
|
|
Matrix_0_0_gir_LIBS = libmatrix-glib-0.0.la
|
|
|
|
Matrix_0_0_gir_SCANNERFLAGS = --identifier-prefix=Matrix --symbol-prefix=matrix --warn-all
|
|
|
|
Matrix_0_0_gir_INCLUDES = GLib-2.0 GObject-2.0
|
|
|
|
Matrix_0_0_gir_CFLAGS = -D_MATRIX_GLIB_SDK_COMPILATION -I$(top_srcdir) -I$(srcdir) -I$(builddir) $(AM_CPPFLAGS)
|
|
|
|
Matrix_0_0_gir_EXPORT_PACKAGES = matrix-glib
|
|
|
|
MatrixEvent-$(MATRIX_GLIB_API_VERSION).gir: libmatrix-glib-0.0.la
|
|
|
|
MatrixEvent_0_0_gir_FILES = $(EVENT_H_FILES) $(libmatrix_glib_0_0_la_SOURCES)
|
|
|
|
MatrixEvent_0_0_gir_LIBS = libmatrix-glib-0.0.la
|
|
|
|
MatrixEvent_0_0_gir_SCANNERFLAGS = --identifier-prefix=MatrixEvent --symbol-prefix=matrix_event --warn-all
|
|
|
|
MatrixEvent_0_0_gir_INCLUDES = GLib-2.0 GObject-2.0
|
|
|
|
MatrixEvent_0_0_gir_CFLAGS = -D_MATRIX_GLIB_SDK_COMPILATION -I$(top_srcdir) -I$(srcdir) -I$(builddir) $(AM_CPPFLAGS)
|
|
|
|
MatrixEvent_0_0_gir_EXPORT_PACKAGES = matrix-event-glib
|
|
|
|
MatrixMessage-$(MATRIX_GLIB_API_VERSION).gir: libmatrix-glib-0.0.la
|
|
|
|
MatrixMessage_0_0_gir_FILES = $(filter matrix-message-%.h,$(Matrix_0_0_gir_FILES))
|
|
|
|
MatrixMessage_0_0_gir_LIBS = libmatrix-glib-0.0.la
|
|
|
|
MatrixMessage_0_0_gir_SCANNERFLAGS = --identifier-prefix=MatrixMessage --symbol-prefix=matrix_message --warn-all
|
|
|
|
MatrixMessage_0_0_gir_INCLUDES = GLib-2.0 GObject-2.0
|
|
|
|
MatrixMessage_0_0_gir_CFLAGS = -D_MATRIX_GLIB_SDK_COMPILATION -I$(top_srcdir) -I$(srcdir) -I$(builddir) $(AM_CPPFLAGS)
|
|
|
|
MatrixMessage_0_0_gir_EXPORT_PACKAGES = matrix-message-glib
|
2016-03-10 15:06:51 +00:00
|
|
|
|
|
|
|
girdir = $(INTROSPECTION_GIRDIR)
|
|
|
|
gir_DATA = $(INTROSPECTION_GIRS)
|
2017-12-12 14:48:45 +00:00
|
|
|
|
2016-03-10 15:06:51 +00:00
|
|
|
typelibdir = $(INTROSPECTION_TYPELIBDIR)
|
|
|
|
typelib_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)
|
|
|
|
|
2017-12-12 14:48:45 +00:00
|
|
|
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
|
|
|
|
|
|
|
|
if HAVE_VAPIGEN
|
|
|
|
|
|
|
|
include $(VAPIGEN_MAKEFILE)
|
|
|
|
|
|
|
|
VAPIGEN_VAPIS = Matrix-$(MATRIX_GLIB_API_VERSION).vapi
|
|
|
|
|
|
|
|
Matrix_0_0_vapi_DEPS = \
|
|
|
|
json-glib-1.0 \
|
|
|
|
gio-2.0 \
|
|
|
|
libsoup-2.4 \
|
|
|
|
$(NULL)
|
|
|
|
Matrix_0_0_vapi_GIRS = $(INTROSPECTION_GIRS)
|
|
|
|
Matrix_0_0_vapi_FILES = $(INTROSPECTION_GIRS)
|
|
|
|
|
|
|
|
vapidir = $(datadir)/vala/vapi
|
|
|
|
vapi_DATA = $(VAPIGEN_VAPIS)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2016-03-10 14:39:59 +00:00
|
|
|
pkgconfig_in = matrix-glib-$(MATRIX_GLIB_API_VERSION).pc.in
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = $(pkgconfig_in:.in=)
|
|
|
|
EXTRA_DIST += $(pkgconfig_in)
|