Makefile.am 7.72 KB
Newer Older
1
2
built_header_make =
built_source_make =
Edward Hervey's avatar
Edward Hervey committed
3

Sebastian Dröge's avatar
Sebastian Dröge committed
4
lib_LTLIBRARIES = libges-@GST_API_VERSION@.la
Edward Hervey's avatar
Edward Hervey committed
5

6

Sebastian Dröge's avatar
Sebastian Dröge committed
7
EXTRA_libges_@GST_API_VERSION@_la_SOURCES = gesmarshal.list
Edward Hervey's avatar
Edward Hervey committed
8

9
10
11
12
EXTRA_DIST=parse.l

CLEANFILES = $(BUILT_SOURCES) $(built_header_make) $(built_source_make) *.gcno *.gcda *.gcov *.gcov.out

13
nodist_libges_@GST_API_VERSION@_la_SOURCES = lex.priv_ges_parse_yy.c ges-parse-lex.h
14

Edward Hervey's avatar
Edward Hervey committed
15

Sebastian Dröge's avatar
Sebastian Dröge committed
16
libges_@GST_API_VERSION@_la_SOURCES = 		\
17
	$(built_source_make)			\
Edward Hervey's avatar
Edward Hervey committed
18
	ges.c					\
19
	ges-enums.c				\
20
	ges-meta-container.c        \
Edward Hervey's avatar
Edward Hervey committed
21
	ges-timeline.c				\
22
	ges-layer.c			\
23
	ges-clip.c			\
24
	ges-pipeline.c			\
25
	ges-source-clip.c			\
26
	ges-base-effect-clip.c		\
27
	ges-effect-clip.c		\
28
	ges-uri-clip.c		\
29
	ges-operation-clip.c		\
30
	ges-base-transition-clip.c		\
31
	ges-transition-clip.c	\
32
	ges-test-clip.c		\
33
	ges-title-clip.c		\
34
	ges-overlay-clip.c			\
35
	ges-text-overlay-clip.c		\
Edward Hervey's avatar
Edward Hervey committed
36
	ges-track.c				\
37
38
	ges-audio-track.c \
	ges-video-track.c \
39
	ges-track-element.c			\
40
	ges-source.c			\
41
	ges-operation.c			\
42
43
44
45
	ges-video-source.c \
	ges-audio-source.c \
	ges-video-uri-source.c			\
	ges-audio-uri-source.c	\
46
	ges-image-source.c		\
Lubosz Sarnecki's avatar
Lubosz Sarnecki committed
47
	ges-multi-file-source.c		\
48
	ges-transition.c			\
49
	ges-audio-transition.c		\
50
	ges-video-transition.c		\
51
	ges-video-test-source.c		\
52
	ges-audio-test-source.c		\
53
	ges-title-source.c		\
54
	ges-text-overlay.c		\
55
	ges-base-effect.c		\
56
	ges-effect.c		\
57
	ges-screenshot.c			\
58
	ges-formatter.c				\
59
	ges-pitivi-formatter.c			\
60
	ges-asset.c \
61
	ges-uri-asset.c \
62
	ges-clip-asset.c \
63
	ges-track-element-asset.c \
64
	ges-extractable.c \
65
	ges-project.c \
66
67
	ges-base-xml-formatter.c \
	ges-xml-formatter.c \
68
	ges-command-line-formatter.c \
69
	ges-auto-transition.c \
70
	ges-timeline-element.c \
Thibault Saunier's avatar
Thibault Saunier committed
71
	ges-container.c \
72
	ges-effect-asset.c \
73
	ges-smart-adder.c \
74
	ges-smart-video-mixer.c \
75
	ges-utils.c \
76
	ges-group.c \
77
	ges-validate.c \
78
	ges-structured-interface.c \
79
	ges-structure-parser.c \
80
	gstframepositioner.c
Edward Hervey's avatar
Edward Hervey committed
81

Sebastian Dröge's avatar
Sebastian Dröge committed
82
83
libges_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/ges/
libges_@GST_API_VERSION@include_HEADERS = 	\
84
	$(built_header_make)			\
85
	ges-types.h				\
Edward Hervey's avatar
Edward Hervey committed
86
	ges.h					\
87
	ges-prelude.h				\
88
	ges-enums.h				\
89
	ges-gerror.h				\
90
	ges-meta-container.h        \
Edward Hervey's avatar
Edward Hervey committed
91
	ges-timeline.h				\
