Everything Beutl uses that is not an ordinary managed package from NuGet is listed here: what it is, where it comes from, and what would let us stop carrying it. Add a row when you add a fork or a native binary, and remove it when its exit condition is met.
| Dependency | What we carry | Where | Upstream | Exit condition |
|---|---|---|---|---|
| libSkiaSharp | Patched build for every runtime, with binaries committed | native/SkiaSharp, src/Beutl.Engine/runtimes |
mono/SkiaSharp, mono/skia | Every patch below is gone |
| libBeutlDataChannel | Our C ABI over a patched libdatachannel and Mbed TLS, with binaries committed | native/libdatachannel |
paullouisageneau/libdatachannel, Mbed-TLS/mbedtls | The patch and packetizer.hpp go as below; the C ABI in preview.cpp stays ours |
| libBeutlAVF | Our own Swift library, with binaries committed because only macOS can build it | src/Beutl.Extensions.AVFoundation |
None | A macOS job builds it for every package, so nothing has to be committed |
| Patch | Exit condition |
|---|---|
native/SkiaSharp/vulkan-image-layout.patch |
SkiaSharp's C API exposes a backend texture's Vulkan image layout |
native/SkiaSharp/surface-content-change.patch |
SkiaSharp's C API exposes SkSurface::notifyContentWillChange |
native/SkiaSharp/float-target-vertex-colors.patch |
Skia's Ganesh sends colors to a float target without rounding them to 8 bits, or Beutl renders with Graphite |
native/SkiaSharp/freetype-fontmgr.patch |
SkiaSharp's C API can create a FreeType font manager on Windows |
native/SkiaSharp/fontconfig-missing-family.patch |
Skia stops family enumeration on FcResultNoMatch by itself |
native/SkiaSharp/macos-linker-version.patch |
The pinned Skia passes its minimum macOS version in a form the Xcode linker accepts |
native/libdatachannel/color-space-id.patch |
Upstream takes the two-byte RTP extension ID fix |
native/libdatachannel/packetizer.hpp (not a patch) |
Upstream fragments VP8 and VP9 payloads |
These are not ours to patch, so they have no exit condition: they move with their package version, and FFmpeg with the user's install.
| Native code | Comes from | Upstream |
|---|---|---|
| MoltenVK | Silk.NET.MoltenVK.Native |
KhronosGroup/MoltenVK |
| Vulkan loader | Silk.NET.Vulkan.Loader.Native |
KhronosGroup/Vulkan-Loader |
| SwiftShader | Silk.NET.Vulkan.SwiftShader.Native |
google/swiftshader |
| shaderc | Silk.NET.Shaderc.Native |
google/shaderc |
| OpenAL Soft | Silk.NET.OpenAL.Soft.Native |
kcat/openal-soft |
| Assimp | Ultz.Native.Assimp |
assimp/assimp |
| HarfBuzz | HarfBuzzSharp, HarfBuzzSharp.NativeAssets.Linux |
harfbuzz/harfbuzz |
| Avalonia's platform libraries | Avalonia's packages, transitively | AvaloniaUI/Avalonia |
| macOS terminal launcher | RoyalApps.RoyalTerminal.Terminal.Pty.Unix, via RoyalApps.RoyalTerminal.Avalonia |
RoyalTerminal |
| FFmpeg | Not bundled: downloaded from BtbN/FFmpeg-Builds on Windows and Linux and installed with Homebrew on macOS, for the GPL worker only (see the license boundary) | FFmpeg/FFmpeg |
Each binary we commit carries a record of what built it. CI compares libSkiaSharp and libBeutlAVF with theirs.
- libSkiaSharp:
python3 native/SkiaSharp/verify.pychecks the source, patch and binary hashes againstbuild.jsonin each runtime, and the architecture and exports of the binary. Seenative/SkiaSharp/README.md. - libBeutlDataChannel: the source pins and SHA-256 manifests sit next to each runtime, but nothing compares them with the committed files: the native workflow builds and tests fresh ones. Review the manifest when replacing a runtime. See
native/libdatachannel/README.md. - libBeutlAVF:
python3 build/avf_build_record.pychecks a hash of the Swift sources and of each dylib againstsrc/Beutl.Extensions.AVFoundation/runtimes/build.json, which also names the toolchain.build/test_avf_build_record.pyruns that check in CI, so a change to the Swift sources committed without new dylibs fails there.
To change libBeutlAVF, edit the Swift sources and run dotnet build src/Beutl.Extensions.AVFoundation on macOS. The Swift build overwrites both dylibs and rewrites build.json; commit all three with the source change.