![]() |
Crossfire Server, Trunk
1.75.0
|
Scripts in this directory allow to cross-compile part of CF from Linux to Windows, using a Docker container.
Docker installed.
From this directory, run ./build-all.sh
.
This will build the CF server (without plugins), and CRE.
Server is ../../server/crossfire-server.exe
, CRE is ../../utils/cre/release/cre.exe
.
Everything is linked statically, to avoid having to find required DLLs
to run the executable.
This of course makes executables bigger, but simplifies many things.
Note: server
refers to the parent parent directory of the script being run.
This scripts creates the Docker image that will be used to cross-compile.
It installs required packages and MXE in static mode.
The user will be user
, with the same UID as yourself, to not mess with file permissions.
This script starts the Docker container in which the compilation will occur.
The parent directory of the server
code will be mounted as /home/user/project
. The assumption is that you have arch
and maps
at the same level as the server.
If arguments are provided, then they are considered as commands and run, then the container will exit.
Merely calls configure.sh
from the server
root with the correct host
key for compilation.
Builds the CRE
tool
Script that should be run in Docker, to build everything.
It merely calls the previous configure
and build-cre
scripts.
Script to call from outside Docker, that will run build-all-docker.sh
in a Docker container.