Makefile.am 6.41 KB
Newer Older
Edward Hervey's avatar
Edward Hervey committed
1
built_header_make = gesmarshal.h
2
built_source_make = gesmarshal.c
Edward Hervey's avatar
Edward Hervey committed
3
4
5

lib_LTLIBRARIES = libges-@GST_MAJORMINOR@.la

Edward Hervey's avatar
Edward Hervey committed
6
7
8
EXTRA_libges_@GST_MAJORMINOR@_la_SOURCES = gesmarshal.list 

CLEANFILES = $(BUILT_SOURCES) $(built_header_make) $(built_source_make)
Edward Hervey's avatar
Edward Hervey committed
9

Edward Hervey's avatar
Edward Hervey committed
10
libges_@GST_MAJORMINOR@_la_SOURCES = 		\
11
	$(built_source_make)			\
Edward Hervey's avatar
Edward Hervey committed
12
	ges.c					\
13
	ges-enums.c				\
14
	ges-custom-timeline-source.c		\
Edward Hervey's avatar
Edward Hervey committed
15
16
17
18
19
20
	ges-simple-timeline-layer.c		\
	ges-timeline.c				\
	ges-timeline-layer.c			\
	ges-timeline-object.c			\
	ges-timeline-pipeline.c			\
	ges-timeline-source.c			\
21
	ges-timeline-effect.c		\
22
	ges-timeline-parse-launch-effect.c		\
23
	ges-timeline-file-source.c		\
24
	ges-timeline-operation.c		\
Edward Hervey's avatar
Edward Hervey committed
25
	ges-timeline-transition.c		\
26
	ges-timeline-standard-transition.c	\
27
	ges-timeline-test-source.c		\
28
	ges-timeline-title-source.c		\
29
	ges-timeline-overlay.c			\
30
	ges-timeline-text-overlay.c		\
Edward Hervey's avatar
Edward Hervey committed
31
	ges-track.c				\
Edward Hervey's avatar
Edward Hervey committed
32
	ges-track-object.c			\
33
	ges-track-source.c			\
Brandon Lewis's avatar
Brandon Lewis committed
34
	ges-track-operation.c			\
Edward Hervey's avatar
Edward Hervey committed
35
	ges-track-filesource.c			\
Brandon Lewis's avatar
Brandon Lewis committed
36
	ges-track-image-source.c		\
37
	ges-track-transition.c			\
38
39
40
41
42
43
	ges-track-audio-transition.c		\
	ges-track-video-transition.c		\
	ges-track-video-test-source.c		\
	ges-track-audio-test-source.c		\
	ges-track-title-source.c		\
	ges-track-text-overlay.c		\
44
	ges-track-effect.c		\
45
	ges-track-parse-launch-effect.c		\
46
	ges-screenshot.c			\
47
	ges-formatter.c				\
48
	ges-keyfile-formatter.c			\
Edward Hervey's avatar
Edward Hervey committed
49
	ges-utils.c
Edward Hervey's avatar
Edward Hervey committed
50

Edward Hervey's avatar
Edward Hervey committed
51
52
libges_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/ges/
libges_@GST_MAJORMINOR@include_HEADERS = 	\
53
	$(built_header_make)			\
54
	ges-types.h				\
Edward Hervey's avatar
Edward Hervey committed
55
	ges.h					\
56
	ges-enums.h				\
57
	ges-custom-timeline-source.h		\
Edward Hervey's avatar
Edward Hervey committed
58
59
60
61
62
63
	ges-simple-timeline-layer.h		\
	ges-timeline.h				\
	ges-timeline-layer.h			\
	ges-timeline-object.h			\
	ges-timeline-pipeline.h			\
	ges-timeline-source.h			\
64
	ges-timeline-file-source.h		\
65
	ges-timeline-effect.h		\
66
	ges-timeline-parse-launch-effect.h		\
67
	ges-timeline-operation.h		\
Edward Hervey's avatar
Edward Hervey committed
68
	ges-timeline-transition.h		\
69
	ges-timeline-standard-transition.h	\
70
	ges-timeline-test-source.h		\
71
	ges-timeline-title-source.h		\
72
	ges-timeline-overlay.h			\
73
	ges-timeline-text-overlay.h		\
74
	ges-track-effect.h		\
75
	ges-track-parse-launch-effect.h		\
Edward Hervey's avatar
Edward Hervey committed
76
	ges-track.h				\
Edward Hervey's avatar
Edward Hervey committed
77
	ges-track-object.h			\
78
	ges-track-source.h			\
Brandon Lewis's avatar
Brandon Lewis committed
79
	ges-track-operation.h			\
Edward Hervey's avatar
Edward Hervey committed
80
	ges-track-filesource.h			\
Brandon Lewis's avatar
Brandon Lewis committed
81
	ges-track-image-source.h		\
82
	ges-track-transition.h			\
