2016-05-06 16:24:39 +02:00
|
|
|
On Linux, install the development packages for FreeType,
|
2015-10-19 20:32:12 +02:00
|
|
|
Cairo, and GLib. For example, on Ubuntu / Debian, you would do:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
2020-07-06 14:17:50 +02:00
|
|
|
sudo apt-get install meson pkg-config ragel gtk-doc-tools gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
|
2015-10-19 20:32:12 +02:00
|
|
|
|
|
|
|
whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
|
2018-01-02 18:15:18 +01:00
|
|
|
|
2022-05-13 11:54:11 +02:00
|
|
|
sudo dnf install meson pkgconfig gtk-doc gcc gcc-c++ freetype-devel glib2-devel cairo-devel
|
2015-10-19 20:32:12 +02:00
|
|
|
|
2020-07-06 14:17:50 +02:00
|
|
|
and on ArchLinux and Manjaro:
|
2017-10-12 10:41:47 +02:00
|
|
|
|
2020-07-06 14:17:50 +02:00
|
|
|
sudo pacman -Suy meson pkg-config ragel gcc freetype2 glib2 cairo
|
2018-01-02 18:15:18 +01:00
|
|
|
|
2020-07-06 14:17:50 +02:00
|
|
|
then use meson to build the project like `meson build && meson test -Cbuild`.
|
2015-10-19 20:32:12 +02:00
|
|
|
|
2020-07-06 14:34:54 +02:00
|
|
|
On macOS, `brew install pkg-config ragel gtk-doc freetype glib cairo meson` then use
|
|
|
|
meson like above.
|
2018-01-02 18:15:18 +01:00
|
|
|
|
2020-07-06 19:10:19 +02:00
|
|
|
On Windows, meson can build the project like above if a working MSVC's cl.exe (`vcvarsall.bat`)
|
|
|
|
or gcc/clang is already on your path, and if you use something like `meson build --wrap-mode=default`
|
2022-02-17 08:28:42 +01:00
|
|
|
it fetches and compiles most of the dependencies also. It is recommended to install CMake either
|
|
|
|
manually or via the Visual Studio installer when building with MSVC when building with meson.
|
2020-07-06 14:34:54 +02:00
|
|
|
|
2020-08-02 08:45:15 +02:00
|
|
|
Our CI configurations is also a good source of learning how to build HarfBuzz.
|
|
|
|
|
2020-07-06 19:10:19 +02:00
|
|
|
There is also amalgam source provided with HarfBuzz which reduces whole process of building
|
|
|
|
HarfBuzz like `g++ src/harfbuzz.cc -fno-exceptions` but there is not guarantee provided
|
|
|
|
with buildability and reliability of features you get.
|