Add Dockerfile for multiplatform build.

This commit is contained in:
Robin Grönberg 2023-09-16 20:39:37 +02:00
parent 012b6e89c6
commit e314b40efa
2 changed files with 28 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM devkitpro/devkitarm as agbabi
RUN apt-get install -y cmake build-essential gcc-arm-none-eabi && \
git clone https://github.com/felixjones/agbabi
WORKDIR agbabi
RUN cmake -S . -DCMAKE_TOOLCHAIN_FILE=cross/agb.cmake -B build && \
cmake --build build && \
cmake --install build
FROM devkitpro/devkitarm
COPY --from=agbabi /usr/local/ /usr/local/
ENV LIBAGBABI=/usr/local
WORKDIR pokemon_gen3_to_genx
CMD make

View File

@ -83,3 +83,11 @@ Everything else, and the programming code, is governed by the MIT license.
## Example
[This is a Video showing how to use the homebrew](https://youtu.be/3-EKe_lQREY).
## Building
The easiest is to build with docker, since you don't have to install a bunch of tools and libraries
```bash
docker build . -t pokemon_gen3_to_genx
docker run --rm -it -v .:/pokemon_gen3_to_genx pokemon_gen3_to_genx
```