gfx-d icon indicating copy to clipboard operation
gfx-d copied to clipboard

Build with Meson

Open rtbo opened this issue 4 years ago • 0 comments

Advantages

  • Meson is much better for code generation (today everything is pre-generated manually)
    • format.d code gen
    • vulkan and opengl bindings
    • spirv shaders
  • Meson is better for mixing C++ builds with D (no need for spirv-cross or img-d prebuilt binaries)
  • Meson enables faster rebuild when only 1 file changes
  • Meson is better at driving tests (e.g. many tests started with external program like rendering comparator)

Disavantages

  • Sometimes, DUB must be invoked to build some dependencies with the right compiler
  • When rebuild, correct build dependency requires -makedeps switch. (DMD >= 2.095 / LDC >= 1.25 / Meson>=0.56.1)
  • DUB cannot use Meson to build (2 builds system necessary to support DUB PM)

rtbo avatar Feb 07 '21 10:02 rtbo