add support for quick build/install with GiteaPC

This commit is contained in:
Lephenixnoir 2021-01-25 15:20:12 +01:00
parent d71e94855b
commit 09555bd3aa
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
3 changed files with 30 additions and 1 deletions

4
.gitignore vendored
View File

@ -7,3 +7,7 @@
# Testing build system
/testing/libimg
/testing/transform.bin
# Custom GiteaPC configurations
giteapc-config-*.make
giteapc-config.make

View File

@ -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.

17
giteapc.make Normal file
View File

@ -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