Meson: Generate pc file for all plugins in good
authorXavier Claessens <xavier.claessens@collabora.com>
Tue, 24 Apr 2018 18:06:10 +0000 (14:06 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 25 Apr 2018 10:07:06 +0000 (11:07 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=794568

65 files changed:
ext/cairo/meson.build
ext/dv/meson.build
ext/flac/meson.build
ext/gdk_pixbuf/meson.build
ext/gtk/meson.build
ext/jack/meson.build
ext/jpeg/meson.build
ext/lame/meson.build
ext/libpng/meson.build
ext/mpg123/meson.build
ext/pulse/meson.build
ext/shout2/meson.build
ext/soup/meson.build
ext/speex/meson.build
ext/taglib/meson.build
ext/twolame/meson.build
ext/vpx/meson.build
ext/wavpack/meson.build
gst/alpha/meson.build
gst/apetag/meson.build
gst/audiofx/meson.build
gst/audioparsers/meson.build
gst/auparse/meson.build
gst/autodetect/meson.build
gst/avi/meson.build
gst/cutter/meson.build
gst/debugutils/meson.build
gst/deinterlace/meson.build
gst/dtmf/meson.build
gst/effectv/meson.build
gst/equalizer/meson.build
gst/flv/meson.build
gst/flx/meson.build
gst/goom/meson.build
gst/goom2k1/meson.build
gst/icydemux/meson.build
gst/id3demux/meson.build
gst/imagefreeze/meson.build
gst/interleave/meson.build
gst/isomp4/meson.build
gst/law/meson.build
gst/level/meson.build
gst/matroska/meson.build
gst/monoscope/meson.build
gst/multifile/meson.build
gst/multipart/meson.build
gst/replaygain/meson.build
gst/rtp/meson.build
gst/rtpmanager/meson.build
gst/rtsp/meson.build
gst/shapewipe/meson.build
gst/smpte/meson.build
gst/spectrum/meson.build
gst/udp/meson.build
gst/videobox/meson.build
gst/videocrop/meson.build
gst/videofilter/meson.build
gst/videomixer/meson.build
gst/wavenc/meson.build
gst/wavparse/meson.build
gst/y4m/meson.build
meson.build
sys/directsound/meson.build
sys/v4l2/meson.build
sys/ximage/meson.build

index 9601bc7..0de51ee 100644 (file)
@@ -10,4 +10,5 @@ if cairo_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstcairo, install_dir : plugins_pkgconfig_install_dir)
 endif
index dd0aa08..e012a08 100644 (file)
@@ -17,6 +17,7 @@ if dv_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstdv, install_dir : plugins_pkgconfig_install_dir)
 
   #executable('smpte_test',
   #  'smpte_test.c', 'gstsmptetimecode.c',
index 9b66d16..a533b09 100644 (file)
@@ -17,4 +17,5 @@ if flac_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstflac, install_dir : plugins_pkgconfig_install_dir)
 endif
index 0079a9d..1906083 100644 (file)
@@ -17,4 +17,5 @@ if gdkpixbuf_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstgdkpixbuf, install_dir : plugins_pkgconfig_install_dir)
 endif
index d7aeee2..22e4f5d 100644 (file)
@@ -50,5 +50,6 @@ if gtk_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstgtk, install_dir : plugins_pkgconfig_install_dir)
 endif
 
index 1a98a05..173f2d4 100644 (file)
@@ -17,4 +17,5 @@ if libjack_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstjack, install_dir : plugins_pkgconfig_install_dir)
 endif
index e3628cb..5108d42 100644 (file)
@@ -16,4 +16,5 @@ if jpeglib.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstjpeg, install_dir : plugins_pkgconfig_install_dir)
 endif
index e3e61b6..23faa2c 100644 (file)
@@ -16,4 +16,5 @@ if lame_dep.found() and cc.has_header_symbol('lame/lame.h', 'lame_init')
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(lame, install_dir : plugins_pkgconfig_install_dir)
 endif
index 7e01e9f..f6511f4 100644 (file)
@@ -16,4 +16,5 @@ if libpng_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstpng, install_dir : plugins_pkgconfig_install_dir)
 endif
index 3891fd7..3e659d5 100644 (file)
@@ -9,4 +9,5 @@ if mpg123_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstmpg123, install_dir : plugins_pkgconfig_install_dir)
 endif
index d685f91..28b4d61 100644 (file)
@@ -17,4 +17,5 @@ if libpulse_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstpulse, install_dir : plugins_pkgconfig_install_dir)
 endif
