Added gst-plugins-base-subtitles0.10-0.10.34 for Meego Harmattan 1.2
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / gst-libs / gst / interfaces / Makefile.am
1 lib_LTLIBRARIES = libgstinterfaces-@GST_MAJORMINOR@.la
2 libgstinterfacesincludedir = \
3         $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/interfaces
4
5 headers_interfaces =            \
6         colorbalance.h          \
7         colorbalancechannel.h   \
8         mixer.h                 \
9         mixeroptions.h          \
10         mixertrack.h            \
11         navigation.h            \
12         propertyprobe.h         \
13         streamvolume.h          \
14         tuner.h                 \
15         tunernorm.h             \
16         tunerchannel.h          \
17         videoorientation.h      \
18         xoverlay.h
19
20 # variables used for enum/marshal generation
21 glib_enum_headers = $(headers_interfaces)
22 glib_enum_define = GST_INTERFACES
23 glib_gen_prefix = gst_interfaces
24 glib_gen_basename = interfaces
25
26 built_sources = \
27         interfaces-marshal.c \
28         interfaces-enumtypes.c
29
30 built_headers = \
31         interfaces-marshal.h \
32         interfaces-enumtypes.h
33
34 libgstinterfacesinclude_HEADERS = \
35         $(headers_interfaces)
36
37 nodist_libgstinterfacesinclude_HEADERS = \
38         interfaces-enumtypes.h
39
40 libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES = \
41         colorbalance.c          \
42         colorbalancechannel.c   \
43         mixer.c                 \
44         mixeroptions.c          \
45         mixertrack.c            \
46         navigation.c            \
47         propertyprobe.c         \
48         streamvolume.c          \
49         tuner.c                 \
50         tunernorm.c             \
51         tunerchannel.c          \
52         videoorientation.c      \
53         xoverlay.c
54
55 nodist_libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES =   \
56         $(built_sources)                                \
57         interfaces-marshal.h
58
59 libgstinterfaces_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
60 libgstinterfaces_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS) $(LIBM) 
61 libgstinterfaces_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
62
63 BUILT_SOURCES = \
64         $(built_sources) \
65         $(built_headers)
66
67 EXTRA_DIST = interfaces-marshal.list
68
69 CLEANFILES = $(BUILT_SOURCES)
70
71 include $(top_srcdir)/common/gst-glib-gen.mak
72
73 if HAVE_INTROSPECTION
74 BUILT_GIRSOURCES = GstInterfaces-@GST_MAJORMINOR@.gir
75
76 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstinterfacesinclude_HEADERS))
77 gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstinterfacesinclude_HEADERS))
78 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES))
79 gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES))
80 gir_cincludes=$(patsubst %,--c-include='gst/interfaces/%',$(libgstinterfacesinclude_HEADERS))
81 gir_cincludes+=$(patsubst %,--c-include='gst/interfaces/%',$(nodist_libgstinterfacesinclude_HEADERS))
82
83 GstInterfaces-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstinterfaces-@GST_MAJORMINOR@.la
84         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
85                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
86                 $(INTROSPECTION_SCANNER) -v --namespace GstInterfaces \
87                 --nsversion=@GST_MAJORMINOR@ \
88                 --strip-prefix=Gst \
89                 $(gir_cincludes) \
90                 -I$(top_srcdir)/gst-libs \
91                 -I$(top_builddir)/gst-libs \
92                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
93                 --library=libgstinterfaces-@GST_MAJORMINOR@.la \
94                 --include=Gst-@GST_MAJORMINOR@ \
95                 --libtool="$(top_builddir)/libtool" \
96                 --pkg gstreamer-@GST_MAJORMINOR@ \
97                 --pkg-export gstreamer-interfaces-@GST_MAJORMINOR@ \
98                 --add-init-section="gst_init(NULL,NULL);" \
99                 --output $@ \
100                 $(gir_headers) \
101                 $(gir_sources)
102
103 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
104 # install anything - we need to install inside our prefix.
105 girdir = $(datadir)/gir-1.0
106 gir_DATA = $(BUILT_GIRSOURCES)
107
108 typelibsdir = $(libdir)/girepository-1.0/
109
110 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
111
112 %.typelib: %.gir $(INTROSPECTION_COMPILER)
113         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
114                 $(INTROSPECTION_COMPILER) \
115                 --includedir=$(srcdir) \
116                 --includedir=$(builddir) \
117                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
118                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
119
120 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
121 endif
122
123 Android.mk: Makefile.am $(BUILT_SOURCES)
124         androgenizer -:PROJECT libgstinterfaces -:SHARED libgstinterfaces-@GST_MAJORMINOR@ \
125          -:TAGS eng debug \
126          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
127          -:SOURCES $(libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES) \
128                    $(nodist_libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES) \
129          -:CFLAGS $(DEFS) $(libgstinterfaces_@GST_MAJORMINOR@_la_CFLAGS) \
130          -:LDFLAGS $(libgstinterfaces_@GST_MAJORMINOR@_la_LDFLAGS) \
131                    $(libgstinterfaces_@GST_MAJORMINOR@_la_LIBADD) \
132                    -ldl \
133          -:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/interfaces \
134          -:HEADERS $(libgstinterfacesinclude_HEADERS) \
135                    $(nodist_libgstinterfacesinclude_HEADERS) \
136          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
137         > $@