Difference between revisions of "Compiling ScummVM/Docker"

Jump to navigation Jump to search
→‎Using the docker images: remove outdated info
(→‎Using the docker images: remove outdated info)
(3 intermediate revisions by one other user not shown)
Line 99: Line 99:
| toolchains/mxe
| toolchains/mxe
| [[Windows]] for x86 and x86_64
| [[Windows]] for x86 and x86_64
| ?
| <code>--host=i686-w64-mingw32.static --enable-debug --enable-updates</code>
 
<code>--host=x86_64-w64-mingw32.static --enable-debug --enable-updates</code>
| <code>make win32dist-mingw DESTDIR=win32dist-mingw</code>
| <code>make win32dist-mingw DESTDIR=win32dist-mingw</code>
|
|
Line 159: Line 161:
| Requires building with a reduced number of engines.
| Requires building with a reduced number of engines.
|-
|-
| toolchains/win9x
| toolchains/windows-9x
| [[Windows]] 95/98/ME
| [[Windows]] 95/98/ME
| <code>--host=mingw32 --disable-windows-unicode</code>
| <code>--host=mingw32 --disable-windows-unicode</code>
Line 172: Line 174:
The following should install all the necessary packages:
The following should install all the necessary packages:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
apt-get install docker.io git make m4 acl
apt-get install docker.io git
</syntaxhighlight>
</syntaxhighlight>


Line 180: Line 182:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git clone https://github.com/scummvm/scummvm.git
git clone https://github.com/scummvm/scummvm.git
git clone https://github.com/scummvm/dockerized-bb.git
</syntaxhighlight>
</syntaxhighlight>


=== Getting the docker images ===
=== Using the docker images ===
To fetch a toolchain image from the Docker Hub, issue the following command inside the dockerized-bb folder:
To fetch a toolchain image from the Docker Hub, issue the following command from the ScummVM source directory:
 
<syntaxhighlight lang="bash">
make <toolchain>/pull
</syntaxhighlight>
 
where <toolchain> is the name of the toolchain you want to use. The following command can be used to fetch all toolchains at once:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
make pull-toolchains
./devtools/docker.sh <toolchain>
</syntaxhighlight>
</syntaxhighlight>


=== Using the docker images ===
where <toolchain> is the name of the toolchain you want to use. This will fetch the requested toolchain from the Docker Hub if it isn't installed, mount the scummvm folder in the Docker image and launch a shell that can be used to build ScummVM for the relevant platform. Alternatively, you can use the following command to fetch updates for an already installed toolchain before launching the shell:
To fetch a toolchain image from the Docker Hub, issue the following command:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
docker run -v <path-to-scummvm>:/data/scummvm -w /data/scummvm -it <toolchain> /bin/bash
./devtools/docker.sh --update <toolchain>
</syntaxhighlight>
</syntaxhighlight>
where <toolchain> is the name of the toolchain you want to use, and <path-to-scummvm> is the path to the scummvm folder. This will mount the scummvm folder in the Docker image and launch a shell that can be used to build ScummVM for the relevant platform.


Once in the Docker image, the following commands should be issued in order to build ScummVM:
Once in the Docker image, the following commands should be issued in order to build ScummVM:
TrustedUser
2,147

edits

Navigation menu