2015-12-10 12:54:15 +00:00
|
|
|
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Matrix-GLib\"
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libmatrix-glib-0.0.la
|
2015-12-14 15:29:22 +00:00
|
|
|
bin_PROGRAMS = test-client
|
2015-12-10 12:54:15 +00:00
|
|
|
|
|
|
|
INST_H_SRC_FILES = \
|
|
|
|
matrix-client.h \
|
|
|
|
matrix-api.h \
|
2016-01-06 13:12:57 +00:00
|
|
|
matrix-api-types.h \
|
2015-12-11 13:15:42 +00:00
|
|
|
matrix-http-api.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 = \
|
|
|
|
matrix-api.h \
|
|
|
|
matrix-api-types.h \
|
|
|
|
$(NULL)
|
2015-12-10 12:54:15 +00:00
|
|
|
|
|
|
|
libmatrix_glib_0_0_la_SOURCES = \
|
|
|
|
matrix-client.c \
|
|
|
|
matrix-version.c \
|
|
|
|
matrix-api.c \
|
2016-01-06 13:12:57 +00:00
|
|
|
matrix-api-types.c \
|
2015-12-11 13:15:42 +00:00
|
|
|
matrix-http-api.c \
|
2015-12-15 10:58:18 +00:00
|
|
|
matrix-enumtypes.c \
|
2015-12-10 12:54:15 +00:00
|
|
|
$(INST_H_SRC_FILES) \
|
|
|
|
$(INST_H_BUILT_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
|
2015-12-11 13:15:42 +00:00
|
|
|
libmatrix_glib_0_0_la_CFLAGS = $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) $(SOUP_CFLAGS) $(JSON_CFLAGS)
|
|
|
|
libmatrix_glib_0_0_la_LIBADD = $(GLIB_LIBS) $(GOBJECT_LIBS) $(SOUP_LIBS) $(JSON_LIBS)
|
2015-12-10 12:54:15 +00:00
|
|
|
libmatrix_glib_0_0_la_DEPENDENCIES =
|
|
|
|
|
2015-12-15 10:58:18 +00:00
|
|
|
BUILT_SOURCES = matrix-enumtypes.c matrix-enumtypes.h
|
|
|
|
|
2015-12-14 15:29:22 +00:00
|
|
|
test_client_SOURCES = test-client.c $(libmatrix_glib_0_0_la_SOURCES)
|
|
|
|
test_client_CFLAGS = $(libmatrix_glib_0_0_la_CFLAGS)
|
|
|
|
test_client_LDADD = $(libmatrix_glib_0_0_la_LIBADD)
|
|
|
|
|
2015-12-15 10:58:18 +00:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
EXTRA_DIST = \
|
|
|
|
matrix-enumtypes.h.template \
|
|
|
|
matrix-enumtypes.c.template \
|
|
|
|
$(INST_H_SRC_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
matrix-enumtypes.h: $(matrix_enum_headers) matrix-enumtypes.h.template
|
|
|
|
$(GLIB_MKENUMS) --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
|
|
|
$@.tmp && mv $@.tmp $@
|
|
|
|
|
|
|
|
matrix-enumtypes.c: $(matrix_enum_headers) matrix-enumtypes.h matrix-enumtypes.c.template
|
|
|
|
$(GLIB_MKENUMS) --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
|
|
|
$@.tmp && mv $@.tmp $@
|
2015-12-10 12:54:15 +00:00
|
|
|
|
|
|
|
include $(INTROSPECTION_MAKEFILE)
|
|
|
|
MatrixGlib-$(MATRIX_GLIB_API_VERSION).gir: libmatrix-glib-0.0.la
|
|
|
|
Matrix_@MATRIX_GLIB_API_VERSION_U@_gir_FILES = $(INST_H_SRC_FILES) $(INST_H_BUILT_FILES) $(filter %.c,$(libmatrix_glib_0_0_la_SOURCES))
|
|
|
|
Matrix_@MATRIX_GLIB_API_VERSION_U@_gir_LIBS = libmatrix-glib-0.0.la
|
|
|
|
Matrix_@MATRIX_GLIB_API_VERSION_U@_gir_SCANNERFLAGS = --identifier-prefix=Matrix --symbol-prefix=matrix --warn-all
|
2015-12-11 13:15:42 +00:00
|
|
|
Matrix_@MATRIX_GLIB_API_VERSION_U@_gir_INCLUDES = GLib-2.0 GObject-2.0 Soup-2.4 Json-1.0
|
2015-12-10 12:54:15 +00:00
|
|
|
Matrix_@MATRIX_GLIB_API_VERSION_U@_gir_CFLAGS = -D__MATRIX_GLIB_BUILDING__ -I$(top_srcdir) -I$(srcdir) -I$(builddir)
|
|
|
|
Matrix_@MATRIX_GLIB_API_VERSION_U@_gir_EXPORT_PACKAGES = matrix-glib
|
|
|
|
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
|
|
|
|
|
|
|
|
headerdir = $(includedir)/swe-glib
|
|
|
|
header_DATA = \
|
|
|
|
$(INST_H_SRC_FILES) \
|
|
|
|
$(INST_H_BUILT_FILES) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
|