Commit 7421a7b
feat(ci): macOS universal build (arm64 + x86_64) via lipo'd ffmpeg tree
cmake/ffmpeg.cmake now detects multi-arch CMAKE_OSX_ARCHITECTURES and
lipo's libs/ffmpeg/macos-{arm64,x86_64}/ dylibs into a universal tree
at ${CMAKE_BINARY_DIR}/ffmpeg-universal/ at configure time. Universal
dylibs live in the build tree (not committed) β regenerated whenever
the build dir is wiped. Symlink aliases (libavcodec.61.dylib β
libavcodec.61.19.101.dylib etc.) are recreated by reading the arm64
tree's symlinks (structure identical to x86_64 by construction).
Previously cmake/ffmpeg.cmake lines 26-29 emitted a WARNING and fell
back to the host arch when CMAKE_OSX_ARCHITECTURES was a list β that
was a Phase-14.3-era TODO ("Universal-binary stitching is a Phase 14.3
follow-up") that has now been done.
CI workflow changes:
- Restored -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" in the configure
step (was reduced to arm64-only by commit 4463542 during Phase 14.3
deferral because cmake/ffmpeg.cmake couldn't handle universal).
Output is now a fat .app/.vst3/.au/.clap that runs natively on
both Apple Silicon and Intel Macs.
- Removed the "Vendor LGPL ffmpeg" rebuild-from-source step entirely.
Both libs/ffmpeg/macos-arm64/ and libs/ffmpeg/macos-x86_64/ are now
bundled in the repo (a51bb04, prior commit), so the 15-25 min CI
rebuild per push became a no-op git checkout. The "Verify LGPL
discipline" gate still runs against the committed trees, ensuring
no libx264 contamination.
- Removed the one-shot arm64-ffmpeg-tree upload-artifact step added
in commit b58c97c β it served its purpose (capturing arm64 ffmpeg
for the bundling commit) and is no longer needed.
scripts/build_ffmpeg_lgpl.sh stays in the repo for: (a) bumping
ffmpeg or openh264 version (re-run, commit refreshed trees),
(b) initial vendoring of new platforms (linux-x86_64 + windows-x86_64
are still missing β those CI lanes are next iteration), (c)
reproducibility verification by downstream consumers.
Local-dev workflow unchanged: Intel-only macs continue using
libs/ffmpeg/macos-x86_64/ directly via the single-arch CMake path.
Universal builds are a CI-only concern (as the user requested).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent afe1642 commit 7421a7b
2 files changed
Lines changed: 114 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
84 | 72 | | |
85 | 73 | | |
86 | 74 | | |
87 | | - | |
| 75 | + | |
88 | 76 | | |
89 | 77 | | |
90 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
41 | 116 | | |
42 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
43 | 127 | | |
44 | | - | |
45 | | - | |
46 | 128 | | |
47 | 129 | | |
48 | 130 | | |
| |||
0 commit comments