83
84
85
86
87
88
89
	ges-track-audio-transition.h		\
	ges-track-video-transition.h		\
	ges-track-video-test-source.h		\
	ges-track-audio-test-source.h		\
	ges-track-title-source.h		\
	ges-track-text-overlay.h		\
	ges-screenshot.h			\
90
	ges-formatter.h				\
91
	ges-keyfile-formatter.h			\
Edward Hervey's avatar
Edward Hervey committed
92
	ges-utils.h
Edward Hervey's avatar
Edward Hervey committed
93

94
95
96
noinst_HEADERS = \
	ges-internal.h

97
98
libges_@GST_MAJORMINOR@_la_CFLAGS = -I$(top_srcdir) $(GST_PBUTILS_CFLAGS) $(GST_VIDEO_CFLAGS) $(GST_CONTROLLER_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
libges_@GST_MAJORMINOR@_la_LIBADD = $(GST_PBUTILS_LIBS) $(GST_VIDEO_LIBS) $(GST_CONTROLLER_LIBS) $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) 
99
libges_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) -export-symbols-regex \^_*\(ges_\|GES_\).*
Edward Hervey's avatar
Edward Hervey committed
100

Edward Hervey's avatar
Edward Hervey committed
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
DISTCLEANFILE = $(CLEANFILES)

#files built on make all/check/instal
BUILT_SOURCES =			\
	$(built_header_make)	\
	$(built_source_make)

gesmarshal.h: gesmarshal.list
	glib-genmarshal --header --prefix=ges_marshal $^ > gesmarshal.h.tmp
	mv gesmarshal.h.tmp gesmarshal.h

gesmarshal.c: gesmarshal.list
	echo "#include \"glib-object.h\"" >gesmarshal.c.tmp
	echo "#include \"gesmarshal.h\"" >> gesmarshal.c.tmp
	glib-genmarshal --body --prefix=ges_marshal $^ >> gesmarshal.c.tmp
	mv gesmarshal.c.tmp gesmarshal.c
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
include $(top_srcdir)/common/gst-glib-gen.mak

if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GES-@GST_MAJORMINOR@.gir

gir_headers=$(patsubst %,$(srcdir)/%, $(libges_@GST_MAJORMINOR@include_HEADERS))
gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libges_@GST_MAJORMINOR@include_HEADERS))
gir_sources=$(patsubst %,$(srcdir)/%, $(libges_@GST_MAJORMINOR@_la_SOURCES))
gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libges_@GST_MAJORMINOR@_la_SOURCES))
gir_cincludes=$(patsubst %,--c-include='ges/%',$(libges_@GST_MAJORMINOR@include_HEADERS))
gir_cincludes+=$(patsubst %,--c-include='ges/%',$(nodist_libges_@GST_MAJORMINOR@include_HEADERS))

GES-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libges-@GST_MAJORMINOR@.la
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_SCANNER) -v --namespace GES \
		--nsversion=@GST_MAJORMINOR@ \
		--identifier-prefix=GES \
		--symbol-prefix=ges \
		--warn-all \
		$(gir_cincludes) \
		-I$(top_srcdir) \
		-I$(top_builddir) \
Edward Hervey's avatar
Edward Hervey committed
139
140
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.11` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-0.11` \
141
142
143
144
145
146
147
		--library=libges-@GST_MAJORMINOR@.la \
		--include=Gst-@GST_MAJORMINOR@ \
		--include=GstPbutils-@GST_MAJORMINOR@ \
		--libtool="$(top_builddir)/libtool" \
		--pkg gstreamer-@GST_MAJORMINOR@ \
		--pkg gstreamer-pbutils-@GST_MAJORMINOR@ \
		--pkg-export ges-@GST_MAJORMINOR@ \
148
		--add-init-section="ges_init(NULL, NULL);" \
149
150
151
152
153
154
155
156
157
158
159
160
161
162
		--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)
163
164
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_COMPILER) \
165
166
167
		--includedir=$(srcdir) \
		--includedir=$(srcdir)/../video \
		--includedir=$(builddir) \
Edward Hervey's avatar
Edward Hervey committed
168
169
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.11` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-0.11` \
170
171
172
173
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)

CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189

Android.mk: Makefile.am $(BUILT_SOURCES)
	androgenizer -:PROJECT libges -:SHARED libges-@GST_MAJORMINOR@ \
	 -:TAGS eng debug \
         -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
	 -:SOURCES $(libges_@GST_MAJORMINOR@_la_SOURCES) \
	           $(nodist_libges_@GST_MAJORMINOR@_la_SOURCES) \
	 -:CFLAGS $(DEFS) $(libges_@GST_MAJORMINOR@_la_CFLAGS) \
	 -:LDFLAGS $(libges_@GST_MAJORMINOR@_la_LDFLAGS) \
	           $(libges_@GST_MAJORMINOR@_la_LIBADD) \
	           -ldl \
	 -:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/interfaces \
	 -:HEADERS $(libges_@GST_MAJORMINOR@include_HEADERS) \
	           $(nodist_libges_@GST_MAJORMINOR@include_HEADERS) \
	 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
	> $@