@@ -18,6 +18,7 @@ permissions:
1818env :
1919 FFMPEG_VERSION : ${{ inputs.ffmpeg_version || 'master' }}
2020 X265_VERSION : " 4.1"
21+ HARFBUZZ_VERSION : " 8.5.0"
2122
2223jobs :
2324 build-macos-arm :
4344 - name : Install build tools
4445 run : |
4546 brew update
46- brew install automake cmake libtool nasm pkg-config yasm
47+ brew install automake cmake libtool meson ninja nasm pkg-config yasm
4748
4849 - name : Build x264
4950 run : |
@@ -222,6 +223,31 @@ jobs:
222223 env :
223224 PKG_CONFIG_PATH : ${{ github.workspace }}/ffmpeg_install/lib/pkgconfig
224225
226+ - name : Build HarfBuzz
227+ run : |
228+ cd $BUILD_DIR
229+ curl -L -o harfbuzz-${{ env.HARFBUZZ_VERSION }}.tar.xz https://github.com/harfbuzz/harfbuzz/releases/download/${{ env.HARFBUZZ_VERSION }}/harfbuzz-${{ env.HARFBUZZ_VERSION }}.tar.xz
230+ tar -xf harfbuzz-${{ env.HARFBUZZ_VERSION }}.tar.xz
231+ cd harfbuzz-${{ env.HARFBUZZ_VERSION }}
232+ meson setup build \
233+ --prefix=$INSTALL_DIR \
234+ --default-library=static \
235+ -Dglib=disabled \
236+ -Dgobject=disabled \
237+ -Dfreetype=disabled \
238+ -Dcairo=disabled \
239+ -Dchafa=disabled \
240+ -Dicu=disabled \
241+ -Dgraphite=disabled \
242+ -Dintrospection=disabled \
243+ -Ddocs=disabled \
244+ -Dtests=disabled \
245+ -Dutilities=disabled
246+ meson compile -C build
247+ meson install -C build
248+ env :
249+ PKG_CONFIG_PATH : ${{ github.workspace }}/ffmpeg_install/lib/pkgconfig
250+
225251 - name : Build freetype
226252 run : |
227253 cd $BUILD_DIR
@@ -267,7 +293,6 @@ jobs:
267293 --disable-shared \
268294 --with-pic \
269295 --disable-fontconfig \
270- --disable-harfbuzz \
271296 --disable-require-system-font-provider
272297 make -j$(sysctl -n hw.ncpu)
273298 make install
@@ -394,7 +419,7 @@ jobs:
394419 - name : Install build tools
395420 run : |
396421 brew update
397- brew install automake cmake libtool nasm pkg-config yasm
422+ brew install automake cmake libtool meson ninja nasm pkg-config yasm
398423
399424 - name : Build x264
400425 run : |
@@ -573,6 +598,31 @@ jobs:
573598 env :
574599 PKG_CONFIG_PATH : ${{ github.workspace }}/ffmpeg_install/lib/pkgconfig
575600
601+ - name : Build HarfBuzz
602+ run : |
603+ cd $BUILD_DIR
604+ curl -L -o harfbuzz-${{ env.HARFBUZZ_VERSION }}.tar.xz https://github.com/harfbuzz/harfbuzz/releases/download/${{ env.HARFBUZZ_VERSION }}/harfbuzz-${{ env.HARFBUZZ_VERSION }}.tar.xz
605+ tar -xf harfbuzz-${{ env.HARFBUZZ_VERSION }}.tar.xz
606+ cd harfbuzz-${{ env.HARFBUZZ_VERSION }}
607+ meson setup build \
608+ --prefix=$INSTALL_DIR \
609+ --default-library=static \
610+ -Dglib=disabled \
611+ -Dgobject=disabled \
612+ -Dfreetype=disabled \
613+ -Dcairo=disabled \
614+ -Dchafa=disabled \
615+ -Dicu=disabled \
616+ -Dgraphite=disabled \
617+ -Dintrospection=disabled \
618+ -Ddocs=disabled \
619+ -Dtests=disabled \
620+ -Dutilities=disabled
621+ meson compile -C build
622+ meson install -C build
623+ env :
624+ PKG_CONFIG_PATH : ${{ github.workspace }}/ffmpeg_install/lib/pkgconfig
625+
576626 - name : Build freetype
577627 run : |
578628 cd $BUILD_DIR
@@ -618,7 +668,6 @@ jobs:
618668 --disable-shared \
619669 --with-pic \
620670 --disable-fontconfig \
621- --disable-harfbuzz \
622671 --disable-require-system-font-provider
623672 make -j$(sysctl -n hw.ncpu)
624673 make install
@@ -770,6 +819,7 @@ jobs:
770819 - libmp3lame (MP3 audio)
771820 - libvorbis (Vorbis audio)
772821 - libwebp (WebP images)
822+ - HarfBuzz (Text shaping)
773823 - libfreetype (Font rendering)
774824 - libfribidi (Bidi text)
775825 - libass (Subtitles)
0 commit comments