firebird icon indicating copy to clipboard operation
firebird copied to clipboard

WIP: Support Qt for WebAssembly

Open Vogtinator opened this issue 1 year ago • 4 comments

  • [ ] Needs better platform integration (file management and settings)
  • [ ] Must not break other platforms
  • [x] Fix caching of emsdk libraries in the GH build
  • [x] On Firefox on Android, the screen is drawn too large. I suppose the condition for iOS in qtframebuffer.cpp needs to be extended

Vogtinator avatar Dec 29 '22 20:12 Vogtinator

Demo deployed at https://nspire-emus.github.io/firebird/wasm

Vogtinator avatar Dec 29 '22 21:12 Vogtinator

  • [ ] Fix caching of emsdk libraries in the GH build

Apparently that's because setup-emsdk behaves differently if the cache was found. If it's not found, it'll install emsdk into emsdk-main and create a cache in emsdk-cache. The system libs end up in emsdk-main in those builds, but only emsdk-cache is cached. If the cache is found, it uses emsdk-cache as emsdk location and build system libs inside that directory.

Vogtinator avatar Dec 30 '22 19:12 Vogtinator

Fix caching of emsdk libraries in the GH build

Fixed by running emsdk manually instead of using the setup-emsdk action

Vogtinator avatar Dec 30 '22 20:12 Vogtinator

-O3 -flto is not noticably faster compared to the default (-O3 for object files, -O2 for linking), but it takes twice as long to build.

Vogtinator avatar Dec 30 '22 22:12 Vogtinator