index ae77958..cd67b4c 100644 (file)
@@ -11,4 +11,5 @@ if shout2_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstshout2, install_dir : plugins_pkgconfig_install_dir)
 endif
index 3fd7129..d231330 100644 (file)
@@ -22,4 +22,5 @@ if libsoup_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstsouphttpsrc, install_dir : plugins_pkgconfig_install_dir)
 endif
index b682f08..931d7bb 100644 (file)
@@ -16,4 +16,5 @@ if speex_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstspeex, install_dir : plugins_pkgconfig_install_dir)
 endif
index 241f9b5..5a93ff3 100644 (file)
@@ -25,4 +25,5 @@ if taglib_dep.found() and add_languages('cpp', required : false)
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gsttaglib, install_dir : plugins_pkgconfig_install_dir)
 endif
index cabab63..cb406f9 100644 (file)
@@ -9,4 +9,5 @@ if twolame_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(twolame, install_dir : plugins_pkgconfig_install_dir)
 endif
index 685aeb7..7a8ac85 100644 (file)
@@ -57,6 +57,7 @@ if vpx_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstvpx, install_dir : plugins_pkgconfig_install_dir)
 
   install_data(sources: ['GstVP8Enc.prs'], install_dir: presetdir)
 endif
index c4c9071..51294d8 100644 (file)
@@ -18,4 +18,5 @@ if wavpack_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstwavpack, install_dir : plugins_pkgconfig_install_dir)
 endif
