No description
https://fluxharmonic.codeberg.page/sol-c
- C 90.4%
- Shell 6.3%
- Scheme 3.3%
|
David Wilson
790b34d667
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
|
||
|---|---|---|
| assets |
Add basic font rendering via sokol_fontstash et al
|
|
| lib |
Use add_flux_lib_flags helper
|
|
| src | Attempt to fix issues running Emscripten from Codeberg | |
| .gitignore | Consume flux-lib as a dependency using xmake.sh | |
| .gitmodules | Use https url for flux-lib submodule | |
| .woodpecker.yml | Enter the right output directory | |
| configure | Update configure script | |
| manifest.scm | Consume flux-lib as a dependency using xmake.sh | |
| README.md | Attempt to fix issues running Emscripten from Codeberg | |
| xmake.sh |
Use add_flux_lib_flags helper
|
|
sol-c
Building the Code
Make sure you have the GCC toolchain and basic tools installed (gcc, make, coreutils, awk, sed, find) and then run the following commands:
git clone --recursive https://codeberg.org/FluxHarmonic/sol-c
./configure
make
You can also run the program by executing make run.
Building for the web
The ./configure script should automatically detect the EMSDK variable in the Emscripten SDK shell and configure the project correctly. If it doesn't, you can use the --plat=wasm parameter to switch to emcc et al.
./configure --plat=wasm
make
To build with Emscripten without installing emsdk you can use Docker:
docker run -v `pwd`:`pwd` -w `pwd` -u $(id -u):$(id -g) -p 8080:6931 emscripten/emsdk /bin/sh -c "./configure && make"
To test the Emscripten build locally, use emrun:
docker run -v `pwd`:`pwd` -w `pwd` -u $(id -u):$(id -g) -p 8080:6931 emscripten/emsdk /bin/sh -c "emrun ./build/wasm/wasm32/release --no_browser"