comparison mupdf-source/thirdparty/harfbuzz/BUILD.md @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 On Linux, install the development packages for FreeType, Cairo, and GLib. For
2 example, on Ubuntu / Debian, you would do:
3
4 $ sudo apt-get install meson pkg-config ragel gtk-doc-tools gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
5
6 whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
7
8 $ sudo dnf install meson pkgconfig gtk-doc gcc gcc-c++ freetype-devel glib2-devel cairo-devel
9
10 and on ArchLinux and Manjaro:
11
12 $ sudo pacman -Suy meson pkg-config ragel gcc freetype2 glib2 cairo
13
14 then use meson to build the project like `meson build && meson test -Cbuild`.
15
16 On macOS, `brew install pkg-config ragel gtk-doc freetype glib cairo meson`
17 then use meson like above.
18
19 On Windows, meson can build the project like above if a working MSVC's cl.exe
20 (`vcvarsall.bat`) or gcc/clang is already on your path, and if you use
21 something like `meson build --wrap-mode=default` it fetches and compiles most
22 of the dependencies also. It is recommended to install CMake either manually
23 or via the Visual Studio installer when building with MSVC, using meson.
24
25 Our CI configurations is also a good source of learning how to build HarfBuzz.
26
27 There is also amalgam source provided with HarfBuzz which reduces whole process
28 of building HarfBuzz like `g++ src/harfbuzz.cc -fno-exceptions` but there is
29 not guarantee provided with buildability and reliability of features you get.