Add Meson build project file

System Internals / FreeType - David Turner [gmail.com] - 21 September 2020 05:53 UTC

Example usage:

# Configure Meson build in directory `build-meson` to generate # release binaries comparable to to the ones from the # autotools/make build system. meson setup build-meson \--prefix=/usr/local \--buildtype=debugoptimized \--strip \-Db_ndebug=true

# After configuring the Meson build with the above command, # compile and install to `/usr/local/`; this includes a pkg-config # file. ninja -C build-meson install

# Alternatively, compile and install to `/tmp/aa/usr/local/...` # for packaging. DESTDIR=/tmp/aa ninja -C build-meson install

# Generate documentation under `build-meson/docs`. ninja -C build-meson docs

Library size comparison for stripped `libfreetype.so` generated by all three build systems:

- Default build (autotools + libtool): 712 KiB- CMake build (RelWithDebInfo): 712 KiB- Meson build: 712 KiB

- meson.build: New top-level Meson build file for the library.

- meson_options.txt: New file. It holds user-selectable options for the build, which can be printed with `meson configure`, and selected at `meson setup` or `meson --reconfigure` time with `-D

66978a588 Add Meson build project file.
ChangeLog | 66 +++++++
builds/unix/ftsystem.c | 2 +-
meson.build | 368 ++++++++++++++++++++++++++++++++++++
meson_options.txt | 47 +++++
scripts/extract_freetype_version.py | 107 +++++++++++
scripts/extract_libtool_version.py | 105 ++++++++++
scripts/generate_reference_docs.py | 79 ++++++++
scripts/parse_modules_cfg.py | 160 ++++++++++++++++
scripts/process_ftoption_h.py | 105 ++++++++++
9 files changed, 1038 insertions(+), 1 deletion(-)

Upstream: git.savannah.gnu.org


  • Share