Makefile.am 7.66 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-enums.h				\
88
	ges-gerror.h				\
89
	ges-meta-container.h        \
Edward Hervey's avatar
Edward Hervey committed
90
	ges-timeline.h				\
91
	ges-layer.h			\
92
	ges-clip.h			\
93
	ges-pipeline.h			\
94
	ges-source-clip.h			\
95
	ges-uri-clip.h		\
96
	ges-base-effect-clip.h		\
97
	ges-effect-clip.h		\
98
	ges-operation-clip.h		\
99
	ges-base-transition-clip.h		\
100
	ges-transition-clip.h	\
101
	ges-test-clip.h		\
102
	ges-title-clip.h		\
103
	ges-overlay-clip.h			\
104
	ges-text-overlay-clip.h		\
105
	ges-base-effect.h		\
106
	ges-effect.h		\
Edward Hervey's avatar
Edward Hervey committed
107
	ges-track.h				\
108 109
	ges-audio-track.h \
	ges-video-track.h \
110
	ges-track-element.h			\
111
	ges-source.h			\
112
	ges-operation.h			\
113 114 115 116
	ges-video-source.h \
	ges-audio-source.h \
	ges-video-uri-source.h			\
	ges-audio-uri-source.h			\
117
	ges-image-source.h		\
Lubosz Sarnecki's avatar
Lubosz Sarnecki committed
118
	ges-multi-file-source.h		\
119
	ges-transition.h			\
120
	ges-audio-transition.h		\
121
	ges-video-transition.h		\
122
	ges-video-test-source.h		\
123
	ges-audio-test-source.h		\
124
	ges-title-source.h		\
125
	ges-text-overlay.h		\
126
	ges-screenshot.h			\
127
	ges-formatter.h				\
128
	ges-pitivi-formatter.h			\
129
	ges-asset.h \
130
	ges-uri-asset.h \
131
	ges-clip-asset.h \
132
	ges-track-element-asset.h \
133
	ges-extractable.h \
134
	ges-project.h \
135 136
	ges-base-xml-formatter.h \
	ges-xml-formatter.h \
137
	ges-command-line-formatter.h \
138
	ges-timeline-element.h \
Thibault Saunier's avatar
Thibault Saunier committed
139
	ges-container.h \
140
	ges-effect-asset.h \
141
	ges-smart-adder.h \
142
	ges-utils.h \
143 144
	ges-group.h \
	ges-version.h
Edward Hervey's avatar
Edward Hervey committed
145

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

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

Edward Hervey's avatar
Edward Hervey committed
163 164 165 166 167
DISTCLEANFILE = $(CLEANFILES)

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

172 173 174
include $(top_srcdir)/common/gst-glib-gen.mak

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

177 178
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
179
gir_sources=$(patsubst %,$(srcdir)/%, $(libges_@GST_API_VERSION@_la_SOURCES))
180

Sebastian Dröge's avatar
Sebastian Dröge committed
181
GES-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libges-@GST_API_VERSION@.la
182
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
183
		CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
184
		$(INTROSPECTION_SCANNER) -v --namespace GES \
Sebastian Dröge's avatar
Sebastian Dröge committed
185
		--nsversion=@GST_API_VERSION@ \
186 187 188
		--identifier-prefix=GES \
		--symbol-prefix=ges \
		--warn-all \
189
		--c-include='ges/ges.h' \
190 191
		-I$(top_srcdir) \
		-I$(top_builddir) \
Sebastian Dröge's avatar
Sebastian Dröge committed
192 193
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-@GST_API_VERSION@` \
194 195 196 197
		--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@` \
198
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gio-2.0` \
Sebastian Dröge's avatar
Sebastian Dröge committed
199 200
		--library=libges-@GST_API_VERSION@.la \
		--include=Gst-@GST_API_VERSION@ \
201
		--include=GstVideo-@GST_API_VERSION@ \
Sebastian Dröge's avatar
Sebastian Dröge committed
202
		--include=GstPbutils-@GST_API_VERSION@ \
203
		--include=Gio-2.0 \
204
		--libtool="$(top_builddir)/libtool" \
Sebastian Dröge's avatar
Sebastian Dröge committed
205 206
		--pkg gstreamer-@GST_API_VERSION@ \
		--pkg gstreamer-pbutils-@GST_API_VERSION@ \
Lubosz Sarnecki's avatar
Lubosz Sarnecki committed
207
		--pkg gstreamer-controller-@GST_API_VERSION@ \
208
		--pkg gio-2.0 \
Sebastian Dröge's avatar
Sebastian Dröge committed
209
		--pkg-export ges-@GST_API_VERSION@ \
210 211
		--add-init-section="$(INTROSPECTION_INIT)" \
		--add-init-section="extern gboolean ges_init(void); ges_init();" \
212 213 214 215 216 217 218 219 220 221 222 223 224 225
		--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)
226 227
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_COMPILER) \
228 229 230
		--includedir=$(srcdir) \
		--includedir=$(srcdir)/../video \
		--includedir=$(builddir) \
Sebastian Dröge's avatar
Sebastian Dröge committed
231 232
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-@GST_API_VERSION@` \
233 234 235 236
		--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
237
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-controller-@GST_API_VERSION@` \
238
		--includedir=`$(PKG_CONFIG) --variable=girdir gio-2.0` \
239 240 241 242
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)

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

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

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

249 250
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 $^