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