forked from GStreamer/gst-plugins-bad
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson: Expose options to enable/disable plugins
- Loading branch information
Thibault Saunier
committed
Sep 6, 2017
1 parent
039fc65
commit 8bc0304
Showing
57 changed files
with
955 additions
and
891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
ass_dep = dependency('libass', version : '>= 0.10.2', required : false) | ||
ass_comp = component('assrender') | ||
ass_dep = dependency('libass', version : '>= 0.10.2', required : false, | ||
components: ass_comp) | ||
|
||
if ass_dep.found() | ||
gstassrender = library('gstassrender', | ||
'gstassrender.c', | ||
c_args : gst_plugins_bad_args, | ||
link_args : noseh_link_args, | ||
include_directories : [configinc], | ||
dependencies : [gstvideo_dep, ass_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
) | ||
endif | ||
gstassrender = library('gstassrender', | ||
'gstassrender.c', | ||
c_args : gst_plugins_bad_args, | ||
link_args : noseh_link_args, | ||
include_directories : [configinc], | ||
dependencies : [gstvideo_dep, ass_comp.dependencies()], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
components: ass_comp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
chromaprint_dep = dependency('libchromaprint', required : false) | ||
chromaprint_comp = component('chromaprint') | ||
chromaprint_dep = dependency('libchromaprint', required : false, | ||
components: chromaprint_comp) | ||
|
||
if chromaprint_dep.found() | ||
gstchromaprint = library('gstchromaprint', | ||
'gstchromaprint.c', | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, chromaprint_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
) | ||
endif | ||
gstchromaprint = library('gstchromaprint', | ||
'gstchromaprint.c', | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, chromaprint_comp.dependencies()], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
components: chromaprint_comp, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
directfb_dep = dependency('directfb', version : '>= 0.9.24', required : false) | ||
directfb_comp = component('directfb') | ||
directfb_dep = dependency('directfb', version : '>= 0.9.24', required : false, | ||
components: directfb_comp) | ||
|
||
if directfb_dep.found() | ||
gstdirectfb = library('gstdirectfb', | ||
'dfbvideosink.c', | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstvideo_dep, directfb_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
) | ||
endif | ||
gstdirectfb = library('gstdirectfb', | ||
'dfbvideosink.c', | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstvideo_dep, directfb_comp.dependencies()], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
components: directfb_comp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
dca_dep = dependency('libdca', required : false) | ||
dtsdec_comp = component('dtsdec') | ||
|
||
if not dca_dep.found() and cc.has_header_symbol('dca.h', 'dca_init') | ||
dca_dep = cc.find_library('dca', required : false) | ||
endif | ||
|
||
if dca_dep.found() | ||
gstdtsdec = library('gstdtsdec', | ||
'gstdtsdec.c', | ||
c_args : gst_plugins_bad_args, | ||
link_args : noseh_link_args, | ||
include_directories : [configinc, libsinc], | ||
dependencies : [gstaudio_dep, orc_dep, dca_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
if not dependency('libdca', required : false).found() | ||
dca_dep = cc.find_dependency('dca', | ||
libs: ['dca'], | ||
headers_symbols: [['dca.h', 'dca_init']], | ||
required : false, | ||
components: dtsdec_comp | ||
) | ||
else | ||
dca_dep = dependency('libdca', required : false, | ||
components: dtsdec_comp) | ||
endif | ||
|
||
gstdtsdec = library('gstdtsdec', | ||
'gstdtsdec.c', | ||
c_args : gst_plugins_bad_args, | ||
link_args : noseh_link_args, | ||
include_directories : [configinc, libsinc], | ||
dependencies : [gstaudio_dep, orc_dep, dca_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
components: dtsdec_comp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
faac_dep = cc.find_library('faac', required : false) | ||
faac_comp = component('faac') | ||
faac_dep = cc.find_dependency('faac', | ||
libs: ['faac'], | ||
headers_symbols: [['faac.h', 'faacEncOpen']], | ||
components: faac_comp, | ||
required: false | ||
) | ||
|
||
if faac_dep.found() and cc.has_header_symbol('faac.h', 'faacEncOpen') | ||
gstfaac = library('gstfaac', | ||
'gstfaac.c', | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, gstpbutils_dep, gsttag_dep, faac_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
) | ||
endif | ||
gstfaac = library('gstfaac', | ||
'gstfaac.c', | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, gstpbutils_dep, gsttag_dep, faac_comp.dependencies()], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
components: faac_comp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
faad_args = [ ] | ||
faad_comp = component('faad') | ||
faad_dep = cc.find_dependency('faad', | ||
headers_symbols: [['neaacdec.h', 'NeAACDecOpen'], ['neaacdec.h', 'LATM']], | ||
libs: 'faad', | ||
required: false, | ||
components: faad_comp | ||
) | ||
|
||
have_faad = cc.has_header_symbol('neaacdec.h', 'NeAACDecOpen') | ||
have_faad_2_7 = have_faad and cc.has_header_symbol('neaacdec.h', 'LATM') | ||
if have_faad and not have_faad_2_7 | ||
message('Found faad2, but too old (< v2.7.0)') | ||
endif | ||
|
||
faad_dep = cc.find_library('faad', required : false) | ||
|
||
if faad_dep.found() and have_faad_2_7 | ||
gstfaad = library('gstfaad', | ||
'gstfaad.c', | ||
c_args : gst_plugins_bad_args + [ '-DFAAD2_MINOR_VERSION=7', '-DFAAD_IS_NEAAC' ], | ||
link_args : noseh_link_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, gstpbutils_dep, gsttag_dep, faad_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
) | ||
endif | ||
gstfaad = library('gstfaad', | ||
'gstfaad.c', | ||
c_args : gst_plugins_bad_args + [ '-DFAAD2_MINOR_VERSION=7', '-DFAAD_IS_NEAAC' ], | ||
link_args : noseh_link_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, gstpbutils_dep, gsttag_dep, faad_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
components: faad_comp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
fdkaac_dep = dependency('fdk-aac', required : false) | ||
fdkaac_comp = component('fdkaac') | ||
fdkaac_dep = dependency('fdk-aac', required : false, | ||
components: fdkaac_comp) | ||
|
||
if fdkaac_dep.found() | ||
gstfdkaac = library('gstfdkaac', | ||
['plugin.c', 'gstfdkaacenc.c', 'gstfdkaacdec.c'], | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, gstpbutils_dep, fdkaac_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
) | ||
endif | ||
gstfdkaac = library('gstfdkaac', | ||
['plugin.c', 'gstfdkaacenc.c', 'gstfdkaacdec.c'], | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, gstpbutils_dep, fdkaac_comp.dependencies()], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
components: fdkaac_comp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
fluidsynth_dep = dependency('fluidsynth', version : '>= 1.0', required : false) | ||
fluidsynth_comp = component('fluidsynth') | ||
fluidsynth_dep = dependency('fluidsynth', version : '>= 1.0', required : false, | ||
components: fluidsynth_comp) | ||
|
||
if fluidsynth_dep.found() | ||
gstfluidsynth = library('gstfluidsynthmidi', | ||
'gstfluiddec.c', | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, gst_dep, fluidsynth_dep], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
) | ||
endif | ||
gstfluidsynth = library('gstfluidsynthmidi', | ||
'gstfluiddec.c', | ||
c_args : gst_plugins_bad_args, | ||
include_directories : [configinc], | ||
dependencies : [gstaudio_dep, gst_dep, fluidsynth_comp.dependencies()], | ||
install : true, | ||
install_dir : plugins_install_dir, | ||
components: fluidsynth_comp | ||
) |
Oops, something went wrong.