meson.build: Minor doc improvements.
This commit is contained in:
parent
4cb8a88ac7
commit
a399fb89dc
27
meson.build
27
meson.build
|
@ -11,6 +11,17 @@
|
||||||
# indicate that you have read the license and understand and accept it
|
# indicate that you have read the license and understand and accept it
|
||||||
# fully.
|
# fully.
|
||||||
|
|
||||||
|
#
|
||||||
|
# Say
|
||||||
|
#
|
||||||
|
# meson configure
|
||||||
|
#
|
||||||
|
# to see all configuration options and their default values. For example,
|
||||||
|
# to build only a shared version of FreeType, override the default value
|
||||||
|
# with
|
||||||
|
#
|
||||||
|
# meson setup -Ddefault_library=shared
|
||||||
|
#
|
||||||
|
|
||||||
project('freetype2', 'c',
|
project('freetype2', 'c',
|
||||||
meson_version: '>= 0.55.0',
|
meson_version: '>= 0.55.0',
|
||||||
|
@ -19,12 +30,8 @@ project('freetype2', 'c',
|
||||||
'include/freetype/freetype.h').stdout().strip(),
|
'include/freetype/freetype.h').stdout().strip(),
|
||||||
)
|
)
|
||||||
|
|
||||||
#
|
|
||||||
# Rules to compile the FreeType 2 library itself
|
|
||||||
#
|
|
||||||
|
|
||||||
|
# Apparently meson doesn't provide a `read_file` function, so instead
|
||||||
# Apparently meson doesn't provide a read_file() function, so instead
|
|
||||||
# running an external command is required.
|
# running an external command is required.
|
||||||
|
|
||||||
python = import('python')
|
python = import('python')
|
||||||
|
@ -101,7 +108,7 @@ endforeach
|
||||||
|
|
||||||
|
|
||||||
# FreeType 2 base extensions.
|
# FreeType 2 base extensions.
|
||||||
# Normally configured through `modules.cfg`.
|
# To be configured in `modules.cfg`.
|
||||||
|
|
||||||
base_extensions = run_command(python_exe,
|
base_extensions = run_command(python_exe,
|
||||||
files('builds/meson/parse_modules_cfg.py'),
|
files('builds/meson/parse_modules_cfg.py'),
|
||||||
|
@ -191,7 +198,7 @@ elif host_machine.system() == 'windows'
|
||||||
ft2_sources += files(['builds/windows/ftsystem.c',])
|
ft2_sources += files(['builds/windows/ftsystem.c',])
|
||||||
else
|
else
|
||||||
if has_unistd_h and has_fcntl_h and has_sys_mman_h
|
if has_unistd_h and has_fcntl_h and has_sys_mman_h
|
||||||
# This version of ftsystem.c uses mmap() to read input font files.
|
# This version of `ftsystem.c` uses `mmap` to read input font files.
|
||||||
ft2_sources += files(['builds/unix/ftsystem.c',])
|
ft2_sources += files(['builds/unix/ftsystem.c',])
|
||||||
elif mmap_option.enabled()
|
elif mmap_option.enabled()
|
||||||
error('mmap was enabled via options but is not available,'
|
error('mmap was enabled via options but is not available,'
|
||||||
|
@ -206,7 +213,7 @@ endif
|
||||||
#
|
#
|
||||||
# NOTE: Some specialized versions exist for other platforms not supported by
|
# NOTE: Some specialized versions exist for other platforms not supported by
|
||||||
# Meson. Most implementation differences are extremely minor, i.e., in the
|
# Meson. Most implementation differences are extremely minor, i.e., in the
|
||||||
# implementation of FT_Message() and FT_Panic(), and getting the `FT2_DEBUG`
|
# implementation of `FT_Message` and `FT_Panic`, and getting the `FT2_DEBUG`
|
||||||
# value from the environment, when this is supported. A smaller refactor
|
# value from the environment, when this is supported. A smaller refactor
|
||||||
# might make these platform-specific files much smaller, and could be moved
|
# might make these platform-specific files much smaller, and could be moved
|
||||||
# into `ftsystem.c` as well.
|
# into `ftsystem.c` as well.
|
||||||
|
@ -303,7 +310,7 @@ if host_machine.system() == 'windows'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Generate `ftconfig.h`
|
# Generate `ftconfig.h`.
|
||||||
|
|
||||||
ftconfig_command = process_header_command
|
ftconfig_command = process_header_command
|
||||||
if has_unistd_h
|
if has_unistd_h
|
||||||
|
@ -338,7 +345,7 @@ ft2_lib = library('freetype',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# To be used by other projects including this one through subproject().
|
# To be used by other projects including this one through `subproject`.
|
||||||
freetype_dep = declare_dependency(
|
freetype_dep = declare_dependency(
|
||||||
include_directories: ft2_includes,
|
include_directories: ft2_includes,
|
||||||
link_with: ft2_lib,
|
link_with: ft2_lib,
|
||||||
|
|
Loading…
Reference in New Issue