summaryrefslogtreecommitdiff
path: root/telepathy-logger/Makefile.am
blob: 7431e9213006df9f9ba088e141153a2f6939554f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
include $(top_srcdir)/tools/flymake.mk

-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --add-include-path=$(top_srcdir) -I$(top_srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=$(top_srcdir)

AM_CPPFLAGS =						\
	-I$(top_builddir)				\
	-I$(top_builddir)/extensions			\
	-I$(top_srcdir)					\
	$(ERROR_CFLAGS)					\
	-DG_LOG_DOMAIN=\"tp-logger\"			\
	-DTPL_DATA_DIR=\"$(PACKAGE_NAME)\"		\
	$(TPL_CFLAGS)				\
	$(DISABLE_DEPRECATED)				\
	$(WARN_CFLAGS)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = telepathy-logger-0.2.pc

lib_LTLIBRARIES = libtelepathy-logger.la

LIBTPLdir = $(includedir)/telepathy-logger-0.2/telepathy-logger
LIBTPL_HEADERS = \
		entity.h			\
		event.h				\
		log-manager.h			\
		telepathy-logger.h 		\
		text-event.h			\
		$(NULL)

%-marshal.c: %-marshal.list Makefile.am
	$(QUIET_GEN)echo "#include \"tpl-marshal.h\"" > $@
	$(QUIET_GEN)glib-genmarshal --body --prefix=tpl_marshal $< >> $@

%-marshal.h: %-marshal.list Makefile.am
	$(QUIET_GEN)glib-genmarshal --header --prefix=tpl_marshal $< > $@

BUILT_SOURCES = \
	tpl-marshal.c tpl-marshal.h \
	$(NULL)

libtelepathy_logger_la_SOURCES = \
		action-chain.c			\
		action-chain-internal.h		\
		channel-internal.h		\
		channel.c			\
		channel-factory.c		\
		channel-factory-internal.h	\
		conf.c				\
		conf-internal.h			\
		entity.c			\
		entity-internal.h		\
		datetime.c			\
		datetime-internal.h		\
		dbus-service.c			\
		dbus-service-internal.h		\
		debug-internal.h		\
		debug.c				\
		event.c				\
		event-internal.h		\
		log-manager.c			\
		log-manager-internal.h		\
		log-store.c			\
		log-store-internal.h		\
		log-store-xml.c			\
		log-store-xml-internal.h	\
		log-store-sqlite.c		\
		log-store-sqlite-internal.h	\
		log-store-pidgin.c		\
		log-store-pidgin-internal.h	\
		log-store-factory.c		\
		log-store-factory-internal.h	\
		observer.c			\
		observer-internal.h		\
		text-channel.c			\
		text-channel-internal.h		\
		text-event.c			\
		text-event-internal.h		\
		util-internal.h			\
		util.c				\
		$(NULL)

nodist_libtelepathy_logger_la_SOURCES = \
		$(BUILT_SOURCES)

EXTRA_DIST = \
	tpl-marshal.list \
	$(NULL)

libtelepathy_logger_la_LIBADD = \
	$(top_builddir)/extensions/libtpl-extensions-convenience.la

check_c_sources = \
	$(libtelepathy_logger_la_SOURCES)	\
	$(LIBTPL_HEADERS)
include $(top_srcdir)/tools/check-coding-style.mk
check-local: check-coding-style

CLEANFILES = $(BUILT_SOURCES)

if HAVE_INTROSPECTION
introspection_sources = $(libtelepathy_logger_la_SOURCES) $(LIBTPL_HEADERS)

TelepathyLogger-0.2.gir: libtelepathy-logger.la
TelepathyLogger_0_2_gir_SCANNERFLAGS = --identifier-prefix=Tpl --warn-all
TelepathyLogger_0_2_gir_INCLUDES = GObject-2.0 TelepathyGLib-0.12
TelepathyLogger_0_2_gir_CFLAGS = $(INCLUDES)
TelepathyLogger_0_2_gir_LIBS = libtelepathy-logger.la
TelepathyLogger_0_2_gir_FILES = $(filter-out %-internal.h, $(introspection_sources))

INTROSPECTION_GIRS += TelepathyLogger-0.2.gir

girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0/
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

CLEANFILES += \
	$(gir_DATA) \
	$(typelib_DATA)

endif

include abi.am