commit 2d3010774b154f3bca8c8e8920eeaae8ba2569b1
parent 73865b76340e91f46fa3ffe78446cc20adf09c92
Author: St John Karp <contact@stjo.hn>
Date: Sun, 26 Jun 2022 08:47:38 -0400
freetype-harfbuzz: Build harfbuzz with introspection support
Added gobject-introspection as a dependency and updated the build
script to compile harfbuzz with introspection support. This is required
for fwupd.
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/libs/freetype-harfbuzz/build b/libs/freetype-harfbuzz/build
@@ -24,7 +24,7 @@ build_harfbuzz() (
-Ddefault_library=both \
-Dglib=disabled \
-Dfreetype=enabled \
- -Dgobject=disabled \
+ -Dgobject=enabled \
-Dcairo=disabled \
-Dicu=disabled \
-Dbenchmark=disabled \
@@ -41,6 +41,8 @@ export CFLAGS="$CFLAGS -L$DESTDIR/usr/lib "
export PKG_CONFIG_PATH=$DESTDIR/usr/lib/pkgconfig
# Point Harfbuzz to the Freetype files.
+export CFLAGS="$CFLAGS -I$DESTDIR/usr/include/freetype2"
+export CFLAGS="$CFLAGS -L$DESTDIR/usr/lib"
export CXXFLAGS="$CXXFLAGS -I$DESTDIR/usr/include/freetype2"
export CXXFLAGS="$CXXFLAGS -L$DESTDIR/usr/lib"
diff --git a/libs/freetype-harfbuzz/depends b/libs/freetype-harfbuzz/depends
@@ -1,3 +1,4 @@
libpng
+gobject-introspection
meson make
pkgconf make