You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A project needs a dependency X. I have the X installed at C:\X. I want Meson to resolve the dependency with the hard-coded path just on my machine, without messing up the meson.build file for that project.
Currently I can create a dependency object with declare_dependency(), put in the hard-coded path, and meson.override_dependency(dep) before the dependency X. However, AFAIK I have to put the code in the meson.setup file. Is there a mechanism in Meson, where if it detects a file like meson.override exists in the current directory, read the content and put in the overrides. This way I can just git ignore all meson.override files, and everyone has a way to resolve dependency without installing CMake (which is obsoleted by Meson), or pkg-config (Windows doesn't has it preinstalled).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A project needs a dependency X. I have the X installed at
C:\X
. I want Meson to resolve the dependency with the hard-coded path just on my machine, without messing up themeson.build
file for that project.Currently I can create a dependency object with
declare_dependency()
, put in the hard-coded path, andmeson.override_dependency(dep)
before the dependency X. However, AFAIK I have to put the code in themeson.setup
file. Is there a mechanism in Meson, where if it detects a file likemeson.override
exists in the current directory, read the content and put in the overrides. This way I can just git ignore allmeson.override
files, and everyone has a way to resolve dependency without installing CMake (which is obsoleted by Meson), or pkg-config (Windows doesn't has it preinstalled).Beta Was this translation helpful? Give feedback.
All reactions