gthvn1/zraysm
Experimenting with Zig, Raylib and WebAssembly
raylib.h
, raymath.h
and libraylib.a
into the raylib/ directorybuild.zig
file it should be easy to build it with ZraysmDownload Wasmer
Create a directory wasmer
go into the directory and untar the previously downloaded release
lib/libwasmer.so
and the include/*
but you can keep other stuffAfter installing Raylib and Wasmer you should have a tree like:
.
├── build.zig
├── LICENSE
├── raylib
│ ├── libraylib.a
│ ├── raylib.h
│ └── raymat.h
├── README.md
├── samples
│ ...
├── src
│ ...
├── wasmer
│ ├── include
│ │ ├── README.md
│ │ ├── wasmer.h
│ │ ├── wasmer_wasm.h
│ │ ├── wasm.h
│ │ └── wasm.hh
│ ├── lib
│ │ └── libwasmer.so
│ └── LICENSE
libwasmer.a
so to run it:zig build && LD_LIBRARY_PATH=./wasmer/lib ./zig-out/bin/zraysm ./src/wat/gcd.wat
zig build run
2024-06-24 Gthvn1 [email protected]
2024-06-21 Gthvn1 [email protected]
Zraysm
2024-06-20 Gthvn1 [email protected]
2024-06-17 Gthvn1 [email protected]
2024-06-15 Gthvn1 [email protected]