From 09555bd3aae207b9107084eeed640e1b402c0def Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Mon, 25 Jan 2021 15:20:12 +0100 Subject: [PATCH] add support for quick build/install with GiteaPC --- .gitignore | 4 ++++ README.md | 10 +++++++++- giteapc.make | 17 +++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 giteapc.make diff --git a/.gitignore b/.gitignore index 4c7a425..133dd1b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ # Testing build system /testing/libimg /testing/transform.bin + +# Custom GiteaPC configurations +giteapc-config-*.make +giteapc-config.make diff --git a/README.md b/README.md index c740d65..3ac9923 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,15 @@ There is no function to convert between `bopti_image_t` and `img_t`. Both types * If the image needs to be read or transformed, use libimg. Set the fxconv parameters of the resource to `type:libimg-image` and declare it as `extern img_t myimage`. * Otherwise, bopti should be used for maximum performance. Set the fxconv parameters to `type:bopti_image` and declare it as `extern bopti_image_t myimage`. -## Compiling libimg +## Installing libimg with GiteaPC + +libimg can be installed with [GiteaPC](https://gitea.planet-casio.com/Lephenixnoir/GiteaPC), a tool designed to automate library maintenance in the fxSDK. + +``` +% giteapc install Lephenixnoir/libimg +``` + +## Compiling and installing libimg manually Building libimg for the calculator requires a SuperH compiler. If you have `sh-elf-gcc`, then you're ready to go. libimg will be compiled for both fx-9860G (Graph 35+E-like) and fx-CG 50 (Graph 90+E), and it will install itself in the proper compiler-managed directory. diff --git a/giteapc.make b/giteapc.make new file mode 100644 index 0000000..78d8663 --- /dev/null +++ b/giteapc.make @@ -0,0 +1,17 @@ +# giteapc: version=1 depends=Lephenixnoir/gint + +-include giteapc-config.make + +configure: + @ true + +build: + @ make + +install: + @ make install + +uninstall: + @ make uninstall + +.PHONY: configure build install uninstall