Skip to content

Commit

Permalink
Continue battling meson
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 9, 2023
1 parent 9b05819 commit cefa148
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ jobs:
./.github/workflows/bootstrap-deps.sh ${{ matrix.target }}
- name: Build
env:
#LDFLAGS: -static-libgcc -static-libstdc++
LDFLAGS: -static-libgcc -static-libstdc++
PKG_CONFIG_PATH: /usr/lib/${{ matrix.pkgprefix }}/pkgconfig
run: |
meson setup build --buildtype=release --prefix=/usr --cross-file scripts/meson/${{ matrix.target }}.ini
meson setup build --buildtype=release --prefix=/usr --cross-file scripts/meson/${{ matrix.target }}.ini \
-Dbuild-lv2=true -Dbuild-vst2=false -Dbuild-vst3=false -Dbuild-juce61-only=true -Doptimizations=false
ninja -C build
- name: Install
run: |
Expand Down
10 changes: 5 additions & 5 deletions scripts/generate-ttl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ if [ -z "${MESON_EXE_WRAPPER}" ]; then

elif echo "${fileout}" | grep -q "ARM aarch64"; then
if [ "$(uname -m)" != "aarch64" ]; then
MESON_EXE_WRAPPER="qemu-aarch64-static"
MESON_EXE_WRAPPER="qemu-aarch64-static -L /usr/lib/aarch64-linux-gnu"
fi

elif echo "${fileout}" | grep -q "ARM"; then
if [ "$(uname -m)" != "arm" ] && [ "$(uname -m)" != "armv7l" ]; then
MESON_EXE_WRAPPER="qemu-arm-static"
MESON_EXE_WRAPPER="qemu-arm-static -L /usr/lib/arm-linux-gnueabihf"
fi

elif echo "${fileout}" | grep -q "Intel 80386"; then
if [ "$(uname -m)" != "i386" ] && [ "$(uname -m)" != "i686" ]; then
MESON_EXE_WRAPPER="qemu-i386-static"
MESON_EXE_WRAPPER="qemu-i386-static -L /usr/lib/i386-linux-gnu"
fi

elif echo "${fileout}" | grep -q "RISC-V"; then
if [ "$(uname -m)" != "riscv64" ]; then
MESON_EXE_WRAPPER="qemu-riscv64-static"
MESON_EXE_WRAPPER="qemu-riscv64-static -L /usr/lib/riscv64-linux-gnu"
fi

elif echo "${fileout}" | grep -q "x86-64"; then
if [ "$(uname -m)" != "x86_64" ]; then
MESON_EXE_WRAPPER="qemu-x86_64-static"
MESON_EXE_WRAPPER="qemu-x86_64-static -L /usr/lib/x86_64-linux-gnu"
fi

else
Expand Down
2 changes: 1 addition & 1 deletion scripts/meson/linux-aarch64.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nm = 'aarch64-linux-gnu-gcc-nm'
ld = 'aarch64-linux-gnu-ld'
strip = 'aarch64-linux-gnu-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-aarch64-static'
exe_wrapper = 'qemu-aarch64-static -L /usr/lib/aarch64-linux-gnu'

[host_machine]
system = 'linux'
Expand Down
2 changes: 1 addition & 1 deletion scripts/meson/linux-armhf.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nm = 'arm-linux-gnueabihf-gcc-nm'
ld = 'arm-linux-gnueabihf-ld'
strip = 'arm-linux-gnueabihf-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-arm-static'
exe_wrapper = 'qemu-arm-static -L /usr/lib/arm-linux-gnueabihf'

[host_machine]
system = 'linux'
Expand Down
2 changes: 1 addition & 1 deletion scripts/meson/linux-i686.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nm = 'i686-linux-gnu-gcc-nm'
ld = 'i686-linux-gnu-ld'
strip = 'i686-linux-gnu-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-i386-static'
exe_wrapper = 'qemu-i386-static -L /usr/lib/i386-linux-gnu'

[host_machine]
system = 'linux'
Expand Down
2 changes: 1 addition & 1 deletion scripts/meson/linux-riscv64.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nm = 'riscv64-linux-gnu-gcc-nm'
ld = 'riscv64-linux-gnu-ld'
strip = 'riscv64-linux-gnu-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-riscv64-static'
exe_wrapper = 'qemu-riscv64-static -L /usr/lib/riscv64-linux-gnu'

[host_machine]
system = 'linux'
Expand Down
2 changes: 1 addition & 1 deletion scripts/meson/linux-x86_64.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nm = 'x86_64-linux-gnu-gcc-nm'
ld = 'x86_64-linux-gnu-ld'
strip = 'x86_64-linux-gnu-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-x86_64-static'
exe_wrapper = 'qemu-x86_64-static -L /usr/lib/x86_64-linux-gnu'

[host_machine]
system = 'linux'
Expand Down

0 comments on commit cefa148

Please sign in to comment.