libs: Use foo/foo.h as single-include header consistently everywhere
[platform/upstream/gstreamer.git] / gst-libs / gst / rtp / Makefile.am
1 libgstrtpincludedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/rtp
2
3 libgstrtpinclude_HEADERS = \
4                            rtp.h \
5                            gstrtpbuffer.h \
6                            gstrtcpbuffer.h \
7                            gstrtppayloads.h \
8                            gstrtphdrext.h \
9                         gstrtpbaseaudiopayload.h \
10                         gstrtpbasepayload.h \
11                         gstrtpbasedepayload.h
12
13 lib_LTLIBRARIES = libgstrtp-@GST_API_VERSION@.la
14
15 libgstrtp_@GST_API_VERSION@_la_SOURCES = gstrtpbuffer.c \
16                                 gstrtcpbuffer.c \
17                                 gstrtppayloads.c \
18                                 gstrtphdrext.c \
19                                 gstrtpbaseaudiopayload.c \
20                                 gstrtpbasepayload.c \
21                                 gstrtpbasedepayload.c
22
23 libgstrtp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
24 libgstrtp_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS)
25 libgstrtp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
26
27 if HAVE_INTROSPECTION
28 BUILT_GIRSOURCES = GstRtp-@GST_API_VERSION@.gir
29
30 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstrtpinclude_HEADERS))
31 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstrtp_@GST_API_VERSION@_la_SOURCES))
32
33 GstRtp-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstrtp-@GST_API_VERSION@.la
34         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
35                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
36                 $(INTROSPECTION_SCANNER) -v --namespace GstRtp \
37                 --nsversion=@GST_API_VERSION@ \
38                 --strip-prefix=Gst \
39                 --warn-all \
40                 --c-include "gst/rtp/rtp.h" \
41                 -I$(top_srcdir)/gst-libs \
42                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
43                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
44                 --library=libgstrtp-@GST_API_VERSION@.la \
45                 --include=Gst-@GST_API_VERSION@ \
46                 --include=GstBase-@GST_API_VERSION@ \
47                 --libtool="$(top_builddir)/libtool" \
48                 --pkg gstreamer-@GST_API_VERSION@ \
49                 --pkg gstreamer-base-@GST_API_VERSION@ \
50                 --pkg-export gstreamer-rtp-@GST_API_VERSION@ \
51                 --add-init-section="gst_init(NULL,NULL);" \
52                 --output $@ \
53                 $(gir_headers) \
54                 $(gir_sources)
55
56 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
57 # install anything - we need to install inside our prefix.
58 girdir = $(datadir)/gir-1.0
59 gir_DATA = $(BUILT_GIRSOURCES)
60
61 typelibsdir = $(libdir)/girepository-1.0/
62
63 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
64
65 %.typelib: %.gir $(INTROSPECTION_COMPILER)
66         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
67                 $(INTROSPECTION_COMPILER) \
68                 --includedir=$(srcdir) \
69                 --includedir=$(builddir) \
70                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
71                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
72                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
73
74 CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
75 endif
76
77 Android.mk: Makefile.am $(BUILT_SOURCES)
78         androgenizer -:PROJECT libgstrtp -:SHARED libgstrtp-@GST_API_VERSION@ \
79          -:TAGS eng debug \
80          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
81          -:SOURCES $(libgstrtp_@GST_API_VERSION@_la_SOURCES) \
82          -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstrtp_@GST_API_VERSION@_la_CFLAGS) \
83          -:LDFLAGS $(libgstrtp_@GST_API_VERSION@_la_LDFLAGS) \
84                    $(libgstrtp_@GST_API_VERSION@_la_LIBADD) \
85                    -ldl \
86          -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/rtp \
87          -:HEADERS $(libgstrtp_@GST_API_VERSION@include_HEADERS) \
88          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
89         > $@