Skip to content

Add RGFW 1.8.1 as an optional modular library - #649

Open
danoli3 wants to merge 4 commits into
openframeworks:bleedingfrom
danoli3:add-rgfw-modular
Open

danoli3 wants to merge 4 commits into
openframeworks:bleedingfrom
danoli3:add-rgfw-modular

Conversation

@danoli3

@danoli3 danoli3 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Add RGFW 1.8.1 as an optional static windowing library, without adding it to openFrameworks core bundles or replacing GLFW. Pin the upstream tag archive and verify SHA-256 39f9dc8f89e86926fe2be4ffd6cdc877c1e7d179e24e3c803389ece50d6aef60 before extraction.

Supported targets:

  • macOS: Cocoa, universal x86_64/arm64 XCFramework.
  • Windows MSVC: x64, ARM64 and ARM64EC.
  • MSYS2: mingw64, ucrt64, clang64 and clangarm64.
  • Linux: X11/GLX, using the existing shared GCC10 modular runners for x86_64/ARM64.
  • Emscripten: threaded wasm32 and memory64, with EMSDK 6.0.11 declared in the CI matrix.

RGFW 1.8.1 has no Android, iOS, tvOS, watchOS, visionOS or Mac Catalyst backend. These are deliberately excluded rather than publishing nonfunctional packages. Upstream Wayland support is experimental and this release lacks its required generated protocol headers; Linux uses X11/XWayland.

Ship the unmodified upstream headers and license, an OpenGL-enabled static implementation, a wrapper with external declarations and C++ C linkage, and Pkl binary provenance. Raw staging/non-Apple packages include relocatable CMake and pkg-config integration with native link dependencies. Consumers use rgfw_apothecary.h and must not define RGFW_IMPLEMENTATION when linking the archive.

The dedicated non-Linux workflow uses Linux build planning before allocating native runners, compatible artifact reuse, inspectable PR artifacts, trusted-push publication to latest-modular and verified per-configuration Pkl records on build-state. Extend the planner's modular channel handling to support this second modular workflow. RGFW remains absent from every core selection, including unsupported mobile targets.

Validation completed locally:

  • Verified the exact upstream release archive SHA-256; formula source audit passed (45/45).
  • Actual formula builds/installs for macOS arm64 and x86_64; consumer links and runs; Apothecary's apo modular rgfw creates the universal XCFramework and the actual packaging script produces its archive.
  • Relocatable staged CMake consumer builds/runs; pkg-config reports native static link dependencies.
  • Threaded wasm32 and memory64 archives compile/link; C consumers run under Node, plus C++ wasm32 linkage/runtime. Local EMSDK is 6.0.9; CI pins 6.0.11.
  • Linux container validation was attempted but dependency downloads stalled before compilation; Linux remains CI-only validation.
  • Windows x64 MinGW cross-compilation and consumer linking pass. No native Windows runtime or MSVC/ARM64/ARM64EC validation yet.
  • Planner/publication, cache reuse, artifact lookup, scheduling, workflow lint and shell checks pass. Matrix planning selects RGFW alone with unique metadata filenames.

Native CI builds, browser/window creation and release publication remain to be verified. This is a library package, not an openFrameworks window-backend integration.

Preserve slash-prefixed MSVC release flags when passing them through MSYS to CMake. /GL- must remain a compiler option rather than being converted to C:/msys64/GL- and treated as a source file. Increment the RGFW build ID. The local flag-transport check preserves existing conversion exclusions and the complete release-flags argument; native Windows CI remains pending.

Rebased onto bleeding 974bcb60. Register the new library in the upstream-version registry now required by the merged checker; its 31 offline assertions pass, along with formula checksum, scheduling/YAML and release-planner checks. Fresh CI validates the rebased head.

@danoli3
danoli3 force-pushed the add-rgfw-modular branch 6 times, most recently from 2f8239d to c807dac Compare October 18, 2026 00:58
@danoli3
danoli3 force-pushed the add-rgfw-modular branch 6 times, most recently from afe3fa0 to 3b506a4 Compare October 26, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant