sheff-build-tools provides the shared CMake modules, Python build orchestration (make_helper.py), Git multi-repository management scripts, and documentation/debugging utilities used across the Scalable Hierarchical Enrichment Finite-element Framework (SHEFF) and downstream applications such as SPAWC.
- Unified Build Orchestration (
make_helper.py,sheff_modules.py,sheff_global_opts.py): Drives CMake configuration, parallel compilation, installation, CTest execution, and Doxygen/Sphinx documentation generation across standalone SHEFF modules and multi-submodule top-level applications via each repository'smake.pyentry point. - Reusable CMake Infrastructure (
cmake/):SHEFFModuleMain.cmake,IncludeSHEFF.cmake, andSHEFFDependencySearch.cmakestandardize static/header-only target creation, CMake package config export, and dependency resolution across first-party, second-party, third-party, and external libraries.SHEFFModulePython.cmakeandSHEFFModuleFortran.cmakesupport optional SWIG-based Python and Fortran language bindings.- Custom find modules (
FindMKL.cmake,FindPETSc.cmake,FindEigen3.cmake,FindFilesystem.cmake) locate system HPC math and solver libraries on Linux and Windows.
- Multi-Repository Git & Project Scaffolding (
sheff_git.py,git_utils/,sheff_config_project.py,cmake_generator.py,modules_database.json): Automates cloning, branch management, status inspection, and dependency graph resolution across the modular SHEFF repository suite. - Developer Tooling (
docs/,doxygen_markdown_filter.py,gdb/,sheff_vscode.py): Provides GDB pretty-printers, VS Code workspace helpers, and Markdown math filters for Doxygen/Sphinx documentation builds.
cmake/: Shared CMake scripts, target templates, andfind_modules/.git_utils/&sheff_*.py: Python utilities for module dependency ordering, Git submodule workflows, and IDE configuration.make_helper.py: Core CLI implementation invoked bymake.pyin SHEFF and SPAWC repositories.modules_database.json: Canonical registry of SHEFF first-party, second-party, and third-party module metadata and dependencies.docs/&gdb/: Documentation configuration and debugger pretty-printers.
- Python 3.8+ with packages listed in
requirements.txt(numpy,colorama; optionalSphinxandbreathefor documentation builds). - CMake 3.17+ and a C++17/C++20 compiler toolchain (GCC, Clang, Intel, or MSVC).
- Clone the repository:
git clone https://github.com/afrl/sheff-build-tools.git
- Export
SHEFF_TOOLSand add it toPYTHONPATH(unless already configured automatically by a top-levelmake.py):export SHEFF_TOOLS=/path/to/sheff-build-tools export PYTHONPATH="${SHEFF_TOOLS}:${PYTHONPATH}"
- From any SHEFF library or top-level application repository, invoke
make.py:python3 make.py --help python3 make.py --config --build --third-party python3 make.py --config --build --parallel 4
Distribution Statement A. Approved for public release: distribution is unlimited. Case #: AFRL-2026-4513