Let's try make a Wii U Toolchain / SDK for creating rpx/rpl.
Go to file
2019-11-20 12:49:02 +00:00
cafe cafe: remove snd_core and snd_user 2019-05-04 20:56:31 +10:00
docs Fix URL and status (#107) 2019-06-20 14:37:26 +01:00
include gx2: Add missing primitive modes. 2019-11-19 23:09:39 +00:00
libraries Merge 'build-refactor' attempt #1; get upstream changes 2019-04-23 18:37:05 +10:00
samples cmake: Cleanup cmake based samples. 2019-11-20 12:49:02 +00:00
share cmake: Add HINTS to toolchain file usage of find_program 2019-11-20 11:29:37 +00:00
tests include/coreinit: First pass at coreinit/codegen.h 2019-04-22 10:12:28 +10:00
.gitignore samples: port helloworld to make 2019-04-09 19:15:24 +10:00
.travis.yml Merge 'build-refactor' attempt #1; get upstream changes 2019-04-23 18:37:05 +10:00
CHANGELOG.md cafe: remove snd_core and snd_user 2019-05-04 20:56:31 +10:00
LICENSE.md Create LICENSE.md 2015-12-27 02:16:34 +00:00
Makefile cafe: remove snd_core and snd_user 2019-05-04 20:56:31 +10:00
README.md Update README.md 2019-11-20 12:23:22 +00:00

Build Status

wut

Let's try make a Wii U Toolchain / SDK for creating rpx/rpl.

Licensed under the terms of the GNU General Public License, version 2 or later (GPLv2+).

Install

It is recommended to install wut by using the devkitPro package manager

For example you might do:

sudo dkp-pacman -Syu devkitPPC wut-tools wut

Usage

See samples for examples of how to use wut.

The share/wut.cmake file provides several helpers for your build:

  • wut_create_rpx(target.rpx executable) - Will create an .rpx file from your CMake target generated by add_executable
  • wut_create_rpl(target.rpl executable) - Will create an .rpl file from your CMake target generated by add_executable
  • wut_add_exports(target exports.def) - Will add exports specified in exports.def for target

Building from source

Requires:

Building with devkitPPC

Ensure you have the devkitPPC and wut-tools packages provided by devkitPro:

sudo dkp-pacman -Syu devkitPPC wut-tools
export DEVKITPRO=/opt/devkitpro
export DEVKITPPC=/opt/devkitpro/devkitPPC

Then it's as simple as running make or make install:

make
make install

Building with a locally built wut-tools

If you have locally built wut-tools then just add the directory containing the built binaries to PATH and they should be used instead:

export PATH=/path/to/wut-tools/bin:$PATH
make

Building wut projects

Building wut projects with make

Simply export the required variables and call make.

export DEVKITPRO=/opt/devkitpro
export DEVKITPPC=/opt/devkitpro/devkitPPC
make

Building wut projects with CMake

For any wut project you want to build with CMake you must use the wut.toolchain.cmake toolchain file:

export DEVKITPRO=/opt/devkitpro
cd samples/cmake/helloworld
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/wut/share/wut.toolchain.cmake ../
make

A minimal CMakeLists.txt file for a C++ project might look like:

cmake_minimum_required(VERSION 3.2)
project(helloworld_cpp CXX)
include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)

add_executable(helloworld_cpp main.cpp)
wut_create_rpx(helloworld_cpp.rpx helloworld_cpp)