Skip to content
Myr

meson: stop using deprecated functions, require meson >= 0.58

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

* get_pkgconfig_variable() -> get_variable() * prog.path() -> prog.full_path() * meson.build_root() -> meson.global_build_root()

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 8e09393 · Browse files · 3 files+7 added−6 removed
This commit

State

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

Diff stats

3 files+7 added−6 removed

  • other:+7 added−6 removed

3 files+7 added−6 removed

modified:doc/meson.build+2 added-2 removed
1sh = find_program('sh', native: true)2scdoc = dependency('scdoc', native: true)3scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)3scdoc_prog = find_program(scdoc.get_variable('scdoc'), native: true)45foreach man_src : ['fuzzel.scd']6 base = man_src.split('.')[-2]7 out = '@0@.1'.format(base)
1 unmodified line
9 custom_target(10 out,11 output: out,12 input: man_src,13 command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.path())],13 command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.full_path())],14 capture: true,15 install: true,16 install_dir: join_paths(get_option('mandir'), 'man1'))17endforeach
modified:CHANGELOG.md+1 added
20 unmodified lines
21### Added2223### Changed2425* Minimum required meson version is now 0.58.26* libpng warnings are now routed through fuzzel’s logging27 (https://codeberg.org/dnkl/fuzzel/issues/101).28* Nanosvg is now the default SVG backend. librsvg is still supported,29 and can be used by setting the `-Dsvg-backend=librsvg` meson option.
305 unmodified lines
modified:meson.build+4 added-4 removed
1project('fuzzel', 'c',2 version: '1.7.0',3 license: 'MIT',4 meson_version: '>=0.53.0',4 meson_version: '>=0.58.0',5 default_options: [6 'c_std=c18',7 'warning_level=1',8 'werror=true',
14 unmodified lines
23endif2425# Compute the relative path used by compiler invocations.26source_root = meson.current_source_dir().split('/')27build_root = meson.build_root().split('/')27build_root = meson.global_build_root().split('/')28relative_dir_parts = []29i = 030in_prefix = true31foreach p : build_root
62 unmodified lines
94 librsvg = declare_dependency()95 nanosvg = declare_dependency()96endif9798wayland_protocols_datadir = wayland_protocols.get_pkgconfig_variable('pkgdatadir')98wayland_protocols_datadir = wayland_protocols.get_variable('pkgdatadir')99100wscanner = dependency('wayland-scanner', native: true)101wscanner_prog = find_program(102 wscanner.get_pkgconfig_variable('wayland_scanner'), native: true)102 wscanner.get_variable('wayland_scanner'), native: true)103104wl_proto_headers = []105wl_proto_src = []106foreach prot : [
74 unmodified lines