Skip to content
Myr

meson: recent versions of resvg does provide a .pc file

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 6ffec82 · Browse files · 1 file+12 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−4 removed

  • other:+12 added−4 removed

1 file+12 added−4 removed

modified:meson.build+12 added-4 removed
113 unmodified lines
114 add_project_arguments('-DFUZZEL_ENABLE_SVG_NANOSVG=1', language: 'c')115 librsvg = declare_dependency()116 resvg = declare_dependency()117elif get_option('svg-backend') == 'resvg'118 # resvg doesn't provide pkg-config, so we need to find it manually119 resvg = cc.find_library('resvg', required: true)120 if cc.has_header('resvg.h')118 resvg_pc = dependency('resvg', required: false)119 if resvg_pc.found()120 resvg = resvg_pc121 svg_backend = 'resvg'122 add_project_arguments('-DFUZZEL_ENABLE_SVG_RESVG=1', language: 'c')123 else124 # earlier versions of resvg doesn't provide pkg-config, so we need125 # to find it manually126 resvg = cc.find_library('resvg', required: true)127 if cc.has_header('resvg.h')128 svg_backend = 'resvg'129 add_project_arguments('-DFUZZEL_ENABLE_SVG_RESVG=1', language: 'c')130 else124 error('resvg.h not found. Please install resvg development files.')131 error('resvg.h not found. Please install resvg development files.')132 endif133 endif134 librsvg = declare_dependency()135 nanosvg = declare_dependency()136else
150 unmodified lines