Browse Source

Update Dockerfile to support fxsdk & gint MAJ

master
Raphael Bahuau 10 months ago
parent
commit
35edfa5e6d
3 changed files with 16 additions and 10 deletions
  1. +3
    -1
      .gitignore
  2. +4
    -6
      Dockerfile
  3. +9
    -3
      README.md

+ 3
- 1
.gitignore View File

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

+ 4
- 6
Dockerfile 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


+ 9
- 3
README.md 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


Loading…
Cancel
Save