Makefile.am 3.83 KB
Newer Older
Sebastian Dröge's avatar
Sebastian Dröge committed
1
lib_LTLIBRARIES = libgstapp-@GST_API_VERSION@.la
2

3
glib_enum_define = GST_APP
4
glib_gen_prefix = __gst_app
5
glib_gen_basename = gstapp
6

7
include $(top_srcdir)/common/gst-glib-gen.mak
8
9
10
11
12
13

built_sources = gstapp-marshal.c
built_headers = gstapp-marshal.h

BUILT_SOURCES = $(built_sources) $(built_headers)

Sebastian Dröge's avatar
Sebastian Dröge committed
14
nodist_libgstapp_@GST_API_VERSION@_la_SOURCES = \
15
16
             $(built_sources)

Sebastian Dröge's avatar
Sebastian Dröge committed
17
18
libgstapp_@GST_API_VERSION@_la_SOURCES = gstappsrc.c gstappsink.c 
libgstapp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
Tim-Philipp Müller's avatar
Tim-Philipp Müller committed
19
	$(GST_BASE_CFLAGS) $(GST_CFLAGS)
Sebastian Dröge's avatar
Sebastian Dröge committed
20
21
22
libgstapp_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS)
libgstapp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
libgstapp_@GST_API_VERSION@_la_LIBTOOLFLAGS = --tag=disable-static
23

Sebastian Dröge's avatar
Sebastian Dröge committed
24
25
libgstapp_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/app
libgstapp_@GST_API_VERSION@include_HEADERS = \
26
	gstappsrc.h \
David Schleef's avatar
David Schleef committed
27
	gstappsink.h
28

29
30
31
32
CLEANFILES = $(BUILT_SOURCES)

EXTRA_DIST = gstapp-marshal.list

33
if HAVE_INTROSPECTION
Sebastian Dröge's avatar
Sebastian Dröge committed
34
BUILT_GIRSOURCES = GstApp-@GST_API_VERSION@.gir
35

Sebastian Dröge's avatar
Sebastian Dröge committed
36
37
38
39
gir_headers=$(patsubst %,$(srcdir)/%, $(libgstapp_@GST_API_VERSION@include_HEADERS))
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstapp_@GST_API_VERSION@_la_SOURCES))
gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstapp_@GST_API_VERSION@_la_SOURCES))
gir_cincludes=$(patsubst %,--c-include='gst/app/%',$(libgstapp_@GST_API_VERSION@include_HEADERS))
40

Sebastian Dröge's avatar
Sebastian Dröge committed
41
GstApp-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstapp-@GST_API_VERSION@.la
42
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
43
		GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
44
		$(INTROSPECTION_SCANNER) -v --namespace GstApp \
Sebastian Dröge's avatar
Sebastian Dröge committed
45
		--nsversion=@GST_API_VERSION@ \
46
		--strip-prefix=Gst \
47
		--warn-all \
48
		$(gir_cincludes) \
49
50
		-I$(top_srcdir)/gst-libs \
		-I$(top_builddir)/gst-libs \
51
52
		--add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
		--add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
Sebastian Dröge's avatar
Sebastian Dröge committed
53
54
55
		--library=libgstapp-@GST_API_VERSION@.la \
		--include=Gst-@GST_API_VERSION@ \
		--include=GstBase-@GST_API_VERSION@ \
56
		--libtool="$(top_builddir)/libtool" \
Sebastian Dröge's avatar
Sebastian Dröge committed
57
58
59
		--pkg gstreamer-@GST_API_VERSION@ \
		--pkg gstreamer-base-@GST_API_VERSION@ \
		--pkg-export gstreamer-app-@GST_API_VERSION@ \
60
		--add-init-section="gst_init(NULL,NULL);" \
61
62
63
64
65
66
67
68
69
70
71
72
73
74
		--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)
75
76
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_COMPILER) \
77
78
		--includedir=$(srcdir) \
		--includedir=$(builddir) \
Sebastian Dröge's avatar
Sebastian Dröge committed
79
80
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
81
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
82
83
84

CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif
85
86

Android.mk: Makefile.am $(BUILT_SOURCES)
Sebastian Dröge's avatar
Sebastian Dröge committed
87
	androgenizer -:PROJECT libgstapp -:SHARED libgstapp-@GST_API_VERSION@ \
88
89
	 -:TAGS eng debug \
         -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
Sebastian Dröge's avatar
Sebastian Dröge committed
90
91
92
93
94
	 -:SOURCES $(libgstapp_@GST_API_VERSION@_la_SOURCES) \
	           $(nodist_libgstapp_@GST_API_VERSION@_la_SOURCES) \
	 -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstapp_@GST_API_VERSION@_la_CFLAGS) \
	 -:LDFLAGS $(libgstapp_@GST_API_VERSION@_la_LDFLAGS) \
	           $(libgstapp_@GST_API_VERSION@_la_LIBADD) \
95
	           -ldl \
Sebastian Dröge's avatar
Sebastian Dröge committed
96
97
	 -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/app \
	 -:HEADERS $(libgstapp_@GST_API_VERSION@include_HEADERS) \
98
99
	 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
	> $@