Skip to content

Commit

Permalink
env2mfile: Use Debian cross-prefixed GObject-Introspection tools
Browse files Browse the repository at this point in the history
In Debian testing/unstable, there are wrappers available for various
GObject-Introspection tools during cross-builds, using qemu internally.

Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Oct 2, 2024
1 parent af50ab9 commit 77b46ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mesonbuild/scripts/env2mfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ def dpkg_architecture_to_machine_info(output: str, options: T.Any) -> MachineInf
except ValueError:
pass
for tool in [
'g-ir-annotation-tool',
'g-ir-compiler',
'g-ir-doc-tool',
'g-ir-generate',
'g-ir-inspect',
'g-ir-scanner',
'pkg-config',
]:
try:
Expand Down
6 changes: 6 additions & 0 deletions unittests/internaltests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,12 @@ def expected_binaries(gnu_tuple: str) -> T.Dict[str, T.List[str]]:
'cmake': ['/usr/bin/cmake'],
'pkg-config': [f'/usr/bin/{gnu_tuple}-pkg-config'],
'cups-config': ['/usr/bin/cups-config'],
'g-ir-annotation-tool': [f'/usr/bin/{gnu_tuple}-g-ir-annotation-tool'],
'g-ir-compiler': [f'/usr/bin/{gnu_tuple}-g-ir-compiler'],
'g-ir-doc-tool': [f'/usr/bin/{gnu_tuple}-g-ir-doc-tool'],
'g-ir-generate': [f'/usr/bin/{gnu_tuple}-g-ir-generate'],
'g-ir-inspect': [f'/usr/bin/{gnu_tuple}-g-ir-inspect'],
'g-ir-scanner': [f'/usr/bin/{gnu_tuple}-g-ir-scanner'],
}

for title, dpkg_arch, gccsuffix, env, expected in [
Expand Down

0 comments on commit 77b46ab

Please sign in to comment.