meson: don't generate or install pkg-config file for gstreamer-wayland
[platform/upstream/gstreamer.git] / pkgconfig / Makefile.am
1
2 ### all of the standard pc files we need to generate
3 pcverfiles =  \
4         gstreamer-plugins-bad-@GST_API_VERSION@.pc \
5         gstreamer-codecparsers-@GST_API_VERSION@.pc \
6         gstreamer-insertbin-@GST_API_VERSION@.pc \
7         gstreamer-mpegts-@GST_API_VERSION@.pc \
8         gstreamer-player-@GST_API_VERSION@.pc \
9         gstreamer-bad-base-@GST_API_VERSION@.pc \
10         gstreamer-bad-audio-@GST_API_VERSION@.pc \
11         gstreamer-bad-video-@GST_API_VERSION@.pc \
12         gstreamer-bad-allocators-@GST_API_VERSION@.pc
13
14 pcverfiles_uninstalled = \
15         gstreamer-plugins-bad-@GST_API_VERSION@-uninstalled.pc \
16         gstreamer-codecparsers-@GST_API_VERSION@-uninstalled.pc \
17         gstreamer-insertbin-@GST_API_VERSION@-uninstalled.pc \
18         gstreamer-mpegts-@GST_API_VERSION@-uninstalled.pc \
19         gstreamer-player-@GST_API_VERSION@-uninstalled.pc \
20         gstreamer-bad-base-@GST_API_VERSION@-uninstalled.pc \
21         gstreamer-bad-audio-@GST_API_VERSION@-uninstalled.pc \
22         gstreamer-bad-video-@GST_API_VERSION@-uninstalled.pc \
23         gstreamer-bad-allocators-@GST_API_VERSION@-uninstalled.pc
24
25 if HAVE_GST_GL
26 pcverfiles += gstreamer-gl-@GST_API_VERSION@.pc
27 pcverfiles_uninstalled += gstreamer-gl-@GST_API_VERSION@-uninstalled.pc
28 endif
29
30 all-local: $(pcverfiles) $(pcverfiles_uninstalled)
31
32 cp_verbose = $(cp_verbose_$(V))
33 cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
34 cp_verbose_0 = @echo "  CP     $@";
35
36 ### how to generate versioned .pc files from .pc files in this dir
37 %-@GST_API_VERSION@.pc: %.pc
38         $(cp_verbose_0)cp $< $@
39 %-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
40 ### the uninstalled libdir is depend of the build system used so set it here
41 ### rather than hardcoding it in the file directly.
42         $(AM_V_GEN) sed \
43                 -e "s|[@]audiolibdir[@]|$(abs_top_builddir)/gst-libs/gst/audio/.libs|" \
44                 -e "s|[@]baselibdir[@]|$(abs_top_builddir)/gst-libs/gst/base/.libs|" \
45                 -e "s|[@]videolibdir[@]|$(abs_top_builddir)/gst-libs/gst/video/.libs|" \
46                 -e "s|[@]codecparserslibdir[@]|$(abs_top_builddir)/gst-libs/gst/codecparsers/.libs|" \
47                 -e "s|[@]gllibdir[@]|$(abs_top_builddir)/gst-libs/gst/gl/.libs|" \
48                 -e "s|[@]insertbinlibdir[@]|$(abs_top_builddir)/gst-libs/gst/insertbin/.libs|" \
49                 -e "s|[@]mpegtslibdir[@]|$(abs_top_builddir)/gst-libs/gst/mpegts/.libs|" \
50                 -e "s|[@]playerlibdir[@]|$(abs_top_builddir)/gst-libs/gst/player/.libs|" \
51                 -e "s|[@]waylandlibdir[@]|$(abs_top_builddir)/gst-libs/gst/wayland/.libs|" \
52                 -e "s|[@]basecamerabinsrclibdir[@]|$(abs_top_builddir)/gst-libs/gst/basecamerabinsrc/.libs|" \
53                 -e "s|[@]photographylibdir[@]|$(abs_top_builddir)/gst-libs/gst/interfaces/.libs|" \
54                 $< > $@.tmp && mv $@.tmp $@
55
56 pkgconfigdir = $(libdir)/pkgconfig
57 pkgconfig_DATA = $(pcverfiles)
58
59 CLEANFILES = $(pcverfiles) $(pcverfiles_uninstalled)
60 pcinfiles = \
61            gstreamer-plugins-bad.pc.in gstreamer-plugins-bad-uninstalled.pc.in \
62            gstreamer-codecparsers.pc.in gstreamer-codecparsers-uninstalled.pc.in \
63            gstreamer-gl.pc.in gstreamer-gl-uninstalled.pc.in \
64            gstreamer-insertbin.pc.in gstreamer-insertbin-uninstalled.pc.in \
65            gstreamer-mpegts.pc.in gstreamer-mpegts-uninstalled.pc.in \
66            gstreamer-player.pc.in gstreamer-player-uninstalled.pc.in \
67            gstreamer-bad-audio.pc.in gstreamer-bad-audio-uninstalled.pc.in \
68            gstreamer-bad-video.pc.in gstreamer-bad-video-uninstalled.pc.in \
69            gstreamer-bad-base.pc.in gstreamer-bad-base-uninstalled.pc.in \
70            gstreamer-bad-allocators.pc.in gstreamer-bad-allocators-uninstalled.pc.in
71
72 DISTCLEANFILES = $(pcinfiles:.in=)
73 EXTRA_DIST = $(pcinfiles)