Open main menu

Difference between revisions of "Compiling ScummVM/Docker"

no edit summary
(First draft)
 
Line 9: Line 9:


== Compiling ScummVM using Docker ==
== Compiling ScummVM using Docker ==
'''''TODO'''''
The ScummVM buildbot uses [https://www.docker.com/ Docker] for building the toolchains. As such, this makes it possible for the individual toolchains to be used for local builds, avoiding the need to install the toolchain and required libraries manually.


The following images are available:
The following toolchain images are available:
* toolchains/amigaos4
* toolchains/amigaos4
* toolchains/android
* toolchains/android
Line 37: Line 37:
=== Installing the needed packages ===
=== Installing the needed packages ===
==== Debian-based distributions ====
==== Debian-based distributions ====
The following should install all the needed 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 make m4 acl
Line 64: Line 64:


=== Using the docker images ===
=== Using the docker images ===
'''''TODO'''''
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
docker run -v <path-to-scummvm>:/data/scummvm -w /data/scummvm -it <toolchain> /bin/bash
</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 done, the <code>exit</code> command can be used to leave the Docker image.
For more details on how to build ScummVM for a given platform, see the relevant page from [[Compiling ScummVM]].
213

edits