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