Skip to content

PS2BUILD

SDK Homebrew

Sistema de build e SDK para homebrew de PlayStation 2

PS2BUILD

Instalação ​

powershell
irm https://ps2build.dev/install.ps1 | iex
shell
curl -sSfL https://ps2build.dev/install.sh | sh
01

Multiplataforma

Roda nativamente no Windows, Linux e macOS.

Windows
Linux
macOS
02

Autocontido

Instala em seu próprio diretório e roda nativamente no seu sistema operacional.

  • Sem Docker
  • Sem configuração manual do ambiente
  • Toolchain e pacotes instalados e atualizados pelo ps2build
03

Definições de build simples

ps2sdk Makefile
EE_BIN = my-game.elf
EE_OBJS = main.o
EE_INCS += -I$(PS2SDK)/ports/include
EE_LDFLAGS += -L$(PS2SDK)/ports/lib
EE_LIBS += -lpng -lz -lfreetype -lgskit -ldmakit

all: $(EE_BIN)

clean:
	rm -f $(EE_BIN) $(EE_OBJS)

include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
ps2.yaml
project: my-game

targets:
  - name: my-game
    type: ee
    sources: [main.c]
    libs: [png, freetype, gskit, dmakit]
04

Suporte a editores

compile_commands.json já vem incluído. Funciona na maioria dos editores.

CLion
VSCodium
Neovim
Vim
Emacs
Sublime Text
Zed