/HOWTO

Practical instructions and advice on how to achieve various things with build2

Primary LanguageShellMIT LicenseMIT

build2 HOWTO

How do I add action targets similar to PHONY targets in make?

Which C/C++ compile/link options are OK to specify in a project's buildfile?

How do I convert source files to be in the UTF-8 encoding?

How do I convey additional information (metadata) with executables and C/C++ libraries?

How do I disable building of a shared library variant for a platform/compiler?

How do I handle auto-generated C/C++ headers?

How do I handle projects that don't use semantic versioning?

How do I handle projects that don't use versions at all?

How do I handle tests that have extra dependencies?

How do I keep the build graph configuration-independent?

How do I link the pthread library?

How do I link a system library like -lm, -ldl, or advapi32.lib?

How do I make a header-only C/C++ library?

How do I make a C/C++ library that provides main()?

How do I make components of a library optional?

How should I name packages when packaging third-party projects?

How do I sanitize the execution of my tests?

How do I setup the build2 toolchain for development?

How do I correctly use C/C++ assert() in tests?