Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 770 Bytes

readme.md

File metadata and controls

34 lines (22 loc) · 770 Bytes

nimNxStatic

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

Usage

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.

Screenshot

HB_Running