204758092f527466c490993b7dbcb017ff88ae39
[platform/upstream/gstreamer.git] / libs / gst / helpers / Makefile.am
1 helpers_PROGRAMS = gst-plugin-scanner
2 helpersdir=$(libexecdir)/gstreamer-$(GST_API_VERSION)
3
4 gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
5 gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
6 gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
7
8 if ENABLE_BASH_COMPLETION
9 helpers_PROGRAMS += gst-completion-helper
10 gst_completion_helper_SOURCES = gst-completion-helper.c
11 gst_completion_helper_CFLAGS = $(GST_OBJ_CFLAGS)
12 gst_completion_helper_LDADD = $(GST_OBJ_LIBS)
13 endif
14
15 if HAVE_PTP
16 helpers_PROGRAMS += gst-ptp-helper
17 gst_ptp_helper_SOURCES = gst-ptp-helper.c
18 gst_ptp_helper_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)
19 gst_ptp_helper_LDADD = $(GST_OBJ_LIBS) $(GIO_LIBS) $(CAP_LIBS)
20 endif
21
22 install-data-hook:
23 if HAVE_PTP
24 if HAVE_PTP_HELPER_SETUID
25         - chown root $(DESTDIR)$(helpersdir)/gst-ptp-helper
26         - chmod u+s $(DESTDIR)$(helpersdir)/gst-ptp-helper
27 endif
28 if HAVE_PTP_HELPER_CAPABILITIES
29         - $(SETCAP) cap_net_bind_service,cap_net_admin+ep $(DESTDIR)$(helpersdir)/gst-ptp-helper
30 endif
31 endif
32
33 EXTRA_DIST = ptp_helper_post_install.sh
34
35 DISTCLEANFILES = libgstreamer-gdb.py
36
37 # install gdb scripts
38 gdbdir = $(datadir)/gstreamer-@GST_API_VERSION@/gdb
39 dist_gdb_DATA = gst_gdb.py glib_gobject_helper.py
40
41 install-data-hook:
42         $(INSTALL) -D $(builddir)/libgstreamer-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(libdir)/libgstreamer-@GST_API_VERSION@.so.0.$(GST_CURRENT).$(GST_REVISION)-gdb.py
43
44 uninstall-hook:
45         rm -f "$(DESTDIR)$(datadir)/gdb/auto-load$(libdir)/libgstreamer-@GST_API_VERSION@.so.0.$(GST_CURRENT).$(GST_REVISION)-gdb.py"