BomberFish / FNA-WASM-Build

Repo for building the FNA WASM libraries. (`-pthread`)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FNA-WASM-Build

WASM Build (FNA)

This repo is for automating the build of WebAssembly (WASM) native libraries for FNA, including:

  • FNA3D.a - 3D graphics library for FNA.
  • FAudio.a - XAudio reimplementation for FNA.
  • SDL2.a - Simple DirectMedia Layer.
  • libtheorafile.a - Ogg Theora videos decoder library. (not yet implemented)

There is currently just one workflow:

  1. WASM Build (FNA).

Patches

This fork contains a few patches:

  • SDL2.patch removes the calls to EM_JS_DEPS for stringToUTF8 and UTF8ToString as those are runtime functions in Emscripten 3.1.34 which is what .NET 8 uses.
  • FNA3D.patch adds -pthread to the CFLAGS so FNA3D is built with WASM threads support.

Usage

Go to the Actions tab and download the .zip artifact from the latest workflow run.
See for further details: https://gist.github.com/TheSpydog/e94c8c23c01615a5a3b2cc1a0857415c

About

Repo for building the FNA WASM libraries. (`-pthread`)