-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lv2 ttl gen step in a proper way for meson
Signed-off-by: falkTX <[email protected]>
- Loading branch information
Showing
7 changed files
with
53 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
gen="${1}" | ||
dir="${2}" | ||
lib="${3}" | ||
|
||
# meson does not support MESON_EXE_WRAPPER for post-build commands, only for tests | ||
# do a whole dance to try to replicate expected behaviour | ||
if [ -z "${MESON_EXE_WRAPPER}" ]; then | ||
fileout="$(file "${gen}")" | ||
if echo "${fileout}" | grep -q "PE32 executable.*Intel 80386"; then | ||
MESON_EXE_WRAPPER="wine" | ||
elif echo "${fileout}" | grep -q "PE32+ executable.*x86-64"; then | ||
MESON_EXE_WRAPPER="wine64" | ||
elif echo "${fileout}" | grep -q "ARM aarch64"; then | ||
MESON_EXE_WRAPPER="qemu-aarch64-static -L /usr/lib/aarch64-linux-gnu" | ||
elif echo "${fileout}" | grep -q "ARM"; then | ||
MESON_EXE_WRAPPER="qemu-arm-static -L /usr/lib/arm-linux-gnueabihf" | ||
elif echo "${fileout}" | grep -q "Intel 80386"; then | ||
MESON_EXE_WRAPPER="qemu-i386-static -L /usr/lib/i386-linux-gnu" | ||
elif echo "${fileout}" | grep -q "RISC-V"; then | ||
MESON_EXE_WRAPPER="qemu-riscv64-static -L /usr/lib/riscv64-linux-gnu" | ||
# elif echo "${fileout}" | grep -q "x86-64"; then | ||
# MESON_EXE_WRAPPER="qemu-x86_64-static -L /usr/lib/x86_64-linux-gnu" | ||
else | ||
echo "unrecognized file output: ${fileout}" | ||
# exit 1 | ||
fi | ||
fi | ||
|
||
mkdir -p "${dir}" | ||
cd "${dir}" | ||
exec ${MESON_EXE_WRAPPER} "${gen}" "${lib}" |