1
0
Fork
You've already forked sol-c
0
  • C 90.4%
  • Shell 6.3%
  • Scheme 3.3%
Find a file
David Wilson 790b34d667
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Enter the right output directory
2023年04月06日 21:22:06 +03:00
assets Add basic font rendering via sokol_fontstash et al 2023年03月16日 16:10:38 +02:00
lib Use add_flux_lib_flags helper 2023年04月06日 21:20:13 +03:00
src Attempt to fix issues running Emscripten from Codeberg 2023年04月06日 20:56:16 +03:00
.gitignore Consume flux-lib as a dependency using xmake.sh 2023年03月25日 15:51:23 +02:00
.gitmodules Use https url for flux-lib submodule 2023年03月25日 16:01:39 +02:00
.woodpecker.yml Enter the right output directory 2023年04月06日 21:22:06 +03:00
configure Update configure script 2023年04月06日 20:19:37 +03:00
manifest.scm Consume flux-lib as a dependency using xmake.sh 2023年03月25日 15:51:23 +02:00
README.md Attempt to fix issues running Emscripten from Codeberg 2023年04月06日 20:56:16 +03:00
xmake.sh Use add_flux_lib_flags helper 2023年04月06日 21:20:13 +03:00

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"