index 265525e..f11547d 100644 (file)
@@ -5,6 +5,7 @@ gstalpha = library('gstalpha', 'gstalpha.c',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstalpha, install_dir : plugins_pkgconfig_install_dir)
 
 gstalphacolor = library('gstalphacolor', 'gstalphacolor.c',
   c_args : gst_plugins_good_args,
@@ -13,3 +14,4 @@ gstalphacolor = library('gstalphacolor', 'gstalphacolor.c',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstalphacolor, install_dir : plugins_pkgconfig_install_dir)
index 568c645..33dc0fd 100644 (file)
@@ -5,3 +5,4 @@ gstapetag = library('gstapetag', 'gstapedemux.c',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstapetag, install_dir : plugins_pkgconfig_install_dir)
index b355044..52c6e0f 100644 (file)
@@ -44,3 +44,4 @@ gstaudiofx = library('gstaudiofx',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstaudiofx, install_dir : plugins_pkgconfig_install_dir)
index 9a5bf87..1e2764f 100644 (file)
@@ -19,3 +19,4 @@ gstaudioparsers = library('gstaudioparsers',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstaudioparsers, install_dir : plugins_pkgconfig_install_dir)
index 5d308d2..69b183a 100644 (file)
@@ -6,3 +6,4 @@ gstauparse = library('gstauparse',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstauparse, install_dir : plugins_pkgconfig_install_dir)
index 4512d2b..4ea40b5 100644 (file)
@@ -14,3 +14,4 @@ gstautodetect = library('gstautodetect',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstautodetect, install_dir : plugins_pkgconfig_install_dir)
index 64fd1c4..10243a6 100644 (file)
@@ -13,3 +13,4 @@ gstavi = library('gstavi',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstavi, install_dir : plugins_pkgconfig_install_dir)
index 3f580bd..16a35e4 100644 (file)
@@ -5,3 +5,4 @@ gstcutter = library('gstcutter', 'gstcutter.c',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstcutter, install_dir : plugins_pkgconfig_install_dir)
index d180577..672c06f 100644 (file)
@@ -6,6 +6,7 @@ gstnavigationtest = library('gstnavigationtest',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstnavigationtest, install_dir : plugins_pkgconfig_install_dir)
 
 gstdebug = library('gstdebug',
   'gstdebug.c',
@@ -25,3 +26,4 @@ gstdebug = library('gstdebug',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstdebug, install_dir : plugins_pkgconfig_install_dir)
index 11e6c53..6957ba6 100644 (file)
@@ -40,4 +40,5 @@ gstdeinterlace = library('gstdeinterlace',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstdeinterlace, install_dir : plugins_pkgconfig_install_dir)
 
index 2b7201f..bb1ebca 100644 (file)
@@ -13,4 +13,5 @@ gstdtmf = library('gstdtmf',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstdtmf, install_dir : plugins_pkgconfig_install_dir)
 
index 69d97e0..c9f679a 100644 (file)
@@ -12,3 +12,4 @@ gsteffectv = library('gsteffectv',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gsteffectv, install_dir : plugins_pkgconfig_install_dir)
index c7981fb..38ee0eb 100644 (file)
@@ -13,6 +13,7 @@ gstequalizer = library('gstequalizer',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstequalizer, install_dir : plugins_pkgconfig_install_dir)
 
 install_data(sources: ['GstIirEqualizer3Bands.prs',
   'GstIirEqualizer10Bands.prs'], install_dir: presetdir)
index b9190d3..f0d4d21 100644 (file)
@@ -6,3 +6,4 @@ gstflv = library('gstflv',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstflv, install_dir : plugins_pkgconfig_install_dir)
index bb7c9f5..1189b3b 100644 (file)
@@ -6,3 +6,4 @@ flxdec = library('gstflxdec',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(flxdec, install_dir : plugins_pkgconfig_install_dir)
index 07d83a3..39d0f5e 100644 (file)
@@ -27,3 +27,4 @@ gstgoom = library('gstgoom',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstgoom, install_dir : plugins_pkgconfig_install_dir)
index 6460bd8..625373a 100644 (file)
@@ -37,3 +37,4 @@ gstgoom2k1 = library('gstgoom2k1',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstgoom2k1, install_dir : plugins_pkgconfig_install_dir)
index 5c5f857..a4804f4 100644 (file)
@@ -6,3 +6,4 @@ gsticydemux = library('gsticydemux',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gsticydemux, install_dir : plugins_pkgconfig_install_dir)
index 38ea56e..2b95ccf 100644 (file)
@@ -6,3 +6,4 @@ gstid3demux = library('gstid3demux',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstid3demux, install_dir : plugins_pkgconfig_install_dir)
index 7af6a03..c7313c8 100644 (file)
@@ -6,3 +6,4 @@ gstimagefreeze = library('gstimagefreeze',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstimagefreeze, install_dir : plugins_pkgconfig_install_dir)
index 428b36a..ff0c74c 100644 (file)
@@ -6,3 +6,4 @@ gstinterleave = library('gstinterleave',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstinterleave, install_dir : plugins_pkgconfig_install_dir)
index bda2d64..cf05830 100644 (file)
@@ -25,5 +25,6 @@ gstisomp4 = library('gstisomp4',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstisomp4, install_dir : plugins_pkgconfig_install_dir)
 
 install_data(sources: 'GstQTMux.prs', install_dir: presetdir)
index 661810d..ee2ea44 100644 (file)
@@ -6,6 +6,7 @@ gstalaw = library('gstalaw',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstalaw, install_dir : plugins_pkgconfig_install_dir)
 
 gstmulaw = library('gstmulaw',
   'mulaw-encode.c', 'mulaw-conversion.c', 'mulaw-decode.c', 'mulaw.c',
@@ -15,3 +16,4 @@ gstmulaw = library('gstmulaw',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstmulaw, install_dir : plugins_pkgconfig_install_dir)
index 24ac4c9..f59420b 100644 (file)
@@ -6,3 +6,4 @@ gstlevel = library('gstlevel',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstlevel, install_dir : plugins_pkgconfig_install_dir)
index a5386cf..41fafe4 100644 (file)
@@ -22,3 +22,4 @@ gstmatroska = library('gstmatroska',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstmatroska, install_dir : plugins_pkgconfig_install_dir)
index 2aad191..a2c896b 100644 (file)
@@ -8,3 +8,4 @@ gstmonoscope = library('gstmonoscope',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstmonoscope, install_dir : plugins_pkgconfig_install_dir)
index a5e4736..d00a4fd 100644 (file)
@@ -19,6 +19,7 @@ gstmultifile = library('gstmultifile',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstmultifile, install_dir : plugins_pkgconfig_install_dir)
 
 test_splitmuxpartreader_sources = [
   'test-splitmuxpartreader.c',
index 61aca62..e53d3da 100644 (file)
@@ -8,3 +8,4 @@ gstmultipart = library('gstmultipart',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstmultipart, install_dir : plugins_pkgconfig_install_dir)
index 34437a2..fd484b6 100644 (file)
@@ -14,4 +14,5 @@ gstreplaygain = library('gstreplaygain',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstreplaygain, install_dir : plugins_pkgconfig_install_dir)
 
index 522c637..3cf2173 100644 (file)
@@ -118,3 +118,4 @@ gstrtp = library('gstrtp',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstrtp, install_dir : plugins_pkgconfig_install_dir)
index 2a56f37..1c9fa45 100644 (file)
@@ -24,3 +24,4 @@ gstrtpmanager = library('gstrtpmanager',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstrtpmanager, install_dir : plugins_pkgconfig_install_dir)
index 1fe8a7b..81ec027 100644 (file)
@@ -13,3 +13,4 @@ gstrtsp = library('gstrtsp',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstrtsp, install_dir : plugins_pkgconfig_install_dir)
index ecb3cdf..f96036e 100644 (file)
@@ -6,3 +6,4 @@ gstshapewipe = library('gstshapewipe',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstshapewipe, install_dir : plugins_pkgconfig_install_dir)
index 45539d3..78a85d4 100644 (file)
@@ -15,3 +15,4 @@ gstsmpte = library('gstsmpte',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstsmpte, install_dir : plugins_pkgconfig_install_dir)
index 4dd5e97..7250562 100644 (file)
@@ -6,3 +6,4 @@ gstspectrum = library('gstspectrum',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstspectrum, install_dir : plugins_pkgconfig_install_dir)
index 2fc576d..ad917c3 100644 (file)
@@ -15,3 +15,4 @@ gstudp = library('gstudp',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstudp, install_dir : plugins_pkgconfig_install_dir)
index 430ede0..139910b 100644 (file)
@@ -25,3 +25,4 @@ gstvideobox = library('gstvideobox',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstvideobox, install_dir : plugins_pkgconfig_install_dir)
index 606b7be..2ac6bf2 100644 (file)
@@ -6,3 +6,4 @@ gstvideocrop = library('gstvideocrop',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstvideocrop, install_dir : plugins_pkgconfig_install_dir)
index 8fac1d5..e648bdb 100644 (file)
@@ -14,3 +14,4 @@ gstvideofilter = library('gstvideofilter',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstvideofilter, install_dir : plugins_pkgconfig_install_dir)
index 1425a43..abe5c1b 100644 (file)
@@ -30,3 +30,4 @@ gstvideomixer = library('gstvideomixer',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstvideomixer, install_dir : plugins_pkgconfig_install_dir)
index 98a9299..70c7a3d 100644 (file)
@@ -6,3 +6,4 @@ gstwavenc = library('gstwavenc',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstwavenc, install_dir : plugins_pkgconfig_install_dir)
index dceba34..ea1b565 100644 (file)
@@ -7,3 +7,4 @@ gstwawparse = library('gstwavparse',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gstwawparse, install_dir : plugins_pkgconfig_install_dir)
index d680e7e..8579bd4 100644 (file)
@@ -6,3 +6,4 @@ gsty4menc = library('gsty4menc',
   install : true,
   install_dir : plugins_install_dir,
 )
+pkgconfig.generate(gsty4menc, install_dir : plugins_pkgconfig_install_dir)
index feb1660..29f8a5e 100644 (file)
@@ -357,6 +357,13 @@ endif
 
 presetdir = join_paths(get_option('datadir'), 'gstreamer-' + api_version, 'presets')
 
+pkgconfig = import('pkgconfig')
+plugins_pkgconfig_install_dir = join_paths(plugins_install_dir, 'pkgconfig')
+if get_option('default_library') == 'shared'
+  # If we don't build static plugins there is no need to generate pc files
+  plugins_pkgconfig_install_dir = disabler()
+endif
+
 subdir('gst')
 subdir('sys')
 subdir('ext')
index 4b2144b..bffaba1 100644 (file)
@@ -21,4 +21,5 @@ if host_machine.system() == 'windows' and cc.has_header('dsound.h')
     dependencies : [gstaudio_dep] + directsoundsink_dep,
     install : true,
     install_dir : plugins_install_dir)
+  pkgconfig.generate(gstdirectsoundsink, install_dir : plugins_pkgconfig_install_dir)
 endif
index 83ecc02..0f06558 100644 (file)
@@ -51,4 +51,5 @@ if cc.has_header('linux/videodev2.h') or cc.has_header('sys/videodev2.h') or cc.
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstv4l2, install_dir : plugins_pkgconfig_install_dir)
 endif
index 36ec21e..9165465 100644 (file)
@@ -27,4 +27,5 @@ if x11_dep.found()
     install : true,
     install_dir : plugins_install_dir,
   )
+  pkgconfig.generate(gstximagesrc, install_dir : plugins_pkgconfig_install_dir)
 endif