Skip to content

Commit

Permalink
Meson: Generate pc file for all plugins in base
Browse files Browse the repository at this point in the history
  • Loading branch information
xclaesse authored and tp-m committed Apr 25, 2018
1 parent 447942c commit 201e7c7
Show file tree
Hide file tree
Showing 32 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions ext/alsa/meson.build
Expand Up @@ -18,4 +18,5 @@ if alsa_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstalsa, install_dir : plugins_pkgconfig_install_dir)
endif
1 change: 1 addition & 0 deletions ext/cdparanoia/meson.build
Expand Up @@ -29,4 +29,5 @@ if cdparanoia_found
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstcdparanoia, install_dir : plugins_pkgconfig_install_dir)
endif
1 change: 1 addition & 0 deletions ext/gl/meson.build
Expand Up @@ -117,4 +117,5 @@ if build_gstgl and gstgl_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstopengl, install_dir : plugins_pkgconfig_install_dir)
endif
1 change: 1 addition & 0 deletions ext/libvisual/meson.build
Expand Up @@ -16,4 +16,5 @@ if libvisual_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstlibvisual, install_dir : plugins_pkgconfig_install_dir)
endif
1 change: 1 addition & 0 deletions ext/ogg/meson.build
Expand Up @@ -23,4 +23,5 @@ if ogg_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstogg, install_dir : plugins_pkgconfig_install_dir)
endif
1 change: 1 addition & 0 deletions ext/opus/meson.build
Expand Up @@ -18,4 +18,5 @@ if opus_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstopus, install_dir : plugins_pkgconfig_install_dir)
endif
1 change: 1 addition & 0 deletions ext/pango/meson.build
Expand Up @@ -18,4 +18,5 @@ if pango_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstpango, install_dir : plugins_pkgconfig_install_dir)
endif
1 change: 1 addition & 0 deletions ext/theora/meson.build
Expand Up @@ -26,4 +26,5 @@ if theoradec_dep.found() or theoraenc_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gsttheora, install_dir : plugins_pkgconfig_install_dir)
endif
2 changes: 2 additions & 0 deletions ext/vorbis/meson.build
Expand Up @@ -39,6 +39,7 @@ if vorbis_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstvorbis, install_dir : plugins_pkgconfig_install_dir)
endif

if vorbisidec_dep.found()
Expand All @@ -51,4 +52,5 @@ if vorbisidec_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstivorbisdec, install_dir : plugins_pkgconfig_install_dir)
endif
1 change: 1 addition & 0 deletions gst/adder/meson.build
Expand Up @@ -27,3 +27,4 @@ adder = library('gstadder',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(adder, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/app/meson.build
Expand Up @@ -6,3 +6,4 @@ adder = library('gstapp',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(adder, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/audioconvert/meson.build
Expand Up @@ -11,3 +11,4 @@ gstaudioconvert = library('gstaudioconvert',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstaudioconvert, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/audiomixer/meson.build
Expand Up @@ -30,3 +30,4 @@ gstaudiomixer = library('gstaudiomixer',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstaudiomixer, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/audiorate/meson.build
Expand Up @@ -6,3 +6,4 @@ audiorate = library('gstaudiorate',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(audiorate, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/audioresample/meson.build
Expand Up @@ -8,3 +8,4 @@ audioresample = library('gstaudioresample',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(audioresample, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/audiotestsrc/meson.build
Expand Up @@ -6,3 +6,4 @@ audiotest = library('gstaudiotestsrc',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(audiotest, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/encoding/meson.build
Expand Up @@ -12,3 +12,4 @@ gstencoding = library('gstencoding',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstencoding, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/gio/meson.build
Expand Up @@ -15,3 +15,4 @@ gstgio = library('gstgio',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstgio, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/pbtypes/meson.build
Expand Up @@ -10,3 +10,4 @@ gstpbtypes = library('gstpbtypes',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstpbtypes, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/playback/meson.build
Expand Up @@ -26,3 +26,4 @@ gstplayback = library('gstplayback',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstplayback, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/rawparse/meson.build
Expand Up @@ -15,4 +15,5 @@ gstrawparse = library('gstrawparse',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstrawparse, install_dir : plugins_pkgconfig_install_dir)

1 change: 1 addition & 0 deletions gst/subparse/meson.build
Expand Up @@ -15,3 +15,4 @@ gstsubparse = library('gstsubparse',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstsubparse, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/tcp/meson.build
Expand Up @@ -21,3 +21,4 @@ gsttcp = library('gsttcp',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gsttcp, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/typefind/meson.build
Expand Up @@ -6,3 +6,4 @@ gsttypefind = library('gsttypefindfunctions',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gsttypefind, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/videoconvert/meson.build
Expand Up @@ -10,3 +10,4 @@ gstvideoconvert = library('gstvideoconvert',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstvideoconvert, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/videorate/meson.build
Expand Up @@ -6,3 +6,4 @@ gstvideorate = library('gstvideorate',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstvideorate, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/videoscale/meson.build
Expand Up @@ -10,3 +10,4 @@ gstvideoscale = library('gstvideoscale',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstvideoscale, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/videotestsrc/meson.build
Expand Up @@ -27,3 +27,4 @@ gstvideotestsrc = library('gstvideotestsrc',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstvideotestsrc, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions gst/volume/meson.build
Expand Up @@ -26,3 +26,4 @@ gstvolume = library('gstvolume', 'gstvolume.c', orc_c, orc_h,
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstvolume, install_dir : plugins_pkgconfig_install_dir)
7 changes: 7 additions & 0 deletions meson.build
Expand Up @@ -311,6 +311,13 @@ gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' +
'g_setenv("GST_PLUGIN_SYSTEM_PATH_1_0", "", TRUE);' + \
'gst_init(NULL,NULL);' ]

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-libs')
subdir('gst')
subdir('ext')
Expand Down
1 change: 1 addition & 0 deletions sys/ximage/meson.build
Expand Up @@ -6,3 +6,4 @@ gstximage = library('gstximagesink',
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstximage, install_dir : plugins_pkgconfig_install_dir)
1 change: 1 addition & 0 deletions sys/xvimage/meson.build
Expand Up @@ -18,4 +18,5 @@ if xvideo_dep.found()
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstxvimage, install_dir : plugins_pkgconfig_install_dir)
endif

0 comments on commit 201e7c7

Please sign in to comment.