move check stuff to its own library to be used by other modules
[platform/upstream/gstreamer.git] / pkgconfig / Makefile.am
1 ### all of the standard pc files we need to generate
2 if HAVE_CHECK
3 CHECK_PC_I = gstreamer-check-@GST_MAJORMINOR@.pc
4 CHECK_PC_U = gstreamer-check-@GST_MAJORMINOR@-uninstalled.pc
5 else
6 CHECK_PC_I =
7 CHECK_PC_U =
8 endif
9
10 pcfiles =                                                       \
11         gstreamer-@GST_MAJORMINOR@.pc                           \
12         gstreamer-base-@GST_MAJORMINOR@.pc                      \
13         $(CHECK_PC_I)                                           \
14         gstreamer-controller-@GST_MAJORMINOR@.pc                \
15         gstreamer-dataprotocol-@GST_MAJORMINOR@.pc
16
17 pcfiles_uninstalled =                                           \
18         gstreamer-@GST_MAJORMINOR@-uninstalled.pc               \
19         gstreamer-base-@GST_MAJORMINOR@-uninstalled.pc          \
20         $(CHECK_PC_U)                                           \
21         gstreamer-controller-@GST_MAJORMINOR@-uninstalled.pc    \
22         gstreamer-dataprotocol-@GST_MAJORMINOR@-uninstalled.pc
23
24 all-local: $(pcfiles) $(pcfiles_uninstalled)
25
26 ### how to generate pc files
27 %-@GST_MAJORMINOR@.pc: %.pc
28         cp $< $@
29 %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
30         cp $< $@
31
32 pkgconfigdir = $(libdir)/pkgconfig
33 pkgconfig_DATA = $(pcfiles)
34
35 EXTRA_DIST =                                                    \
36         gstreamer.pc.in                                         \
37         gstreamer-uninstalled.pc.in                             \
38         gstreamer-base.pc.in                                    \
39         gstreamer-base-uninstalled.pc.in                        \
40         gstreamer-check.pc.in                                   \
41         gstreamer-check-uninstalled.pc.in                       \
42         gstreamer-controller.pc.in                              \
43         gstreamer-controller-uninstalled.pc.in                  \
44         gstreamer-dataprotocol.pc.in                            \
45         gstreamer-dataprotocol-uninstalled.pc.in
46
47 CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)