Skip to content

jfmherokiller/switch-homebrew-toolchain-cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

switch-homebrew-toolchain-cmake

Set of files to allow switch homebrew development using cmake

The base i used for both toolchain files came from https://github.com/carstene1ns/physfs-switch/blob/master/Toolchain.cmake

I then used https://github.com/Lectem/3ds-cmake/blob/master/cmake/Tools3DS.cmake to make the basic tool finder code for libnx

I do not know if it will work with any setup so ill share my current setup so you can see an example. directory layout

Special notes:

The toolchain files have a variable (NX) to distiguish between libnx and libtransistor.

It's done by comparing the value of the NX variable: A value of 1 means libnx. A value of 2 means libtransistor.

Both toolchains have a add_nro_target function which uses the toolchain utilities to generate an nro from the compiled elf.

#stuff you may need todo to get the toolchain file to work under different setups/platforms

If you have trouble with CLion and WSL use the commented lines at the top of the appropriate CMake toolchain file.

About

Set of files to allow switch homebrew development using cmake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages