Debian Codegraph @

subprojects/meson-docs/docs/markdown/Release-notes-for-0.41.0.md

raw
1 ---
2 title: Release 0.41
3 short-description: Release notes for 0.41
4 ...
5
6 # New features
7
8 ## Dependency Handler for LLVM
9
10 Native support for linking against LLVM using the `dependency` function.
11
12 ## vcs_tag keyword fallback is now optional
13
14 The `fallback` keyword in `vcs_tag()` is now optional. If not given,
15 its value defaults to the return value of `meson.project_version()`.
16
17 ## Better quoting of special characters in ninja command invocations
18
19 The ninja backend now quotes special characters that may be
20 interpreted by ninja itself, providing better interoperability with
21 custom commands. This support may not be perfect; please report any
22 issues found with special characters to the issue tracker.
23
24 ## Pkgconfig support for custom variables
25
26 The Pkgconfig module object can add arbitrary variables to the generated .pc
27 file with the new `variables` keyword:
28 ```meson
29 pkg.generate(libraries : libs,
30 subdirs : h,
31 version : '1.0',
32 name : 'libsimple',
33 filebase : 'simple',
34 description : 'A simple demo library.',
35 variables : ['datadir=${prefix}/data'])
36 ```
37
38 ## A target for creating tarballs
39
40 Creating distribution tarballs is simple:
41
42 ninja dist
43
44 This will create a `.tar.xz` archive of the source code including
45 submodules without any revision control information. This command also
46 verifies that the resulting archive can be built, tested and
47 installed. This is roughly equivalent to the `distcheck` target in
48 other build systems. Currently this only works for projects using Git
49 and only with the Ninja backend.
50
51 ## Support for passing arguments to Rust compiler
52
53 Targets for building rust now take a `rust_args` keyword.
54
55 ## Code coverage export for tests
56
57 Code coverage can be generated for tests by passing the `--cov` argument to
58 the `run_tests.py` test runner. Note, since multiple processes are used,
59 coverage must be combined before producing a report (`coverage3 combine`).
60
61 ## Reproducible builds
62
63 All known issues have been fixed and Meson can now build reproducible Debian
64 packages out of the box.
65
66 ## Extended template substitution in configure_file
67
68 The output argument of `configure_file()` is parsed for @BASENAME@ and
69 @PLAINNAME@ substitutions.
70
71 ## Cross-config property for overriding whether an exe wrapper is needed
72
73 The new `needs_exe_wrapper` property allows overriding auto-detection for
74 cases where `build_machine` appears to be compatible with `host_machine`,
75 but actually isn't. For example when:
76 - `build_machine` is macOS and `host_machine` is the iOS Simulator
77 - the `build_machine`'s libc is glibc but the `host_machine` libc is uClibc
78 - code relies on kernel features not available on the `build_machine`
79
80 ## Support for capturing stdout of a command in configure_file
81
82 `configure_file()` now supports a new keyword - `capture`. When this argument
83 is set to true, Meson captures `stdout` of the `command` and writes it to
84 the target file specified as `output`.