From 7d7ce2ba6b204be353d4ead4e50cde78f81705df Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 20 Jul 2022 19:45:40 +0200 Subject: [PATCH] Documentation: Update build system documentation --- doc/build_system.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/doc/build_system.md b/doc/build_system.md index efd0027..ae61433 100644 --- a/doc/build_system.md +++ b/doc/build_system.md @@ -24,11 +24,15 @@ Provided aliases: ## setup_project -Cleans the project and its dependencies first, ensuring the project is in -a known state, then downloads and extracts dependencies. +Cleans the project and its dependencies first (see below), ensuring +the project is in a known state, then sets up dependencies. -This will probably do more in the future (for example compile dependencies -that need to be compiled). +This includes downloading (and caching) of files that are not yet +locally cached and compiling dependencies that need to be compiled. + +This script’s intended purpose is setting up a development environment but +it can also be used to update the locally set-up dependencies to the ones +that the project is using. # build @@ -55,14 +59,20 @@ Accepted environment variables: - `CXX`: override the default compiler - `CXXFLAGS`: override the default compiler flags, must at least specify the C++ version +- `SINGLE`: if set to `yes`, causes the test script to compile the tests in + single-threaded mode¹ + +¹Unit tests are always run one after the other. # clean -Removes and re-creates `bin/`. Also removes the endianness header and -the endianness check binary. +Removes and re-creates `bin/` and `include/`, then re-creates symlinks to +shared object and header files as needed for the build process. +Also removes the endianness header and the endianness check binary. # clean_dependencies -Removes and re-creates `dependencies/`. +Removes and re-creates `dependencies/` and prunes the download cache of files +that either have been corrupted or are no longer used.