biod / sambamba

Tools for working with SAM/BAM data
http://thebird.nl/blog/D_Dragon.html
GNU General Public License v2.0
557 stars 104 forks source link

Add Meson build definition #419

Closed ximion closed 4 years ago

ximion commented 4 years ago

Hi! As written in my mail, here's the Meson build definition. It's not 100% what we use at Debian, because this definition was adjusted for the current upstream code and also has a flag to disable tests for faster building.

The project can be built with Meson using these commands:

# Configure
mkdir build && cd build
meson .. # pass --buildtype=debugoptimized -Doptimize_strong=true for strongest optimizations
# Build
ninja # parallel build
# Test
ninja test

To skip building tests and save a bit of build time, -Dtests=false can be passed as an option when configuring the build. The build requires BioD to be installed system-wide first (there is an option to use Meson subprojects to automatically fetch it and bake it in, but I did skip that implementation - if you want it, it would be quite easy to do though)