92
	ges-layer.h			\
93
	ges-clip.h			\
94
	ges-pipeline.h			\
95
	ges-source-clip.h			\
96
	ges-uri-clip.h		\
97
	ges-base-effect-clip.h		\
98
	ges-effect-clip.h		\
99
	ges-operation-clip.h		\
100
	ges-base-transition-clip.h		\
101
	ges-transition-clip.h	\
102
	ges-test-clip.h		\
103
	ges-title-clip.h		\
104
	ges-overlay-clip.h			\
105
	ges-text-overlay-clip.h		\
106
	ges-base-effect.h		\
107
	ges-effect.h		\
Edward Hervey's avatar
Edward Hervey committed
108
	ges-track.h				\
109
110
	ges-audio-track.h \
	ges-video-track.h \
111
	ges-track-element.h			\
112
	ges-source.h			\
113
	ges-operation.h			\
114
115
116
117
	ges-video-source.h \
	ges-audio-source.h \
	ges-video-uri-source.h			\
	ges-audio-uri-source.h			\
118
	ges-image-source.h		\
Lubosz Sarnecki's avatar
Lubosz Sarnecki committed
119
	ges-multi-file-source.h		\
120
	ges-transition.h			\
121
	ges-audio-transition.h		\
122
	ges-video-transition.h		\
123
	ges-video-test-source.h		\
124
	ges-audio-test-source.h		\
125
	ges-title-source.h		\
126
	ges-text-overlay.h		\
127
	ges-screenshot.h			\
128
	ges-formatter.h				\
129
	ges-pitivi-formatter.h			\
130
	ges-asset.h \
131
	ges-uri-asset.h \
132
	ges-clip-asset.h \
133
	ges-track-element-asset.h \
134
	ges-extractable.h \
135
	ges-project.h \
136
137
	ges-base-xml-formatter.h \
	ges-xml-formatter.h \
138
	ges-command-line-formatter.h \
139
	ges-timeline-element.h \
Thibault Saunier's avatar
Thibault Saunier committed
140
	ges-container.h \
141
	ges-effect-asset.h \
142
	ges-smart-adder.h \
143
	ges-utils.h \
Lubosz Sarnecki's avatar
Lubosz Sarnecki committed
144
145
	ges-group.h \
	ges-version.h
Edward Hervey's avatar
Edward Hervey committed
146

147
noinst_HEADERS = \
Volodymyr Rudyi's avatar
Volodymyr Rudyi committed
148
	ges-internal.h \
Lubosz Sarnecki's avatar
Lubosz Sarnecki committed
149
	ges-auto-transition.h \
150
	ges-structured-interface.h \
151
	ges-structure-parser.h \
152
	ges-smart-video-mixer.h \
153
	gstframepositioner.h
154

Sebastian Dröge's avatar
Sebastian Dröge committed
155
libges_@GST_API_VERSION@_la_CFLAGS = -I$(top_srcdir) $(GST_PBUTILS_CFLAGS) \
156
		$(GST_VIDEO_CFLAGS) $(GST_CONTROLLER_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
Thibault Saunier's avatar
Thibault Saunier committed
157
158
		$(GST_CFLAGS) $(XML_CFLAGS) $(GIO_CFLAGS) $(GST_VALIDATE_CFLAGS) \
		-DG_LOG_DOMAIN=\"GES\"
Sebastian Dröge's avatar
Sebastian Dröge committed
159
libges_@GST_API_VERSION@_la_LIBADD = $(GST_PBUTILS_LIBS) \
160
		$(GST_VIDEO_LIBS) $(GST_CONTROLLER_LIBS) $(GST_PLUGINS_BASE_LIBS) \
161
		$(GST_BASE_LIBS) $(GST_LIBS) $(XML_LIBS) $(GIO_LIBS) $(GST_VALIDATE_LIBS)
Sebastian Dröge's avatar
Sebastian Dröge committed
162
libges_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) \
163
		$(GST_LT_LDFLAGS) $(GIO_CFLAGS) $(GST_VALIDATE_CFLAGS)
Edward Hervey's avatar
Edward Hervey committed
164

Edward Hervey's avatar
Edward Hervey committed
165
166
167
168
169
DISTCLEANFILE = $(CLEANFILES)

#files built on make all/check/instal
BUILT_SOURCES =			\
	$(built_header_make)	\
