2013-09-06 09:09:45 +00:00
|
|
|
AM_CPPFLAGS = -DG_LOG_DOMAIN=\"SWE-GLib\" -DLOCALEDIR=\"$(localedir)\" -D__SWE_GLIB_BUILDING__ -DPKGDATADIR=\"$(pkgdatadir)\"
|
2013-09-01 11:52:18 +00:00
|
|
|
|
2013-09-06 09:07:17 +00:00
|
|
|
lib_LTLIBRARIES = libswe-glib-1.0.la
|
2013-09-01 11:52:18 +00:00
|
|
|
|
2013-09-05 15:17:23 +00:00
|
|
|
INST_H_SRC_FILES = \
|
|
|
|
swe-glib.h \
|
|
|
|
gswe-types.h \
|
|
|
|
gswe-moment.h \
|
|
|
|
gswe-timestamp.h
|
|
|
|
|
|
|
|
INST_H_BUILT_FILES = \
|
2013-09-06 08:12:17 +00:00
|
|
|
gswe-enumtypes.h
|
2013-09-05 15:17:23 +00:00
|
|
|
|
2013-09-06 08:12:17 +00:00
|
|
|
libswe_glib_sources = swe-glib.c gswe-moment.c gswe-timestamp.c gswe-enumtypes.c
|
2013-09-01 11:52:18 +00:00
|
|
|
gswe_headers = gswe-timestamp.h gswe-types.h
|
|
|
|
|
2013-09-06 09:07:17 +00:00
|
|
|
libswe_glib_1_0_la_SOURCES = $(libswe_glib_sources)
|
|
|
|
libswe_glib_1_0_la_CFLAGS = $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) -Wall
|
|
|
|
libswe_glib_1_0_la_LIBADD = $(GLIB_LIBS) $(GOBJECT_LIBS) $(LIBSWE_LIBS)
|
2013-09-01 11:52:18 +00:00
|
|
|
|
2013-09-06 08:12:17 +00:00
|
|
|
BUILT_SOURCES = gswe-enumtypes.c gswe-enumtypes.h
|
2013-09-01 11:52:18 +00:00
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
2013-09-06 08:12:17 +00:00
|
|
|
EXTRA_DIST = gswe-enumtypes.h.template gswe-enumtypes.c.template
|
2013-09-01 11:52:18 +00:00
|
|
|
|
2013-09-06 08:12:17 +00:00
|
|
|
gswe-enumtypes.h: $(gswe_headers) gswe-enumtypes.h.template
|
2013-09-01 11:52:18 +00:00
|
|
|
$(GLIB_MKENUMS) --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
2013-09-06 08:12:17 +00:00
|
|
|
gswe-enumtypes.h.tmp && mv gswe-enumtypes.h.tmp gswe-enumtypes.h
|
2013-09-01 11:52:18 +00:00
|
|
|
|
2013-09-06 08:12:17 +00:00
|
|
|
gswe-enumtypes.c: $(gswe_headers) gswe-enumtypes.h gswe-enumtypes.c.template
|
2013-09-01 11:52:18 +00:00
|
|
|
$(GLIB_MKENUMS) --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
2013-09-06 08:12:17 +00:00
|
|
|
gswe-enumtypes.c.tmp && mv gswe-enumtypes.c.tmp gswe-enumtypes.c
|
2013-09-05 15:17:23 +00:00
|
|
|
|
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
|
|
|
|
include $(INTROSPECTION_MAKEFILE)
|
2013-09-06 09:07:17 +00:00
|
|
|
SweGlib-$(SWE_GLIB_API_VERSION).gir: libswe-glib-1.0.la
|
|
|
|
SweGlib_@SWE_GLIB_API_VERSION_U@_gir_FILES = $(INST_H_SRC_FILES) $(INST_H_BUILT_FILES) $(filter %.c,$(libswe_glib_1_0_la_SOURCES))
|
|
|
|
SweGlib_@SWE_GLIB_API_VERSION_U@_gir_LIBS = libswe-glib-1.0.la
|
2013-09-05 15:17:23 +00:00
|
|
|
SweGlib_@SWE_GLIB_API_VERSION_U@_gir_SCANNERFLAGS = --identifier-prefix=Gswe --symbol-prefix=gswe --warn-all
|
|
|
|
SweGlib_@SWE_GLIB_API_VERSION_U@_gir_INCLUDES = GLib-2.0 GObject-2.0
|
|
|
|
SweGlib_@SWE_GLIB_API_VERSION_U@_gir_CFLAGS = -D__SWE_GLIB_BUILDING__ -I$(top_srcdir) -I$(srcdir) -I$(builddir)
|
|
|
|
SweGlib_@SWE_GLIB_API_VERSION_U@_gir_EXPORT_PACKAGES = swe-glib
|
|
|
|
INTROSPECTION_GIRS = SweGlib-$(SWE_GLIB_API_VERSION).gir
|
|
|
|
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = SweGlib-$(SWE_GLIB_API_VERSION).gir
|
|
|
|
|
|
|
|
typelibsdir = $(libdir)/girepository-1.0
|
|
|
|
typelibs_DATA = SweGlib-$(SWE_GLIB_API_VERSION).typelib
|
|
|
|
|
2013-09-10 17:33:35 +00:00
|
|
|
headerdir = $(includedir)/swe-glib
|
|
|
|
header_DATA = \
|
|
|
|
swe-glib.h \
|
|
|
|
gswe-types.h \
|
|
|
|
gswe-enumtypes.h \
|
|
|
|
gswe-moment.h \
|
|
|
|
gswe-timestamp.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
2013-09-05 15:17:23 +00:00
|
|
|
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
|
|
|
|
|
|
|
|
endif
|