mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
commit
3978e64cff
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
*
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM devkitpro/devkitarm:20190212
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y build-essential && \
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
||||||
|
RUN . "$HOME/.cargo/env" && \
|
||||||
|
cargo install cargo-xbuild && \
|
||||||
|
rustup component add rust-src
|
||||||
|
|
||||||
|
RUN echo 'export PATH=$PATH:$DEVKITARM/bin' >> $HOME/.bashrc
|
||||||
|
|
||||||
|
CMD /bin/bash
|
6
Makefile
6
Makefile
|
@ -21,12 +21,12 @@ out/release/%.gba: cargo-release-%
|
||||||
d-%: out/debug/%.gba
|
d-%: out/debug/%.gba
|
||||||
@OUTNAME=$(patsubst d-%,%,$@)
|
@OUTNAME=$(patsubst d-%,%,$@)
|
||||||
@mgba-qt $<
|
@mgba-qt $<
|
||||||
@rm out/debug/$${OUTNAME}.sav
|
@rm -f out/debug/$${OUTNAME}.sav
|
||||||
|
|
||||||
r-%: out/release/%.gba
|
r-%: out/release/%.gba
|
||||||
@OUTNAME=$(patsubst r-%,%,$@)
|
@OUTNAME=$(patsubst r-%,%,$@)
|
||||||
@mgba-qt $<
|
@mgba-qt $<
|
||||||
@rm out/release/$${OUTNAME}.sav
|
@rm -f out/release/$${OUTNAME}.sav
|
||||||
|
|
||||||
cargo-release-%: $(RUSTFILES) out/crt0.o
|
cargo-release-%: $(RUSTFILES) out/crt0.o
|
||||||
@OUTNAME=$(patsubst cargo-release-%,%, $@)
|
@OUTNAME=$(patsubst cargo-release-%,%, $@)
|
||||||
|
@ -37,7 +37,7 @@ cargo-debug-%: $(RUSTFILES) out/crt0.o
|
||||||
@rustup run nightly cargo xbuild --target=gba.json --example=$${OUTNAME}
|
@rustup run nightly cargo xbuild --target=gba.json --example=$${OUTNAME}
|
||||||
|
|
||||||
out/crt0.o: crt0.s interrupt_simple.s
|
out/crt0.o: crt0.s interrupt_simple.s
|
||||||
@mkdir $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@$(CC) $(ARCH) -o out/crt0.o crt0.s
|
@$(CC) $(ARCH) -o out/crt0.o crt0.s
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
|
|
4
start-dev.sh
Executable file
4
start-dev.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker build . -t rustgba-dev
|
||||||
|
docker run --rm --volume $PWD:/build -it --workdir "/build" rustgba-dev
|
Loading…
Reference in a new issue