Example of how to integrate nim static library into existing c code for nintendo homebrew
This is a sample sixaxis project from DEVKITPRO with one minor tweak: it says "hello" using static library coded in nim!
The initial commit in this repo is the example project with no changes.
The last -- is the project with the sufficient config to build the library
To build the app, run
make
To build the library *.a file, run:
cd nim
nimble install [email protected]
switch_build -S toggle.nim
The resulted file nim/build/toggle/libtoggle.a
is a library file.