Update Dockerfile to support fxsdk & gint MAJ

This commit is contained in:
Raphael Bahuau 2019-09-18 09:46:04 +02:00
parent 9cc1c648c5
commit 35edfa5e6d
3 changed files with 16 additions and 10 deletions

4
.gitignore vendored
View File

@ -1 +1,3 @@
*.tar*
fxsdk
gint
*.tar*

View File

@ -44,14 +44,12 @@ RUN cd $PREFIX/gcc-8.2.0 && \
# TODO git clone with commit number (or find a better way to rebuild from this)
# fxsdk
RUN cd $PREFIX && \
git clone https://gitea.planet-casio.com/Lephenixnoir/fxsdk.git && \
cd fxsdk && bash configure --prefix=$PREFIX && make && make install
ADD fxsdk $PREFIX/fxsdk
RUN cd $PREFIX/fxsdk && bash configure --prefix=$PREFIX && make && make install
# gint
RUN cd $PREFIX && \
git clone --single-branch --branch compat https://gitea.planet-casio.com/Lephenixnoir/gint.git && \
cd gint && mkdir build.fx && cd build.fx && \
ADD gint $PREFIX/gint
RUN cd $PREFIX/gint && mkdir build.fx && cd build.fx && \
../configure --target=fx9860g && make && make install
WORKDIR /casio

View File

@ -4,22 +4,28 @@ A docker for casio developpment on linux, with gint and fxsdk from Lephenixnoir.
## Docker
Download archives :
Download archives (in the casio-docker folder)
- ftp://gcc.gnu.org/pub/gcc/releases/gcc-8.2.0/gcc-8.2.0.tar.xz
- ftp://ftp.gnu.org/gnu/binutils/binutils-2.31.1.tar.xz
- https://p7.planet-casio.com/pub/libp7-3.0.tar.gz
- https://p7.planet-casio.com/pub/p7utils-3.0.tar.gz
- `git clone https://gitea.planet-casio.com/Lephenixnoir/fxsdk.git`
- `git clone --single-branch --branch compat https://gitea.planet-casio.com/Lephenixnoir/gint.git`
Build
Build (also in the casio-docker folder)
- `docker build -t casio .`
Run (execute in your project folder)
Run (in your add-in project folder)
- Linux `docker run -u 0 -it --rm -v $(pwd):/casio casio`
- Windows `docker run -u 0 -it --rm -v "/$(pwd)":/casio casio`
Update fxsdk & gint version (in the casio-docker/fxsdk and in casio-docker/gint folder)
- `git pull`
## Useful links
Planète Casio