Skip to content

About

Shared CMake build system and Python orchestration tools for SHEFF and SPAWC

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SHEFF Build Tools (sheff-build-tools)

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.

Capabilities

  • 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's make.py entry point.
  • Reusable CMake Infrastructure (cmake/):
    • SHEFFModuleMain.cmake, IncludeSHEFF.cmake, and SHEFFDependencySearch.cmake standardize static/header-only target creation, CMake package config export, and dependency resolution across first-party, second-party, third-party, and external libraries.
    • SHEFFModulePython.cmake and SHEFFModuleFortran.cmake support 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.

Project Structure

  • cmake/: Shared CMake scripts, target templates, and find_modules/.
  • git_utils/ & sheff_*.py: Python utilities for module dependency ordering, Git submodule workflows, and IDE configuration.
  • make_helper.py: Core CLI implementation invoked by make.py in 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.

Dependencies

  • Python 3.8+ with packages listed in requirements.txt (numpy, colorama; optional Sphinx and breathe for documentation builds).
  • CMake 3.17+ and a C++17/C++20 compiler toolchain (GCC, Clang, Intel, or MSVC).

Installation & Usage

  1. Clone the repository:
    git clone https://github.com/afrl/sheff-build-tools.git
  2. Export SHEFF_TOOLS and add it to PYTHONPATH (unless already configured automatically by a top-level make.py):
    export SHEFF_TOOLS=/path/to/sheff-build-tools
    export PYTHONPATH="${SHEFF_TOOLS}:${PYTHONPATH}"
  3. 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

Public Release Information

Distribution Statement A. Approved for public release: distribution is unlimited. Case #: AFRL-2026-4513

About

Shared CMake build system and Python orchestration tools for SHEFF and SPAWC

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages