Skip to content

Commit

Permalink
Switch to meson for building harfbuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Jan 4, 2024
1 parent 9a5d2fe commit 15da5f0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ cd ${HARFBUZZ_NAME}
# Cairo and chafa are only needed for harfbuzz commandline utilities so we
# don't use it. glib available is a bit old so we don't prefer it as of now.
# we also don't compile-in icu so that harfbuzz uses built-in unicode handling
./configure $PG_BASE_CONFIGURE_FLAGS --with-freetype=yes \
--with-cairo=no --with-chafa=no --with-glib=no --with-icu=no \
--disable-static
make
make install
meson setup _build $PG_BASE_MESON_FLAGS -Dfreetype=enabled \
-Dglib=disabled -Dgobject=disabled -Dcairo=disabled -Dchafa=disabled -Dicu=disabled \
-Dtests=disabled -Dintrospection=disabled -Ddocs=disabled

meson compile -C _build
meson install -C _build

if [[ "$OSTYPE" == "darwin"* ]]; then
# We do a little hack...
Expand All @@ -51,7 +52,6 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
# contains "freetype". This is fine for now when the harfbuzz we are
# building has no other dependencies
sed -i '' '/freetype/d' $PG_DEP_PREFIX/lib/pkgconfig/harfbuzz.pc
sed -i '' 's/ [^ ]*libfreetype.la//g' $PG_DEP_PREFIX/lib/libharfbuzz.la
fi

cd ..
Expand Down

0 comments on commit 15da5f0

Please sign in to comment.