libs: Use foo/foo.h as single-include header consistently everywhere
[platform/upstream/gstreamer.git] / libs / gst / controller / Makefile.am
1 lib_LTLIBRARIES = libgstcontroller-@GST_API_VERSION@.la
2
3 libgstcontroller_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/controller
4 libgstcontroller_@GST_API_VERSION@_include_HEADERS = \
5         controller.h \
6         gstargbcontrolbinding.h \
7         gstdirectcontrolbinding.h \
8         gsttimedvaluecontrolsource.h \
9         gstinterpolationcontrolsource.h \
10         gsttriggercontrolsource.h \
11         gstlfocontrolsource.h
12
13 libgstcontroller_@GST_API_VERSION@_la_SOURCES = \
14         gstargbcontrolbinding.c \
15         gstdirectcontrolbinding.c \
16         gsttimedvaluecontrolsource.c \
17         gstinterpolationcontrolsource.c \
18         gsttriggercontrolsource.c \
19         gstlfocontrolsource.c
20
21 libgstcontroller_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS)
22 libgstcontroller_@GST_API_VERSION@_la_LIBADD = $(GST_OBJ_LIBS) $(LIBM)
23 libgstcontroller_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
24
25 CLEANFILES = *.gcno *.gcda *.gcov
26
27 %.c.gcov: .libs/libgstcontroller_@GST_API_VERSION@_la-%.gcda %.c
28         $(GCOV) -b -f -o $^ > $@.out
29
30 gcov: $(libgstcontroller_@GST_API_VERSION@_la_SOURCES:=.gcov)
31
32 Android.mk: Makefile.am
33         androgenizer -:PROJECT gstreamer -:SHARED libgstcontroller-@GST_API_VERSION@ -:TAGS eng debug \
34          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
35          -:SOURCES $(libgstcontroller_@GST_API_VERSION@_la_SOURCES) \
36          -:CFLAGS $(libgstcontroller_@GST_API_VERSION@_la_CFLAGS) \
37          -:LDFLAGS $(libgstcontroller_@GST_API_VERSION@_la_LDFLAGS) \
38                    $(libgstcontroller_@GST_API_VERSION@_la_LIBADD) \
39          -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/controller \
40          -:HEADERS $(libgstcontroller_@GST_API_VERSION@_include_HEADERS) \
41          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
42         > $@
43
44 if HAVE_INTROSPECTION
45 BUILT_GIRSOURCES = GstController-@GST_API_VERSION@.gir
46
47 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstcontroller_@GST_API_VERSION@_include_HEADERS))
48 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcontroller_@GST_API_VERSION@_la_SOURCES))
49
50 GstController-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcontroller-@GST_API_VERSION@.la
51         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
52                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
53                 $(INTROSPECTION_SCANNER) -v --namespace GstController \
54                 --nsversion=@GST_API_VERSION@ \
55                 --warn-all \
56                 --strip-prefix=Gst \
57                 -I$(top_srcdir) \
58                 -I$(top_srcdir)/libs \
59                 -I$(top_builddir) \
60                 -I$(top_builddir)/libs \
61                 --c-include "gst/controller/controller.h" \
62                 --add-include-path=$(top_builddir)/gst \
63                 --library-path=$(top_builddir)/gst \
64                 --library=libgstcontroller-@GST_API_VERSION@.la \
65                 --include=Gst-@GST_API_VERSION@ \
66                 --libtool="$(top_builddir)/libtool" \
67                 --pkg gstreamer-@GST_API_VERSION@ \
68                 --pkg-export gstreamer-controller-@GST_API_VERSION@ \
69                 --add-init-section="gst_init(NULL,NULL);" \
70                 --output $@ \
71                 $(gir_headers) \
72                 $(gir_sources)
73
74 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
75 # install anything - we need to install inside our prefix.
76 girdir = $(datadir)/gir-1.0
77 gir_DATA = $(BUILT_GIRSOURCES)
78
79 typelibsdir = $(libdir)/girepository-1.0/
80
81 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
82
83 %.typelib: %.gir $(INTROSPECTION_COMPILER)
84         $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
85
86 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
87 endif