# Source and packaging modifications

## Film Buddy helper

`native/raw-decoder/main.cpp` is Film Buddy's command-line integration layer.
It uses LibRaw for RAW parsing and librtprocess for AMaZE and Markesteijn
demosaicing, then emits the helper's probe/status JSON or a TIFF decode result.
The complete file is included.

## librtprocess

Film Buddy changed exactly one upstream line at commit
`9a858270acb2096e2e403d932760ee688fcac425`:

```diff
-cmake_minimum_required(VERSION 3.5.0)
+cmake_minimum_required(VERSION 3.10)
```

No other librtprocess or embedded SLEEF source file differs from that commit.

## LibRaw

The vendored source matches upstream commit
`823f25dae9b86bf4504511ee42252ebc8d5513b1`. Film Buddy makes no source
changes. The build supplies compiler flags and creates static-library objects;
those generated objects are not source and are excluded from this archive.

## LLVM OpenMP

Film Buddy makes no LLVM OpenMP source changes. The build configures the
`openmp/` subtree for an arm64 Release build targeting macOS 13.0. Packaging:

1. copies `libomp.dylib` beside the helper;
2. changes its install name to `@rpath/libomp.dylib`;
3. changes the helper dependency to `@rpath/libomp.dylib`; and
4. applies an ad-hoc signature for local builds or the distributor's
   Developer ID signature for release builds.

These operations are implemented in `tools/build_libraw_decoder.sh`.
