mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
e6c6bf96ce
Generating those files is useful for users building the GStreamer stack using meson and having to link it to another project which is still using the autotools. https://bugzilla.gnome.org/show_bug.cgi?id=776810
25 lines
760 B
Makefile
25 lines
760 B
Makefile
pcfiles = \
|
|
gstreamer-rtsp-server-@GST_API_VERSION@.pc
|
|
|
|
pcfiles_uninstalled = \
|
|
gstreamer-rtsp-server-@GST_API_VERSION@-uninstalled.pc
|
|
|
|
all-local: $(pcfiles) $(pcfiles_uninstalled)
|
|
|
|
### how to generate pc files
|
|
%-@GST_API_VERSION@.pc: %.pc
|
|
cp $< $@
|
|
%-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
|
|
### the uninstalled libdir is depend of the build system used so set it here
|
|
### rather than hardcoding it in the file directly.
|
|
$(AM_V_GEN) sed \
|
|
-e "s|[@]rtspserverlibdir[@]|$(abs_top_builddir)/gst/rtsp-server/.libs|" \
|
|
$< > $@.tmp && mv $@.tmp $@
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = $(pcfiles)
|
|
|
|
EXTRA_DIST = \
|
|
gstreamer-rtsp-server.pc.in \
|
|
gstreamer-rtsp-server-uninstalled.pc.in
|
|
CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)
|