Configures and builds each variant into build/check-<variant>/ and reports the errors.
python3 scripts/build_check.py [linux|linux-10|linux-13|linux-gl|linux-x64|linux-x64-10|linux-client-x64|mingw-client-x64|mingw|mingw-10|mingw-client|mingw-client-10|mingw-client-gl|msvc-client|web|all ...] [--c [--cxx-dirs "a;b"]]
linux is the default 1.3 build (1.3 Plus), linux-13 stock 1.3 (-DCOD2_PLUS_PROTOCOL=OFF), linux-10 the 1.0 one;
their client is on DXVK, so they need scripts/build_linux_vk_deps.sh's libraries,
and linux-gl builds it on the GL device (-DCOD2_LINUX_DXVK=OFF). mingw the Windows
cross-compile of the dedicated server and mingw-client that of the client
(cod2_win32.exe), skipped without the static SDL2 under src/win32/sdl2/lib;
the client draws with the real d3d9 and d3dx9's HLSL compiler, and
mingw-client-gl builds it on the Mac port's GL device instead
(COD2_WIN32_REAL_D3D9=OFF); the -10 ones build 1.0. linux-client-x64 builds the
64-bit Linux client (cod2_linux, -DCOD2_X64=ON), skipped without the amd64 SDL2
headers scripts/linux_x64_deps.sh unpacks or scripts/build_linux_vk_deps.sh x64's
64-bit DXVK, and mingw-client-x64 the 64-bit
Windows client, skipped without scripts/mingw64_deps.sh's SDL2. msvc-client builds the
Windows client on the MSVC ABI (clang + lld-link) through cmd.exe on a copy of the
tree on a Windows drive (scripts/msvc_build.py), skipped without cmd.exe. web builds
the Emscripten client (third_party/emsdk), whose link may leave undefined only the
symbols test/web_undefined.txt lists. The engine compiles as C++ unless --c is given; with --c,
--cxx-dirs picks the src/ modules that still compile as C++. Exits with 0 when
every requested variant builds with no errors and, on Linux, no binary needs a
glibc newer than GLIBC_MAX (the floor of the C build: servers run on older
distributions than the build machine) and the dedicated server needs none of
the client's libraries (CLIENT_LIBRARIES). On every variant the dedicated
server, and the Linux and Windows clients, must get no C name both from CoD2rev-Plus and
from the engine (scripts/check_duplicates.py), and no engine object of them may
still define a function their bridge exports (scripts/check_single_impl.py), and
no bridge import may call an engine symbol that is data
(scripts/check_bridge_symbols.py).
On Linux no engine source of the client may name a renamed bgame global without
its eng_ name in effect (scripts/check_bgame_names.py), and the constants the
engine's bgame takes from CoD2rev-Plus's must be current
(scripts/bgame_plus_consts.py --check), and no engine function may be called
with another return or parameter type than its definition's
(scripts/check_c_decls.py), nor a global declared larger than it is defined
(scripts/check_var_sizes.py).