meson/cross
Eli Schwartz 13f8eba9b6
treewide: internally avoid deprecated machine file uses of "pkgconfig"
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 22df45a319 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-08-02 01:35:16 -04:00
..
arm64cl.txt CI: install ifort on Windows 2022-07-11 17:58:02 -04:00
armcc.txt Allow setting built-in options from cross/native files 2020-08-01 22:00:06 -07:00
armclang-linux.txt treewide: internally avoid deprecated machine file uses of "pkgconfig" 2023-08-02 01:35:16 -04:00
armclang.txt cross: move multilib options to [binaries] section 2023-01-11 15:58:16 -05:00
c2000.txt Allow setting built-in options from cross/native files 2020-08-01 22:00:06 -07:00
ccomp-armv7a.txt cross: move multilib options to [binaries] section 2023-01-11 15:58:16 -05:00
ccrx.txt Allow setting built-in options from cross/native files 2020-08-01 22:00:06 -07:00
iphone.txt Add kernel and subsystem properties to machine objects. 2023-06-19 18:03:57 +03:00
linux-mingw-w64-32bit.json cmake: Add cross tests 2020-10-13 17:04:20 +02:00
linux-mingw-w64-32bit.txt treewide: internally avoid deprecated machine file uses of "pkgconfig" 2023-08-02 01:35:16 -04:00
linux-mingw-w64-64bit.json cmake: Add cross tests 2020-10-13 17:04:20 +02:00
linux-mingw-w64-64bit.txt treewide: internally avoid deprecated machine file uses of "pkgconfig" 2023-08-02 01:35:16 -04:00
metrowerks-arm.txt Initial support for Metrowerks C/C++ compiler 2023-04-24 09:07:37 -04:00
metrowerks-eppc.txt Initial support for Metrowerks C/C++ compiler 2023-04-24 09:07:37 -04:00
metrowerks.lcf Initial support for Metrowerks C/C++ compiler 2023-04-24 09:07:37 -04:00
msp430.txt Genericise TI compiler and add MSP430 support 2022-02-02 16:45:05 +02:00
none.txt treewide: internally avoid deprecated machine file uses of "pkgconfig" 2023-08-02 01:35:16 -04:00
ownstdlib.txt Interpreter: Fix c_stdlib usage 2020-08-18 14:47:38 -04:00
tvos.txt Add kernel and subsystem properties to machine objects. 2023-06-19 18:03:57 +03:00
ubuntu-armhf.json cmake: Add cross tests 2020-10-13 17:04:20 +02:00
ubuntu-armhf.txt treewide: internally avoid deprecated machine file uses of "pkgconfig" 2023-08-02 01:35:16 -04:00
ubuntu-faketarget.txt Added cpu family property to system information. 2015-10-18 01:08:04 +03:00
wasm.txt emscripten: use single arguments when specifying options 2022-12-27 06:59:55 -05:00
xc16.txt Allow setting built-in options from cross/native files 2020-08-01 22:00:06 -07:00