Rollup .h .c .cpp files to one file. Depend cosmopolitan. Can run cross platform.
Like nuklear build script. But that use python.
Just use cosmopolitan method to build main.c.
Here provide a build.bat for windows to build.You can edit the build file and change the gcc path or other.
On windows you would download the cross9.zip (x86_64-linux-gnu static binaries for windows (355mb)) to build it.
Just build with gcc.
If you don't want to build yourself. Just run the build/rollc.com file.
rollc
-r join to roll files.
-o output file.
-c config file, default rollc.txt
-h header files, copy first.
Thanks!