WIP: Saigo toolchain
Continuing the work done in:
- https://github.com/DaemonEngine/Daemon/pull/971
How to use
Use this game branch too:
- https://github.com/Unvanquished/Unvanquished/pull/2862
Get the Saigo toolchain, see:
- https://github.com/DaemonEngine/Daemon/issues/795#issuecomment-1488442249
Symlink the native_client/toolchain/linux_x86/saigo_newlib folder into external_deps/linux-amd64-default_9.
Then do:
mkdir build/vms-saigo
cd build/vms-saigo
cmake ../.. -DUSE_NACL_SAIGO=ON -DBUILD_GAME_NACL=ON -DBUILD_GAME_NACL_TARGETS=native \
-DBUILD_GAME_NATIVE_DLL=OFF -DBUILD_GAME_NATIVE_EXE=OFF \
-DBUILD_CLIENT=OFF -DBUILD_SERVER=OFF -DBUILD_TTY_CLIENT=OFF \
&& make -j$(nproc)
Current status
- ✅️: success
- ❌️: failure
- ❔️: not tested
| sgame | amd64 | i686 | armhf |
|---|---|---|---|
| build | ✅️ | ✅️ | ✅️ |
| link | ✅️ | ✅️ | ✅️ |
| run | ✅️ | ❔️ | ❔️ |
| cgame | amd64 | i686 | armhf |
|---|---|---|---|
| build | ✅️ | ✅️ | ✅️ |
| link | ❌️ | ❌️ | ❌️ |
sgame status
Currently the sgame builds on all architectures.
I have tested the amd64 sgame and it runs.
cgame status
The cgame builds on all architectures but the final linkage fails.
To fix this we may build freetype, libpng and lua with Saigo (PNaCl provided a pexe .a for them we can't use since Saigo directly builds nexe without any pexe intermediary step).
It is believed this is the last thing required to achieve cgame building with Saigo.
You can find the old repository with scripts and sometimes patches for building the PNaCl libraries here. Also there is a nice summary.
At first I hoped this was for building the NaCl libc. 🥲️