Force use of subprojects/ dependencies #9734
-
According to the manual:
Is it possible to do the opposite, or even force to use |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
You want to force the use of a fallback, even when you can find it externally?
should do what you want. |
Beta Was this translation helpful? Give feedback.
-
As stated by @dcbaker, meson's global option However, if the dependency in this case In this case, you don't need to pass any options to use subproject dependencies, because meson automatically falls back to the subproject after system dependency lookup fails to match the version constraints. |
Beta Was this translation helpful? Give feedback.
-
Am I using it correctly? $ rg "^\s*version:" subprojects/wayland/meson.build
3: version: '1.20.0',
$ ls subprojects/
wayland/ wlroots/
$ meson setup --buildtype release --force-fallback-for=wayland,wayland-server build
The Meson build system
Version: 0.60.2
Source dir: /home/kraftwerk28/projects/sway/sway
Build dir: /home/kraftwerk28/projects/sway/sway/build
Build type: native build
Project name: sway
Project version: 1.6
C compiler for the host machine: cc (gcc 11.1.0 "cc (GCC) 11.1.0")
C linker for the host machine: cc ld.bfd 2.36.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency json-c found: YES 0.15
Run-time dependency libpcre found: YES 8.45
Dependency wayland-server found: NO found 1.19.0 but need: '>=1.20.0'
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency wayland-server found: NO (tried cmake)
meson.build:40:0: ERROR: Invalid version of dependency, need 'wayland-server' ['>=1.20.0'] found '1.19.0'.
A full log can be found at /home/kraftwerk28/projects/sway/sway/build/meson-logs/meson-log.txt Here are full logs: https://termbin.com/k640
|
Beta Was this translation helpful? Give feedback.
-
tl;dr Use of .wrap files to map subprojects to dependency lookups is required for optimal functionality. In the case of Wayland, a stable release can be included from the WrapDB with |
Beta Was this translation helpful? Give feedback.
tl;dr
Use of .wrap files to map subprojects to dependency lookups is required for optimal functionality. In the case of Wayland, a stable release can be included from the WrapDB with
meson wrap install wayland
.