Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Switch homebrew toolchain cmake: Difference between revisions

From GameBrew
(Created page with "{{Infobox Switch Homebrews |title=Switch Homebrew Toolchain Cmake |image=switchhomebrewtoolchaincmakeswitch.png |description=Set of files to allow switch homebrew development using cmake. |author=jfmherokiller |lastupdated=2018/09/13 |type=Developments |version=2018 |license=Mixed |download=https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch.7z |website=https://gbatemp.net/threads/i-created-a-somewhat-working-cmake-toolchain-setup-for-libnx-and-...")
 
m (HydeWing moved page Switch Homebrew Toolchain Cmake Switch to Switch homebrew toolchain cmake without leaving a redirect)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Infobox Switch Homebrews
{{Infobox Switch Homebrews
|title=Switch Homebrew Toolchain Cmake
|title=Switch homebrew toolchain cmake
|image=switchhomebrewtoolchaincmakeswitch.png
|image=switchhomebrewtoolchaincmake.png
|description=Set of files to allow switch homebrew development using cmake.
|description=Set of files to allow Switch homebrew development using cmake.
 
|author=jfmherokiller
|author=jfmherokiller
|lastupdated=2018/09/13
|lastupdated=2018/09/13
Line 9: Line 8:
|version=2018
|version=2018
|license=Mixed
|license=Mixed
|download=https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch.7z
|download=https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmake.7z
|website=https://gbatemp.net/threads/i-created-a-somewhat-working-cmake-toolchain-setup-for-libnx-and-libtransistor.514521/
|website=https://gbatemp.net/threads/i-created-a-somewhat-working-cmake-toolchain-setup-for-libnx-and-libtransistor.514521/
|source=https://github.com/jfmherokiller/switch-homebrew-toolchain-cmake
|source=https://github.com/jfmherokiller/switch-homebrew-toolchain-cmake
|donation=
|donation=
}}
}}
{{#seo:
|title=Switch Homebrew PC Tools (Developments) - GameBrew
|title_mode=append
|image=switchhomebrewtoolchaincmakeswitch.png
|image_alt=Switch Homebrew Toolchain Cmake
}}
{{cleanup|article|Needs cleanup}}
Set of files to allow switch homebrew development using cmake.
Set of files to allow switch homebrew development using cmake.


It uses toolchain files from:
*https://github.com/carstene1ns/physfs-switch/blob/master/Toolchain.cmake for the base.
*https://github.com/Lectem/3ds-cmake/blob/master/cmake/Tools3DS.cmake for creating the basic tool finder code for libnx.


==Media==
==User guide==
<youtube></youtube>
Example setup:
 


==Screenshots==
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmake2.png
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch-01.png
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch-02.png
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch-03.png
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch-04.png
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch-05.png
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch-06.png
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch-07.png
https://dlhb.gamebrew.org/switchhomebrews/switchhomebrewtoolchaincmakeswitch-08.png


==Changelog==
Special notes:
'''v.1.0'''
*The toolchain files have a variable (NX) to distinguish between libnx and libtransistor.
* First Release.
*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.
*<nowiki>#stuff</nowiki> 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.


== External links ==
== External links ==
* Gbatemp - https://gbatemp.net/threads/i-created-a-somewhat-working-cmake-toolchain-setup-for-libnx-and-libtransistor.514521/
* GitHub - https://github.com/jfmherokiller/switch-homebrew-toolchain-cmake
* Github - https://github.com/jfmherokiller/switch-homebrew-toolchain-cmake
* GBAtemp - https://gbatemp.net/threads/i-created-a-somewhat-working-cmake-toolchain-setup-for-libnx-and-libtransistor.514521/
* Reddit -

Latest revision as of 06:43, 3 Haziran 2023

Switch homebrew toolchain cmake
Switchhomebrewtoolchaincmake.png
General
Authorjfmherokiller
TypeDevelopments
Version2018
LicenseMixed
Last Updated2018/09/13
Links
Download
Website
Source

Set of files to allow switch homebrew development using cmake.

It uses toolchain files from:

User guide

Example setup:

switchhomebrewtoolchaincmake2.png

Special notes:

  • The toolchain files have a variable (NX) to distinguish 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.

External links

Advertising: