Skip to content

libXenon is a library for writing programs for the Xbox 360, without using any existing code as a basis.

Notifications You must be signed in to change notification settings

Free60Project/libxenon

 
 

Repository files navigation

LibXenon

GitHub Workflow - Docker GitHub pages - documentation Docker pulls (LibXenon) Docker pulls (Toolchain)

LibXenon provides a bare-metal homebrew library for the Xbox 360 gaming console.

Prebuilt images

Check out (https://hub.docker.com/u/free60)

Example usage

host $ cd libxenon-homebrew-app/
host $ docker run -it -v $PWD:/app free60/libxenon:latest
docker $ cd /app
docker $ make

Manual build

Requirements

Dependencies for Linux distributions using the dnf or apt package managers will automatically be installed for you. These include:

  • flex
  • bison
  • gcc-multilib
  • libgmp3-dev
  • libmpfr-dev
  • libmpc-dev
  • texinfo
  • git-core
  • build-essential
  • wget
  • file

If you are not using a Linux system with either the dnf or apt package manager, ensure the above equivalents are installed before running the main driving script to setup LibXenon, which is named toolchain/build-xenon-toolchain. See below on how to use it.

Prefix

By default the prefix is set to /usr/local/xenon. If you want to choose your own prefix, prepend it to the ./build-xenon-toolchain invocation, i.e. PREFIX="/home/username/xenon" ./build-xenon-toolchain toolchain.

Installing the toolchain

./build-xenon-toolchain toolchain

Installing the libxenon library

./build-xenon-toolchain libxenon

Installing auxiliary libs (libxenon, bin2s, zlib, libpng, bzip2, freetype, filesystems)

./build-xenon-toolchain libs

Environment variables

After installation of the toolchain, the following environment variables need to be populated:

DEVKITXENON="/usr/local/xenon"
PATH="${PATH:+${PATH}:}"$DEVKITXENON"/bin:"$DEVKITXENON"/usr/bin"

DEVKITXENON depends on your chosen installation prefix location. The default value is /usr/local/xenon unless you changed it.

You may edit your ~/.bashrc to set these in every shell automatically. Alternatively, you may execute ./build-xenon-toolchain env-cmd to install a command named xenon-env. When you run that command, it will set those variables in a new shell.

About

libXenon is a library for writing programs for the Xbox 360, without using any existing code as a basis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.2%
  • Assembly 0.8%
  • Shell 0.5%
  • Makefile 0.5%
  • HLSL 0.0%
  • Dockerfile 0.0%