mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
bae1fe254a
This patch reorganize the bash completion scripts in order to install the binary helper (gst-completion-helper) in libexec path rather then share folder. Most Linux hierarchy compliance requires that no binary executable are placed in share. We also cleanup the unused .pc entries and remove copy pasted parts of the script. Note that other project including the common helper, should now use $_GST_HELPER to read the binary executable gst-completion-helper. This helper is not longer version, as it is placed in a versionned subfolder (libexec/gstreamer.10) just like the other helpers (scanner and ptp).
39 lines
1.2 KiB
Makefile
39 lines
1.2 KiB
Makefile
helpers_PROGRAMS = gst-plugin-scanner
|
|
helpersdir=$(libexecdir)/gstreamer-$(GST_API_VERSION)
|
|
|
|
gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
|
|
gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
|
|
|
|
if ENABLE_BASH_COMPLETION
|
|
helpers_PROGRAMS += gst-completion-helper
|
|
gst_completion_helper_SOURCES = gst-completion-helper.c
|
|
gst_completion_helper_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
gst_completion_helper_LDADD = $(GST_OBJ_LIBS)
|
|
endif
|
|
|
|
if HAVE_PTP
|
|
helpers_PROGRAMS += gst-ptp-helper
|
|
gst_ptp_helper_SOURCES = gst-ptp-helper.c
|
|
gst_ptp_helper_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)
|
|
gst_ptp_helper_LDADD = $(GST_OBJ_LIBS) $(GIO_LIBS) $(CAP_LIBS)
|
|
endif
|
|
|
|
install-data-hook:
|
|
if HAVE_PTP
|
|
if HAVE_PTP_HELPER_SETUID
|
|
- chown root $(DESTDIR)$(helpersdir)/gst-ptp-helper
|
|
- chmod u+s $(DESTDIR)$(helpersdir)/gst-ptp-helper
|
|
endif
|
|
if HAVE_PTP_HELPER_CAPABILITIES
|
|
- $(SETCAP) cap_net_bind_service,cap_net_admin+ep $(DESTDIR)$(helpersdir)/gst-ptp-helper
|
|
endif
|
|
endif
|
|
|
|
# clean out the old one to make sure everything is udpated correctly
|
|
# remove again after release
|
|
CLEANFILES = plugin-scanner
|
|
|
|
if ENABLE_BASH_COMPLETION
|
|
CLEANFILES += gst-completion-helper-@GST_API_VERSION@
|
|
endif
|