Skip to content
Commit 8b0aeafc authored by Adam Duskett's avatar Adam Duskett Committed by Yann E. MORIN
Browse files

package/meson: determine g-ir-scanner and g-ir-compiler paths from pkgconfig



Currently, meson hard codes the paths of these binaries which results in
cross-compiled environments to run the host versions of these tools.
However, GObject-introspection provides the appropriate paths to these
utilities via pkg-config

find_program is needed in the case g-i is built as a subproject. If
g-ir-scanner or g-ir-compiler are in the build or source directory use those.
If they aren't found in the source directory, use the results from pkg-config.

Backport two upstream commits to fix the issue.

Signed-off-by: default avatarAdam Duskett <Aduskett@gmail.com>
Signed-off-by: default avatarYann E. MORIN <yann.morin.1998@free.fr>
Tested-by: default avatarAdam Duskett <aduskett@gmail.com>
Signed-off-by: default avatarYann E. MORIN <yann.morin.1998@free.fr>
parent 3ff15238
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment