player: Add pkg-config files
[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
10 pcverfiles_uninstalled = \
11         gstreamer-plugins-bad-@GST_API_VERSION@-uninstalled.pc \
12         gstreamer-codecparsers-@GST_API_VERSION@-uninstalled.pc \
13         gstreamer-insertbin-@GST_API_VERSION@-uninstalled.pc \
14         gstreamer-mpegts-@GST_API_VERSION@-uninstalled.pc \
15         gstreamer-player-@GST_API_VERSION@-uninstalled.pc
16
17 if HAVE_GST_GL
18 pcverfiles += gstreamer-gl-@GST_API_VERSION@.pc
19 pcverfiles_uninstalled += gstreamer-gl-@GST_API_VERSION@-uninstalled.pc
20 endif
21
22 all-local: $(pcverfiles) $(pcverfiles_uninstalled)
23
24 cp_verbose = $(cp_verbose_$(V))
25 cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
26 cp_verbose_0 = @echo "  CP     $@";
27
28 ### how to generate versioned .pc files from .pc files in this dir
29 %-@GST_API_VERSION@.pc: %.pc
30         $(cp_verbose_0)cp $< $@
31 %-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
32         $(cp_verbose_0)cp $< $@
33
34 pkgconfigdir = $(libdir)/pkgconfig
35 pkgconfig_DATA = $(pcverfiles)
36
37 CLEANFILES = $(pcverfiles) $(pcverfiles_uninstalled)
38 pcinfiles = \
39            gstreamer-plugins-bad.pc.in gstreamer-plugins-bad-uninstalled.pc.in \
40            gstreamer-codecparsers.pc.in gstreamer-codecparsers-uninstalled.pc.in \
41            gstreamer-gl.pc.in gstreamer-gl-uninstalled.pc.in \
42            gstreamer-insertbin.pc.in gstreamer-insertbin-uninstalled.pc.in \
43            gstreamer-mpegts.pc.in gstreamer-mpegts-uninstalled.pc.in \
44            gstreamer-player.pc.in gstreamer-player-uninstalled.pc.in
45
46 DISTCLEANFILES = $(pcinfiles:.in=)
47 EXTRA_DIST = $(pcinfiles)