summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/env2mfile.py
AgeCommit message (Collapse)Author
2023-08-02treewide: internally avoid deprecated machine file uses of "pkgconfig"Eli Schwartz
We support this in a machine file: ``` [binaries] pkgconfig = 'pkg-config' pkg-config = 'pkg-config' ``` and you can use either one, because internally we look up both. If you only set *one* of them, this plays awkwardly with setting $PKG_CONFIG, since we don't know which one you set in the machine file and the *other* one will be initialized from the environment instead. In commit 22df45a31981874310a78dde0df59a6a7c5ebb29 we changed program lookup of config-tool style dependencies to use the regular tool names and only fall back on the strange internal names. This affected the pkg-config class too. The result is that instead of preferring `pkgconfig =` followed by $PKG_CONFIG followed by `pkg-config =`, we inverted the lookup order. This is a good idea anyway, because now it behaves consistently with `find_program('pkg-config')`. Unfortunately, we documented the wrong name in a bunch of places, and also used the wrong name in various testsuite bits, which meant that if you set $PKG_CONFIG and then ran the testsuite, it would fail. Correct these references, because they are buggy. One test case expected to find_program() a native copy for convenience of testing against natively installed glib. Force it to resolve a native copy.
2023-06-19Add kernel and subsystem properties to machine objects.Jussi Pakkanen
2023-06-12env2mfile: Take pkg-config properties from envXavier Claessens
2023-06-12env2mfile: Take binaries from env for cross file tooXavier Claessens
2023-06-12env2mfile: Not all compilers have env for flagsXavier Claessens
2023-03-28Import cpu detection fix from Debian.Jussi Pakkanen
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033579
2023-02-28Add detection code for powerpc64le.Jussi Pakkanen
Originally from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019413
2023-02-28Add a deb_ prefix to constants that are only used in Debian system detection.Jussi Pakkanen
2023-02-28Handle a cross compilation setup that only has a C compiler.Jussi Pakkanen
2023-02-28Add Debian platform autodetect to env2mfile.Jussi Pakkanen
2023-02-01simplify instantiation of builtin type using builtins instead of functionsEli Schwartz
2022-11-22Fix writing single strings in env2mfile.Jussi Pakkanen
2022-11-12Add CMake to cross file.Jussi Pakkanen
Original patch by Helmut Grohne. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023744
2022-11-12Fix ppc64 detection in Debian.Jussi Pakkanen
Original patch by Helmut Grohne. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023744
2022-10-03pylint: enable unspecified-encodingDylan Baker
2022-09-01env2mfile: reuse logical lists of interesting facts from meson itselfEli Schwartz
Meson internally knows about many languages and tools, and *FLAGS variables, and which languages to use them for. Instead of duplicating this logic, import it from mesonbuild.* This logic was originally standalone, but now that it is merged into the Meson tree we can have a single source of truth.
2022-06-13flake8: fix various whitespace nitsEli Schwartz
2022-06-10treewide: various cleanups to move imports for mypy into typechecking blocksEli Schwartz
Along the way, add __future__ annotations where lacking.
2022-04-23Fix typo that breaks g++ cross detection on Debian.Jussi Pakkanen
2022-03-09Add new env2mfile command.Jussi Pakkanen
2022-03-08Revert "Add new env2cross command."Eli Schwartz
This reverts commit e257a870fe5e676c55a2282b0e7fc9be34bba2ac. The PR adding this command had infinitely hanging CI, and now that it is merged to master we cannot get any CI on any PR to succeed.
2022-03-08Add new env2cross command.Jussi Pakkanen