meson: generate pkg-config -uninstalled pc files
[platform/upstream/gstreamer.git] / pkgconfig / Makefile.am
1 pcfiles = \
2         gst-editing-services-@GST_API_VERSION@.pc
3
4 pcfiles_uninstalled = \
5         gst-editing-services-@GST_API_VERSION@-uninstalled.pc
6
7 all-local: $(pcfiles) $(pcfiles_uninstalled)
8
9 ### how to generate pc files
10 %-@GST_API_VERSION@.pc: %.pc
11         cp $< $@
12 %-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
13 ### the uninstalled libdir is depend of the build system used so set it here
14 ### rather than hardcoding it in the file directly.
15         $(AM_V_GEN) sed \
16                 -e "s|[@]geslibdir[@]|$(abs_top_builddir)/ges/.libs|" \
17                 $< > $@.tmp && mv $@.tmp $@
18
19 pkgconfigdir = $(libdir)/pkgconfig
20 pkgconfig_DATA = $(pcfiles)
21
22 EXTRA_DIST = \
23         gst-editing-services.pc.in \
24         gst-editing-services-uninstalled.pc.in
25 CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)