Skip to content

A brief example of including Nim switch libraries into C projects

Notifications You must be signed in to change notification settings

dkgitdev/nimNxStatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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