Difference between revisions of "Compiling ScummVM/Docker"

Jump to navigation Jump to search
(Add make command for psp toolchain)
 
Line 1: Line 1:
== Compiling ScummVM using Docker ==
== Compiling ScummVM using Docker ==
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 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.
 
Some convenience aliases are provided in every toolchains to make it easier to build ScummVM for the supported platforms.
There are three commands defined:
* <code>scummvm_configure</code>: invokes the configure script (located in <code>/data/scummvm</code>) with the proper options for the platform
* <code>scummvm_build</code>: builds the project
* <code>scummvm_package</code>: packages the project ready for use on the targeted platform
 
Some toolchains support several platforms at once. In this case, the aliases have been defined per platform with a suffix. The aliases can then be found using the <code>aliases</code> command.


=== Current platforms ===
=== Current platforms ===
Line 224: Line 234:
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:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
./configure <configure-flags>
scummvm_configure <configure-flags>
make -j$(nproc)
scummvm_build
scummvm_package
</syntaxhighlight>
</syntaxhighlight>


where <configure-flags> is the list of required configure flags specified in the table at the top of the page. This should be followed by the packaging command if one is specified.
where <configure-flags> is the list of additional configure flags. The packaging command is optional.
 
On toolchain images supporting several platforms, the aliases are diversified in the form <code>scummvm_<action>_<variant></code>.
Use the <code>aliases</code> command to find the proper ones.


Once done, the <code>exit</code> command can be used to leave the Docker image.
Once done, the <code>exit</code> command can be used to leave the Docker image.

Navigation menu