Commit d28ba8bb authored by Seungha Yang's avatar Seungha Yang

meson: Build pango if compiler can detect all dependencies on Windows

meson fallback for libpango on Windows is almost unavailable
since some libpango's dependencies (especially cairo) are not
meson ported yet. But we could build pango plugin if the required
libraries and headers are installed on system.
parent 1dea6d52
Pipeline #32331 passed with stages
in 57 minutes and 52 seconds
...@@ -8,6 +8,17 @@ pango_sources = [ ...@@ -8,6 +8,17 @@ pango_sources = [
pango_dep = dependency('pangocairo', version : '>=1.22.0', required : get_option('pango')) pango_dep = dependency('pangocairo', version : '>=1.22.0', required : get_option('pango'))
if not pango_dep.found() and host_machine.system() == 'windows'
cairo_lib = cc.find_library('cairo', required : false)
pango_lib = cc.find_library('pango-1.0', required : false)
pangocario_lib = cc.find_library('pangocairo-1.0', required : false)
pangocairo_h_found = cc.has_header('pango/pangocairo.h')
if cairo_lib.found() and pango_lib.found() and pangocario_lib.found() and pangocairo_h_found
pango_dep = declare_dependency(dependencies: [cairo_lib, pango_lib, pangocario_lib])
if pango_dep.found() if pango_dep.found()
gstpango = library('gstpango', gstpango = library('gstpango',
pango_sources, pango_sources,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment