ges: Implement GESAssetFileSource
[platform/upstream/gst-editing-services.git] / ges / Makefile.am
1 built_header_make =
2 built_source_make =
3
4 lib_LTLIBRARIES = libges-@GST_API_VERSION@.la
5
6 EXTRA_libges_@GST_API_VERSION@_la_SOURCES = gesmarshal.list
7
8 CLEANFILES = $(BUILT_SOURCES) $(built_header_make) $(built_source_make)
9
10 libges_@GST_API_VERSION@_la_SOURCES =           \
11         $(built_source_make)                    \
12         ges.c                                   \
13         ges-enums.c                             \
14         ges-custom-timeline-source.c            \
15         ges-meta-container.c        \
16         ges-simple-timeline-layer.c             \
17         ges-timeline.c                          \
18         ges-timeline-layer.c                    \
19         ges-timeline-object.c                   \
20         ges-timeline-pipeline.c                 \
21         ges-timeline-source.c                   \
22         ges-timeline-effect.c           \
23         ges-timeline-parse-launch-effect.c              \
24         ges-timeline-file-source.c              \
25         ges-timeline-operation.c                \
26         ges-timeline-transition.c               \
27         ges-timeline-standard-transition.c      \
28         ges-timeline-test-source.c              \
29         ges-timeline-title-source.c             \
30         ges-timeline-overlay.c                  \
31         ges-timeline-text-overlay.c             \
32         ges-track.c                             \
33         ges-track-object.c                      \
34         ges-track-source.c                      \
35         ges-track-operation.c                   \
36         ges-track-filesource.c                  \
37         ges-track-image-source.c                \
38         ges-track-transition.c                  \
39         ges-track-audio-transition.c            \
40         ges-track-video-transition.c            \
41         ges-track-video-test-source.c           \
42         ges-track-audio-test-source.c           \
43         ges-track-title-source.c                \
44         ges-track-text-overlay.c                \
45         ges-track-effect.c              \
46         ges-track-parse-launch-effect.c         \
47         ges-screenshot.c                        \
48         ges-formatter.c                         \
49         ges-pitivi-formatter.c                  \
50         ges-asset.c \
51         ges-asset-file-source.c \
52         ges-extractable.c \
53         ges-utils.c
54
55 libges_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/ges/
56 libges_@GST_API_VERSION@include_HEADERS =       \
57         $(built_header_make)                    \
58         ges-types.h                             \
59         ges.h                                   \
60         ges-enums.h                             \
61         ges-custom-timeline-source.h            \
62         ges-meta-container.h        \
63         ges-simple-timeline-layer.h             \
64         ges-timeline.h                          \
65         ges-timeline-layer.h                    \
66         ges-timeline-object.h                   \
67         ges-timeline-pipeline.h                 \
68         ges-timeline-source.h                   \
69         ges-timeline-file-source.h              \
70         ges-timeline-effect.h           \
71         ges-timeline-parse-launch-effect.h              \
72         ges-timeline-operation.h                \
73         ges-timeline-transition.h               \
74         ges-timeline-standard-transition.h      \
75         ges-timeline-test-source.h              \
76         ges-timeline-title-source.h             \
77         ges-timeline-overlay.h                  \
78         ges-timeline-text-overlay.h             \
79         ges-track-effect.h              \
80         ges-track-parse-launch-effect.h         \
81         ges-track.h                             \
82         ges-track-object.h                      \
83         ges-track-source.h                      \
84         ges-track-operation.h                   \
85         ges-track-filesource.h                  \
86         ges-track-image-source.h                \
87         ges-track-transition.h                  \
88         ges-track-audio-transition.h            \
89         ges-track-video-transition.h            \
90         ges-track-video-test-source.h           \
91         ges-track-audio-test-source.h           \
92         ges-track-title-source.h                \
93         ges-track-text-overlay.h                \
94         ges-screenshot.h                        \
95         ges-formatter.h                         \
96         ges-pitivi-formatter.h                  \
97         ges-asset.h \
98         ges-asset-file-source.h \
99         ges-extractable.h \
100         ges-utils.h
101
102 noinst_HEADERS = \
103         ges-internal.h \
104         ges-internal-enums.h
105
106 libges_@GST_API_VERSION@_la_CFLAGS = -I$(top_srcdir) $(GST_PBUTILS_CFLAGS) \
107                 $(GST_VIDEO_CFLAGS) $(GST_CONTROLLER_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
108                 $(GST_CFLAGS) $(XML_CFLAGS) $(GIO_CFLAGS)
109 libges_@GST_API_VERSION@_la_LIBADD = $(GST_PBUTILS_LIBS) \
110                 $(GST_VIDEO_LIBS) $(GST_CONTROLLER_LIBS) $(GST_PLUGINS_BASE_LIBS) \
111                 $(GST_BASE_LIBS) $(GST_LIBS) $(XML_LIBS) $(GIO_LIBS)
112 libges_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) \
113                 $(GST_LT_LDFLAGS) $(GIO_CFLAGS)
114
115 DISTCLEANFILE = $(CLEANFILES)
116
117 #files built on make all/check/instal
118 BUILT_SOURCES =                 \
119         $(built_header_make)    \
120         $(built_source_make)
121
122 include $(top_srcdir)/common/gst-glib-gen.mak
123
124 if HAVE_INTROSPECTION
125 BUILT_GIRSOURCES = GES-@GST_API_VERSION@.gir
126
127 gir_headers=$(patsubst %,$(srcdir)/%, $(libges_@GST_API_VERSION@include_HEADERS))
128 gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libges_@GST_API_VERSION@include_HEADERS))
129 gir_sources=$(patsubst %,$(srcdir)/%, $(libges_@GST_API_VERSION@_la_SOURCES))
130 gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libges_@GST_API_VERSION@_la_SOURCES))
131 gir_cincludes=$(patsubst %,--c-include='ges/%',$(libges_@GST_API_VERSION@include_HEADERS))
132 gir_cincludes+=$(patsubst %,--c-include='ges/%',$(nodist_libges_@GST_API_VERSION@include_HEADERS))
133
134 GES-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libges-@GST_API_VERSION@.la
135         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
136                 $(INTROSPECTION_SCANNER) -v --namespace GES \
137                 --nsversion=@GST_API_VERSION@ \
138                 --identifier-prefix=GES \
139                 --symbol-prefix=ges \
140                 --warn-all \
141                 $(gir_cincludes) \
142                 -I$(top_srcdir) \
143                 -I$(top_builddir) \
144                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
145                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-@GST_API_VERSION@` \
146                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-audio-@GST_API_VERSION@` \
147                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-video-@GST_API_VERSION@` \
148                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-tag-@GST_API_VERSION@` \
149                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
150                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gio-2.0` \
151                 --library=libges-@GST_API_VERSION@.la \
152                 --include=Gst-@GST_API_VERSION@ \
153                 --include=GstPbutils-@GST_API_VERSION@ \
154                 --libtool="$(top_builddir)/libtool" \
155                 --pkg gstreamer-@GST_API_VERSION@ \
156                 --pkg gstreamer-pbutils-@GST_API_VERSION@ \
157                 --pkg gio-2.0 \
158                 --pkg-export ges-@GST_API_VERSION@ \
159                 --add-init-section="gst_init(NULL, NULL);" \
160                 --add-init-section="ges_init(NULL, NULL);" \
161                 --output $@ \
162                 $(gir_headers) \
163                 $(gir_sources)
164
165 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
166 # install anything - we need to install inside our prefix.
167 girdir = $(datadir)/gir-1.0
168 gir_DATA = $(BUILT_GIRSOURCES)
169
170 typelibsdir = $(libdir)/girepository-1.0/
171
172 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
173
174 %.typelib: %.gir $(INTROSPECTION_COMPILER)
175         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
176                 $(INTROSPECTION_COMPILER) \
177                 --includedir=$(srcdir) \
178                 --includedir=$(srcdir)/../video \
179                 --includedir=$(builddir) \
180                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
181                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-@GST_API_VERSION@` \
182                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-audio-@GST_API_VERSION@` \
183                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-video-@GST_API_VERSION@` \
184                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-tag-@GST_API_VERSION@` \
185                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
186                 --includedir=`$(PKG_CONFIG) --variable=girdir gio-2.0` \
187                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
188
189 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
190 endif
191
192 Android.mk: Makefile.am $(BUILT_SOURCES)
193         androgenizer -:PROJECT libges -:SHARED libges-@GST_API_VERSION@ \
194          -:TAGS eng debug \
195          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
196          -:SOURCES $(libges_@GST_API_VERSION@_la_SOURCES) \
197                    $(nodist_libges_@GST_API_VERSION@_la_SOURCES) \
198          -:CFLAGS $(DEFS) $(libges_@GST_API_VERSION@_la_CFLAGS) \
199          -:LDFLAGS $(libges_@GST_API_VERSION@_la_LDFLAGS) \
200                    $(libges_@GST_API_VERSION@_la_LIBADD) \
201                    -ldl \
202          -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/interfaces \
203          -:HEADERS $(libges_@GST_API_VERSION@include_HEADERS) \
204                    $(nodist_libges_@GST_API_VERSION@include_HEADERS) \
205          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
206         > $@