redsea icon indicating copy to clipboard operation
redsea copied to clipboard

Migrate build system

Open windytan opened this issue 1 year ago • 2 comments

Possibility to migrate from autoconf to CMake should be investigated. It would simplify the discovery of external dependencies and creating test cases, and also make the build system more accessible to developers.

I have a working CMakeLists.txt for:

  • macOS

Remains to be tested:

  • Linux (at least Ubuntu)
  • Windows (WSL? MinGW?)

windytan avatar May 24 '23 06:05 windytan

Please take a look at meson ( @https://mesonbuild.com ) - it's getting quite popular in FOSS world and I think it is pretty much justified. I used it in a few projects and I find it way easier and more readable/maintainable than CMake. Please note I might be biased here, since I'm not an build system expert and meson just clicked with me, also I heard some mentions about 'modern' CMake, which might be on par with meson now.

michal2229 avatar May 26 '23 16:05 michal2229

Thanks! I'll check out the alternatives, too. Meson is a new one for me. The biggest plus side of good old CMake would be it's so widely used in C++ projects nowadays, and easily available for many platforms. + Lately my own experience with autoconf on macOS hasn't been that seamless.

windytan avatar May 27 '23 09:05 windytan