Skip to content

Commit

Permalink
Cross-compile for Linux using SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter0x44 committed Jun 14, 2024
1 parent 91638fd commit 867f970
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion tools/build-nzp-linux32.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
cd ../engine
make makelibs FTE_TARGET=linux32 && make m-rel FTE_TARGET=linux32 FTE_CONFIG=nzportable -j32
export CC=i686-linux-gnu-gcc
export STRIP=i686-linux-gnu-strip
make makelibs FTE_TARGET=SDL2 && make m-rel FTE_TARGET=SDL2 FTE_CONFIG=nzportable -j32
4 changes: 3 additions & 1 deletion tools/build-nzp-linux64.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
cd ../engine
make makelibs FTE_TARGET=linux64 && make m-rel FTE_TARGET=linux64 FTE_CONFIG=nzportable -j32
export CC=x86_64-linux-gnu-gcc
export STRIP=x86_64-linux-gnu-strip
make makelibs FTE_TARGET=SDL2 && make m-rel FTE_TARGET=SDL2 FTE_CONFIG_=nzportable -j32
4 changes: 3 additions & 1 deletion tools/build-nzp-linux_arm64.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
cd ../engine
make makelibs FTE_TARGET=linux_arm64 && make m-rel FTE_TARGET=linux_arm64 FTE_CONFIG=nzportable -j32
export CC=aarch64-linux-gnu-gcc
export STRIP=aarch64-linux-gnu-strip
make makelibs FTE_TARGET=SDL2 && make m-rel FTE_TARGET=SDL2 FTE_CONFIG=nzportable -j32
4 changes: 3 additions & 1 deletion tools/build-nzp-linux_armhf.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
cd ../engine
make makelibs FTE_TARGET=linux_armhf && make m-rel FTE_TARGET=linux_armhf FTE_CONFIG=nzportable -j32
export CC=arm-linux-gnueabihf-gcc
export STRIP=arm-linux-gnueabihf-strip
make makelibs FTE_TARGET=SDL2 && make m-rel FTE_TARGET=SDL2 FTE_CONFIG=nzportable -j32
2 changes: 1 addition & 1 deletion tools/build-nzp-macosx_x86.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export MACOSX_DEPLOYMENT_TARGET=10.14
osxcross-macports install libsdl2 libsdl
cd ../engine
make makelibs FTE_TARGET=macosx_x86 && make m-rel FTE_TARGET=macosx_x86 FTE_CONFIG=nzportable -j8
make makelibs FTE_TARGET=macosx_x86 && make m-rel FTE_TARGET=macosx_x86 FTE_CONFIG=nzportable -j8

0 comments on commit 867f970

Please sign in to comment.