170
171
	$(built_source_make)    \
	lex.priv_ges_parse_yy.c \
172
	ges-parse-lex.h
Edward Hervey's avatar
Edward Hervey committed
173

174
175
176
include $(top_srcdir)/common/gst-glib-gen.mak

if HAVE_INTROSPECTION
Sebastian Dröge's avatar
Sebastian Dröge committed
177
BUILT_GIRSOURCES = GES-@GST_API_VERSION@.gir
178

179
180
gir_headers_temp=$(patsubst %,$(srcdir)/%, $(libges_@GST_API_VERSION@include_HEADERS))
gir_headers=$(subst $(srcdir)/ges-version.h,$(builddir)/ges-version.h,$(gir_headers_temp))
Sebastian Dröge's avatar
Sebastian Dröge committed
181
gir_sources=$(patsubst %,$(srcdir)/%, $(libges_@GST_API_VERSION@_la_SOURCES))
182

Sebastian Dröge's avatar
Sebastian Dröge committed
183
GES-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libges-@GST_API_VERSION@.la
184
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
185
		CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
186
		$(INTROSPECTION_SCANNER) -v --namespace GES \
Sebastian Dröge's avatar
Sebastian Dröge committed
187
		--nsversion=@GST_API_VERSION@ \
188
189
190
		--identifier-prefix=GES \
		--symbol-prefix=ges \
		--warn-all \
191
		--c-include='ges/ges.h' \
192
193
		-I$(top_srcdir) \
		-I$(top_builddir) \
Sebastian Dröge's avatar
Sebastian Dröge committed
194
195
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-@GST_API_VERSION@` \
196
197
198
199
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-audio-@GST_API_VERSION@` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-video-@GST_API_VERSION@` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-tag-@GST_API_VERSION@` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
200
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gio-2.0` \
Sebastian Dröge's avatar
Sebastian Dröge committed
201
202
		--library=libges-@GST_API_VERSION@.la \
		--include=Gst-@GST_API_VERSION@ \
203
		--include=GstVideo-@GST_API_VERSION@ \
Sebastian Dröge's avatar
Sebastian Dröge committed
204
		--include=GstPbutils-@GST_API_VERSION@ \
205
		--include=Gio-2.0 \
206
		--libtool="$(top_builddir)/libtool" \
Sebastian Dröge's avatar
Sebastian Dröge committed
207
208
		--pkg gstreamer-@GST_API_VERSION@ \
		--pkg gstreamer-pbutils-@GST_API_VERSION@ \
Lubosz Sarnecki's avatar
Lubosz Sarnecki committed
209
		--pkg gstreamer-controller-@GST_API_VERSION@ \
210
		--pkg gio-2.0 \
211
		--pkg-export gst-editing-services-@GST_API_VERSION@ \
212
213
		--add-init-section="$(INTROSPECTION_INIT)" \
		--add-init-section="extern gboolean ges_init(void); ges_init();" \
214
215
216
217
218
219
220
221
222
223
224
225
226
227
		--output $@ \
		$(gir_headers) \
		$(gir_sources)

# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)

typelibsdir = $(libdir)/girepository-1.0/

typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)

%.typelib: %.gir $(INTROSPECTION_COMPILER)
228
229
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_COMPILER) \
230
231
232
		--includedir=$(srcdir) \
		--includedir=$(srcdir)/../video \
		--includedir=$(builddir) \
Sebastian Dröge's avatar
Sebastian Dröge committed
233
234
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-@GST_API_VERSION@` \
235
236
237
238
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-audio-@GST_API_VERSION@` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-video-@GST_API_VERSION@` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-tag-@GST_API_VERSION@` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
Lubosz Sarnecki's avatar
Lubosz Sarnecki committed
239
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-controller-@GST_API_VERSION@` \
240
		--includedir=`$(PKG_CONFIG) --variable=girdir gio-2.0` \
241
242
243
244
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)

CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif
245

246
247
248
249
250
%.c.gcov: .libs/libges_@GST_API_VERSION@_la-%.gcda %.c
	$(GCOV) -b -f -o $^ > $@.out

gcov: $(libges_@GST_API_VERSION@_la_SOURCES:=.gcov)

251
252
lex.priv_ges_parse_yy.c ges-parse-lex.h: parse.l
	$(AM_V_GEN)$(FLEX_PATH) --header-file=ges-parse-lex.h -Ppriv_ges_parse_yy $^