Replies: 1 comment 1 reply
-
At the very least Meson going to run any compilers you need and pkg-config. The easiest way to for Meson to find dependencies is probably to replace pkg-config with something that will return found for the dependencies you want, and not found otherwise. Meson's interpreter works node by node, so Meson will never seen branches it doesn't go down at all, which makes what you want to do somewhat difficult to achieve, but probably with a some clever replacement of pkg-config and your compilers you could do it for most projects. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to gather information about a repo without having to fully build it.
I found the
meson-info/*.json
files (andmeson introspect
) quite useful, it's almost everything I need.My problem is that the
meson-info
/ introspection provides information about a configured build and I would like to have info about "all of the potential builds". That is, I'd like to be able to get the introspection info "forcing" certain build options and/or dependencies.For example, say I have a main
meson.build
at the root of the project with:and a subdir with a
meson.build
that starts withIf I don't have
openssl
installed, then I won't be able to e.g. get any info for that subdir in theintro-install_plan.json
or inmeson introspect
.Thus, my question:
Is there a way to parse / evaluate the
meson.build
files directly? And/or runmeson setup
"mocking" some of the dependencies so that I could get all the info I need inmeson-info
/meson introspect
?By mocking I mean making Meson assume a certain tool in a certain path exists so that
<DEP>.found()
will returnTrue
. Then, I'd have to build some script that turns whatever options / dependencies on-and-off.I assume that this would work because
meson setup
won't be running anything / any tool exceptmeson
itself. Or am I wrong andmeson setup
can run whatever it wants?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions