Skip to content

r58Playz/FNA-WASM-Build

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • SDL3.a - Simple DirectMedia Layer.
  • libtheorafile.a - Ogg Theora videos decoder library. (not yet implemented)
  • liba + hot_reload_detour - Library used for MonoMod on WASM.
  • dotnet - Patched dotnet wasm multithreaded runtime for MonoMod on WASM
  • openssl - OpenSSL wasm

There is currently just one workflow:

  1. WASM Build (FNA).

Patches

This fork contains a few patches (and uses SDL3 instead of SDL2):

  • SDL3.patch fixes some issues with EM_ASM not being proxied to main thread.
  • FNA3D.patch adds -pthread to the CFLAGS so FNA3D is built with WASM threads support.
  • dotnet.patch patches the dotnet runtime so MonoMod can be used

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`)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 100.0%