Hacker GitHub

← All repos

floooh/sokol-tools

View on GitHub ↗ ★ 350 C++

Command line tools for use with sokol headers

7 mentions on Hacker News by 3 people: 0 stories, 7 comments · first 2022-05-02 · latest 2024-09-07

Mentions per year 7 mentions · busiest year 2023 (4)
20082026
  1. …and CPU architecture, potentially using different compilers. This is always brittle (I would know: https://github.com/floooh/sokol-tools/actions/runs/107248810... )
    comment by flohofwoe · 2024-09-07 · in QtCS2024: Compile once, Run everywhere
  2. I was researching this the other day, here is a non trivial example: https://github.com/floooh/sokol-tools/blob/master/build.zig Here is a tutorial: https://www.zvm.app/tutorials/zig-build-cpp.html
  3. …). A similar problem I'd like to solve better is a shader cross-compiler ( https://github.com/floooh/sokol-tools ) which needs to run on Linux, macOS and Windows and takes too long to build locally, thus I currently need to distribut
  4. Sokol also provides a solution for shader cross-compilation ( https://github.com/floooh/sokol-tools/blob/master/docs/sokol... ), so you only need to write your shaders once no matter if you're targeting OpenGL, Metal, or DirectX. There are…
  5. …C++ command line tool which works just fine with MUSL and results in a distro-agnostic executable ( https://github.com/floooh/sokol-tools ). What potential problems should I be aware of?
  6. …nicer than wrestling with the arcane cmake syntax and all the C/C++ compiler toolchain differences: https://github.com/floooh/sokol-tools/blob/master/build.zig The basic idea is the same as in all other build systems: you describe your…
    comment by flohofwoe · 2023-03-10 · in Zig: The Modern Alternative to C
  7. Yes, here is an example for a non-trivial mixed C/C++ project: https://github.com/floooh/sokol-tools/blob/master/build.zig Compared to cmake this means giving up IDE support like Xcode or Visual Studio though, it's really "just" a build…