Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Apr 19, 2024
1 parent d6d2b08 commit 66de4b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 13 additions & 3 deletions rivemu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ build: $(RIVEMU) rivemu.wasm
dist: rivemu.wasm rivemu-linux-amd64 rivemu-windows-amd64.exe rivemu-linux-arm64

# Packaging for Linux
LINUX_WRAPPER_CFLAGS=\
LINUX_WRAPPER_LDFLAGS=\
/usr/include/X11GL-wrappers/libGL.so.init.c \
/usr/include/X11GL-wrappers/libGL.so.tramp.S \
/usr/include/X11GL-wrappers/libX11.so.init.c \
Expand All @@ -88,7 +88,12 @@ rivemu-linux-%: rivemu.nelua $(DEPS)
--workdir /mnt \
--hostname riv-toolchain-linux-$* \
--rm riv/toolchain-linux-$* \
bash -c "make -C /mnt/rivemu rivemu-linux-$* RIVEMU=rivemu-linux-$* EXTRA_CFLAGS='$(LINUX_WRAPPER_CFLAGS)' EXTRA_NELUA_FLAGS=-DCARTESI_STATIC NELUA_CACHEDIR=/tmp/nelua && chown $(shell id -u):$(shell id -g) /mnt/rivemu/rivemu-linux-$*"
bash -c "make -C /mnt/rivemu rivemu-linux-$* \
RIVEMU=rivemu-linux-$* \
EXTRA_LDFLAGS='$(LINUX_WRAPPER_LDFLAGS)' \
EXTRA_NELUA_FLAGS=-DCARTESI_STATIC \
NELUA_CACHEDIR=/tmp/nelua && \
chown $(shell id -u):$(shell id -g) /mnt/rivemu/rivemu-linux-$*"

# Packaging for Windows
rivemu-windows-amd64: rivemu-windows-amd64.exe
Expand All @@ -101,7 +106,12 @@ rivemu-windows-%.exe: rivemu.nelua $(DEPS)
--workdir /mnt \
--hostname riv-toolchain-windows-amd64 \
--rm riv/toolchain-windows-amd64 \
bash -c "make -C /mnt/rivemu rivemu-windows-amd64.exe RIVEMU=rivemu-windows-amd64.exe CC=x86_64-w64-mingw32-gcc EXTRA_NELUA_FLAGS=-DCARTESI_STATIC NELUA_CACHEDIR=/tmp/nelua && chown $(shell id -u):$(shell id -g) /mnt/rivemu/rivemu-windows-amd64.exe"
bash -c "make -C /mnt/rivemu rivemu-windows-amd64.exe \
RIVEMU=rivemu-windows-amd64.exe \
CC=x86_64-w64-mingw32-gcc \
EXTRA_NELUA_FLAGS=-DCARTESI_STATIC \
NELUA_CACHEDIR=/tmp/nelua && \
chown $(shell id -u):$(shell id -g) /mnt/rivemu/rivemu-windows-amd64.exe"

# Packaging for WASM
rivemu.wasm: rivemu.nelua $(DEPS)
Expand Down
1 change: 0 additions & 1 deletion rivemu/riv-toolchain-linux.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM gcc:13


RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git wget meson glib2.0-dev python3 libgl-dev xorg-dev libboost1.81-dev glib2.0-dev
Expand Down

0 comments on commit 66de4b4

Please sign in to comment.