summaryrefslogtreecommitdiff
path: root/telepathy-logger/Makefile.am
blob: bc1f55a51c65b21cfd5ac59a494c8a1f0becce59 (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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
include $(top_srcdir)/tools/flymake.mk

if HAVE_INTROSPECTION
include $(INTROSPECTION_MAKEFILE)
endif
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)\"		\
	-DTP_DISABLE_SINGLE_INCLUDE			\
	$(TPL_CFLAGS)					\
	$(DISABLE_DEPRECATED)				\
	$(WARN_CFLAGS)

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

lib_LTLIBRARIES = libtelepathy-logger.la

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

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

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

%-marshal.h: %-marshal.list Makefile.am
	$(AM_V_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		\
		call-event.c                    \
		call-event-internal.h           \
		client-factory.c		\
		client-factory-internal.h	\
		conf.c				\
		conf-internal.h			\
		entity.c			\
		entity-internal.h		\
		dbus-service.c			\
		dbus-service-internal.h		\
		debug-internal.h		\
		debug.c				\
		event.c				\
		event-internal.h		\
		log-iter.c			\
		log-iter-internal.h		\
		log-iter-pidgin.c		\
		log-iter-pidgin-internal.h	\
		log-iter-xml.c			\
		log-iter-xml-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-empathy.c		\
		log-store-empathy-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	\
		log-walker.c			\
		log-walker-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				\
		call-channel.c                  \
		call-channel-internal.h         \
		$(NULL)

nodist_libtelepathy_logger_la_SOURCES = \
		$(BUILT_SOURCES)

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