2018-05-16 23:28:53 +00:00
|
|
|
project('harfbuzz', 'c', 'cpp',
|
2020-05-21 12:31:04 +00:00
|
|
|
meson_version: '>= 0.53.0',
|
2020-07-05 20:01:42 +00:00
|
|
|
version: '2.6.8',
|
2020-07-06 17:57:39 +00:00
|
|
|
default_options: [
|
|
|
|
'cpp_std=c++11',
|
|
|
|
'wrap_mode=nofallback', # https://github.com/harfbuzz/harfbuzz/pull/2548
|
|
|
|
],
|
2020-07-05 20:01:42 +00:00
|
|
|
)
|
2018-05-16 23:28:53 +00:00
|
|
|
|
2020-06-21 23:34:40 +00:00
|
|
|
warning('Meson is not our main build system for building *nix packages yet we encourage packagers to test it and give us feedback about it.')
|
2020-03-24 15:22:43 +00:00
|
|
|
|
2018-12-03 19:51:06 +00:00
|
|
|
hb_version_arr = meson.project_version().split('.')
|
|
|
|
hb_version_major = hb_version_arr[0].to_int()
|
|
|
|
hb_version_minor = hb_version_arr[1].to_int()
|
|
|
|
hb_version_micro = hb_version_arr[2].to_int()
|
|
|
|
|
|
|
|
# libtool versioning
|
|
|
|
hb_version_int = hb_version_major*10000 + hb_version_minor*100 + hb_version_micro
|
2020-06-22 13:34:01 +00:00
|
|
|
hb_libtool_version_info = '@0@:0:@0@'.format(hb_version_int)
|
2018-12-03 19:51:06 +00:00
|
|
|
|
2018-06-05 00:15:43 +00:00
|
|
|
pkgmod = import('pkgconfig')
|
2018-05-16 23:28:53 +00:00
|
|
|
cpp = meson.get_compiler('cpp')
|
2020-07-02 23:58:08 +00:00
|
|
|
null_dep = dependency('', required: false)
|
2018-05-16 23:28:53 +00:00
|
|
|
|
2018-12-01 11:05:27 +00:00
|
|
|
if cpp.get_id() == 'msvc'
|
|
|
|
# Ignore several spurious warnings for things HarfBuzz does very commonly.
|
|
|
|
# If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
|
|
|
|
# If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
|
|
|
|
# NOTE: Only add warnings here if you are sure they're spurious
|
|
|
|
msvc_args = [
|
2020-07-06 17:57:39 +00:00
|
|
|
'/wd4018', # implicit signed/unsigned conversion
|
|
|
|
'/wd4146', # unary minus on unsigned (beware INT_MIN)
|
|
|
|
'/wd4244', # lossy type conversion (e.g. double -> int)
|
|
|
|
'/wd4305', # truncating type conversion (e.g. double -> float)
|
|
|
|
cpp.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
|
2018-12-01 11:05:27 +00:00
|
|
|
]
|
2020-06-11 14:39:24 +00:00
|
|
|
add_project_arguments(msvc_args, language: ['c', 'cpp'])
|
2018-12-01 11:05:27 +00:00
|
|
|
# Disable SAFESEH with MSVC for libs that use external deps that are built with MinGW
|
|
|
|
# noseh_link_args = ['/SAFESEH:NO']
|
|
|
|
endif
|
|
|
|
|
2020-06-04 23:39:07 +00:00
|
|
|
add_project_link_arguments(cpp.get_supported_link_arguments([
|
|
|
|
'-Bsymbolic-functions'
|
2020-06-11 14:39:24 +00:00
|
|
|
]), language: 'c')
|
2020-06-04 23:39:07 +00:00
|
|
|
|
2020-03-14 01:05:38 +00:00
|
|
|
add_project_arguments(cpp.get_supported_arguments([
|
2020-03-11 16:46:36 +00:00
|
|
|
'-fno-rtti',
|
|
|
|
'-fno-exceptions',
|
|
|
|
'-fno-threadsafe-statics',
|
|
|
|
'-fvisibility-inlines-hidden', # maybe shouldn't be applied for mingw
|
2020-06-11 14:39:24 +00:00
|
|
|
]), language: 'cpp')
|
2020-03-11 16:46:36 +00:00
|
|
|
|
|
|
|
if host_machine.cpu_family() == 'arm' and cpp.alignment('struct { char c; }') != 1
|
|
|
|
if cpp.has_argument('-mstructure-size-boundary=8')
|
2020-06-11 14:39:24 +00:00
|
|
|
add_project_arguments('-mstructure-size-boundary=8', language: 'cpp')
|
2020-03-11 16:46:36 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-05-16 23:28:53 +00:00
|
|
|
check_headers = [
|
|
|
|
['unistd.h'],
|
|
|
|
['sys/mman.h'],
|
|
|
|
['stdbool.h'],
|
|
|
|
]
|
|
|
|
|
|
|
|
check_funcs = [
|
|
|
|
['atexit'],
|
|
|
|
['mprotect'],
|
|
|
|
['sysconf'],
|
|
|
|
['getpagesize'],
|
|
|
|
['mmap'],
|
|
|
|
['isatty'],
|
|
|
|
]
|
|
|
|
|
2020-06-11 14:02:13 +00:00
|
|
|
m_dep = cpp.find_library('m', required: false)
|
|
|
|
|
2020-07-03 00:02:32 +00:00
|
|
|
freetype_dep = null_dep
|
2020-06-10 12:22:32 +00:00
|
|
|
if not get_option('freetype').disabled()
|
|
|
|
freetype_dep = dependency('freetype2', required: false)
|
2020-06-11 14:02:13 +00:00
|
|
|
|
|
|
|
if not freetype_dep.found() and cpp.get_id() == 'msvc'
|
2020-06-24 17:40:32 +00:00
|
|
|
freetype_dep = cpp.find_library('freetype', required: false,
|
2020-07-01 09:52:46 +00:00
|
|
|
has_headers: ['ft2build.h'])
|
2020-06-11 14:02:13 +00:00
|
|
|
endif
|
|
|
|
|
2020-06-24 17:40:55 +00:00
|
|
|
if not freetype_dep.found()
|
2020-07-01 09:52:46 +00:00
|
|
|
# https://github.com/harfbuzz/harfbuzz/pull/2498
|
|
|
|
freetype_dep = dependency('freetype2', required: get_option('freetype'),
|
|
|
|
fallback: ['freetype2', 'freetype_dep'],
|
|
|
|
default_options: ['harfbuzz=disabled'])
|
2020-06-11 14:02:13 +00:00
|
|
|
endif
|
2020-06-10 12:22:32 +00:00
|
|
|
endif
|
2020-03-13 08:15:21 +00:00
|
|
|
|
2018-11-12 15:36:27 +00:00
|
|
|
glib_dep = dependency('glib-2.0', required: get_option('glib'),
|
2018-10-12 14:11:49 +00:00
|
|
|
fallback: ['glib', 'libglib_dep'])
|
2018-11-12 15:36:27 +00:00
|
|
|
gobject_dep = dependency('gobject-2.0', required: get_option('gobject'),
|
2018-10-12 14:11:49 +00:00
|
|
|
fallback: ['glib', 'libgobject_dep'])
|
2018-11-12 15:36:27 +00:00
|
|
|
fontconfig_dep = dependency('fontconfig', required: get_option('fontconfig'),
|
2018-10-12 14:11:49 +00:00
|
|
|
fallback: ['fontconfig', 'fontconfig_dep'])
|
2018-11-12 15:36:27 +00:00
|
|
|
graphite2_dep = dependency('graphite2', required: get_option('graphite'))
|
2018-05-16 23:28:53 +00:00
|
|
|
|
2020-07-03 00:02:32 +00:00
|
|
|
icu_dep = null_dep
|
2020-06-10 12:22:32 +00:00
|
|
|
if not get_option('icu').disabled()
|
|
|
|
icu_dep = dependency('icu-uc', required: false)
|
2020-06-11 14:02:13 +00:00
|
|
|
|
|
|
|
if not icu_dep.found() and get_option('icu').enabled()
|
|
|
|
icu_dep = dependency('icu-uc', required: cpp.get_id() != 'msvc')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if not icu_dep.found() and cpp.get_id() == 'msvc'
|
2020-07-07 19:56:40 +00:00
|
|
|
icu_dep = cpp.find_library(get_option('buildtype') == 'debug' ? 'icuucd' : 'icuuc',
|
|
|
|
required: get_option('icu'),
|
|
|
|
has_headers: ['unicode/uchar.h',
|
|
|
|
'unicode/unorm2.h',
|
|
|
|
'unicode/ustring.h',
|
|
|
|
'unicode/utf16.h',
|
|
|
|
'unicode/uversion.h',
|
|
|
|
'unicode/uscript.h'])
|
2020-03-13 08:40:20 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-07-03 00:02:32 +00:00
|
|
|
cairo_dep = null_dep
|
|
|
|
cairo_ft_dep = null_dep
|
2020-06-10 12:22:32 +00:00
|
|
|
if not get_option('cairo').disabled()
|
|
|
|
cairo_dep = dependency('cairo', required: false)
|
2020-06-11 14:02:13 +00:00
|
|
|
|
|
|
|
if not cairo_dep.found() and cpp.get_id() == 'msvc'
|
2020-06-24 18:11:07 +00:00
|
|
|
cairo_dep = cpp.find_library('cairo', required: false,
|
|
|
|
has_headers: ['cairo.h'])
|
2020-03-13 08:56:55 +00:00
|
|
|
endif
|
|
|
|
|
2020-06-24 18:11:32 +00:00
|
|
|
if not cairo_dep.found()
|
|
|
|
# Note that we don't have harfbuzz -> cairo -> freetype2 -> harfbuzz fallback
|
|
|
|
# dependency cycle here because we have configured freetype2 above with
|
|
|
|
# harfbuzz support disabled, so when cairo will lookup freetype2 dependency
|
|
|
|
# it will be forced to use that one.
|
2020-06-24 19:56:09 +00:00
|
|
|
cairo_dep = dependency('cairo', fallback: ['cairo', 'libcairo_dep'],
|
|
|
|
required: get_option('cairo'))
|
2020-06-11 14:02:13 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Ensure that cairo-ft is fetched from the same library as cairo itself
|
|
|
|
if cairo_dep.found()
|
2020-07-02 19:24:09 +00:00
|
|
|
if cairo_dep.type_name() == 'internal'
|
|
|
|
# It is true at least for the port we have
|
|
|
|
cairo_ft_dep = cairo_dep
|
|
|
|
elif cairo_dep.type_name() == 'library' and \
|
|
|
|
cpp.has_function('cairo_ft_font_face_create_for_ft_face',
|
|
|
|
prefix: '#include <cairo-ft.h>',
|
|
|
|
dependencies: cairo_dep)
|
|
|
|
cairo_ft_dep = cairo_dep
|
|
|
|
else # including the most important type for us, 'pkgconfig'
|
2020-06-11 14:02:13 +00:00
|
|
|
cairo_ft_dep = dependency('cairo-ft', required: get_option('cairo'))
|
2020-03-13 08:56:55 +00:00
|
|
|
endif
|
2018-10-12 14:11:49 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-05-16 23:28:53 +00:00
|
|
|
conf = configuration_data()
|
2018-11-14 20:19:36 +00:00
|
|
|
incconfig = include_directories('.')
|
2020-03-14 01:08:15 +00:00
|
|
|
|
|
|
|
add_project_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])
|
2018-05-16 23:28:53 +00:00
|
|
|
|
|
|
|
warn_cflags = [
|
|
|
|
'-Wno-non-virtual-dtor',
|
|
|
|
]
|
|
|
|
|
2020-03-14 01:08:15 +00:00
|
|
|
cpp_args = cpp.get_supported_arguments(warn_cflags)
|
2018-05-16 23:28:53 +00:00
|
|
|
|
|
|
|
if glib_dep.found()
|
|
|
|
conf.set('HAVE_GLIB', 1)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if gobject_dep.found()
|
|
|
|
conf.set('HAVE_GOBJECT', 1)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if cairo_dep.found()
|
|
|
|
conf.set('HAVE_CAIRO', 1)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if cairo_ft_dep.found()
|
|
|
|
conf.set('HAVE_CAIRO_FT', 1)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if graphite2_dep.found()
|
|
|
|
conf.set('HAVE_GRAPHITE2', 1)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if icu_dep.found()
|
|
|
|
conf.set('HAVE_ICU', 1)
|
2020-04-18 20:24:24 +00:00
|
|
|
endif
|
|
|
|
|
2020-05-21 15:03:18 +00:00
|
|
|
if get_option('icu_builtin')
|
2018-05-16 23:28:53 +00:00
|
|
|
conf.set('HAVE_ICU_BUILTIN', 1)
|
|
|
|
endif
|
|
|
|
|
2020-05-21 15:03:18 +00:00
|
|
|
if get_option('experimental_api')
|
2020-04-20 20:43:13 +00:00
|
|
|
conf.set('HB_EXPERIMENTAL_API', 1)
|
|
|
|
endif
|
|
|
|
|
2018-05-16 23:28:53 +00:00
|
|
|
if freetype_dep.found()
|
|
|
|
conf.set('HAVE_FREETYPE', 1)
|
2018-06-05 18:59:29 +00:00
|
|
|
check_freetype_funcs = [
|
|
|
|
['FT_Get_Var_Blend_Coordinates', {'deps': freetype_dep}],
|
|
|
|
['FT_Set_Var_Blend_Coordinates', {'deps': freetype_dep}],
|
|
|
|
['FT_Done_MM_Var', {'deps': freetype_dep}],
|
|
|
|
]
|
2018-05-16 23:28:53 +00:00
|
|
|
|
|
|
|
if freetype_dep.type_name() == 'internal'
|
|
|
|
foreach func: check_freetype_funcs
|
|
|
|
name = func[0]
|
|
|
|
conf.set('HAVE_@0@'.format(name.to_upper()), 1)
|
|
|
|
endforeach
|
|
|
|
else
|
|
|
|
check_funcs += check_freetype_funcs
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if fontconfig_dep.found()
|
|
|
|
conf.set('HAVE_FONTCONFIG', 1)
|
|
|
|
endif
|
|
|
|
|
2020-06-03 21:52:10 +00:00
|
|
|
gdi_uniscribe_deps = []
|
2020-07-06 17:57:39 +00:00
|
|
|
# GDI (Uniscribe) (Windows)
|
2020-03-13 10:01:17 +00:00
|
|
|
if host_machine.system() == 'windows' and not get_option('gdi').disabled()
|
2020-07-07 19:56:40 +00:00
|
|
|
gdi_deps_found = true
|
|
|
|
|
|
|
|
foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
|
|
|
|
dep = cpp.find_library(usplib, required: get_option('gdi'),
|
|
|
|
has_headers: ['usp10.h', 'windows.h'])
|
|
|
|
gdi_deps_found = gdi_deps_found and dep.found()
|
|
|
|
gdi_uniscribe_deps += dep
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
if gdi_deps_found
|
2018-11-12 16:56:56 +00:00
|
|
|
conf.set('HAVE_UNISCRIBE', 1)
|
2020-03-13 10:01:17 +00:00
|
|
|
conf.set('HAVE_GDI', 1)
|
2018-11-12 16:56:56 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-07-06 17:57:39 +00:00
|
|
|
# DirectWrite (Windows)
|
2020-07-02 23:58:08 +00:00
|
|
|
directwrite_dep = null_dep
|
2018-11-12 16:56:56 +00:00
|
|
|
if host_machine.system() == 'windows' and not get_option('directwrite').disabled()
|
2020-07-07 19:56:40 +00:00
|
|
|
directwrite_dep = cpp.find_library('dwrite', required: get_option('directwrite'),
|
|
|
|
has_headers: ['dwrite_1.h'])
|
|
|
|
|
|
|
|
if directwrite_dep.found()
|
2018-11-12 16:56:56 +00:00
|
|
|
conf.set('HAVE_DIRECTWRITE', 1)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-07-06 12:00:59 +00:00
|
|
|
# CoreText (macOS)
|
2020-06-03 21:52:10 +00:00
|
|
|
coretext_deps = []
|
2018-11-12 16:56:56 +00:00
|
|
|
if host_machine.system() == 'darwin' and not get_option('coretext').disabled()
|
2020-06-11 14:39:24 +00:00
|
|
|
app_services_dep = dependency('appleframeworks', modules: ['ApplicationServices'], required: false)
|
2018-11-12 16:56:56 +00:00
|
|
|
if cpp.has_type('CTFontRef', prefix: '#include <ApplicationServices/ApplicationServices.h>', dependencies: app_services_dep)
|
2020-06-03 21:52:10 +00:00
|
|
|
coretext_deps += [app_services_dep]
|
2018-11-12 16:56:56 +00:00
|
|
|
conf.set('HAVE_CORETEXT', 1)
|
|
|
|
# On iOS CoreText and CoreGraphics are stand-alone frameworks
|
|
|
|
# Check for a different symbol to avoid getting cached result
|
|
|
|
else
|
2020-06-11 14:39:24 +00:00
|
|
|
coretext_dep = dependency('appleframeworks', modules: ['CoreText'], required: false)
|
|
|
|
coregraphics_dep = dependency('appleframeworks', modules: ['CoreGraphics'], required: false)
|
|
|
|
corefoundation_dep = dependency('appleframeworks', modules: ['CoreFoundation'], required: false)
|
2018-11-12 16:56:56 +00:00
|
|
|
if cpp.has_type('CTRunRef', prefix: '#include <CoreText/CoreText.h>', dependencies: [coretext_dep, coregraphics_dep, corefoundation_dep])
|
2020-06-03 21:52:10 +00:00
|
|
|
coretext_deps += [coretext_dep, coregraphics_dep, corefoundation_dep]
|
2018-11-12 16:56:56 +00:00
|
|
|
conf.set('HAVE_CORETEXT', 1)
|
|
|
|
elif get_option('coretext').enabled()
|
|
|
|
error('CoreText was enabled explicitly, but required headers or frameworks are missing.')
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2018-11-12 16:56:56 +00:00
|
|
|
# threads
|
2020-07-02 23:58:08 +00:00
|
|
|
thread_dep = null_dep
|
2018-05-16 23:28:53 +00:00
|
|
|
if host_machine.system() != 'windows'
|
|
|
|
thread_dep = dependency('threads', required: false)
|
|
|
|
|
|
|
|
if thread_dep.found()
|
|
|
|
conf.set('HAVE_PTHREAD', 1)
|
|
|
|
else
|
|
|
|
check_headers += ['sched.h']
|
|
|
|
check_funcs += ['sched_yield', {'link_with': 'rt'}]
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
conf.set_quoted('PACKAGE_NAME', 'HarfBuzz')
|
|
|
|
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
|
|
|
|
|
|
|
|
foreach check : check_headers
|
|
|
|
name = check[0]
|
|
|
|
|
|
|
|
if cpp.has_header(name)
|
|
|
|
conf.set('HAVE_@0@'.format(name.to_upper().underscorify()), 1)
|
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
2020-06-03 21:52:10 +00:00
|
|
|
harfbuzz_extra_deps = []
|
2018-05-16 23:28:53 +00:00
|
|
|
foreach check : check_funcs
|
|
|
|
name = check[0]
|
2018-06-05 18:59:29 +00:00
|
|
|
opts = check.get(1, {})
|
2018-05-16 23:28:53 +00:00
|
|
|
link_withs = opts.get('link_with', [])
|
2018-06-05 18:59:29 +00:00
|
|
|
check_deps = opts.get('deps', [])
|
2018-05-16 23:28:53 +00:00
|
|
|
extra_deps = []
|
|
|
|
found = true
|
|
|
|
|
|
|
|
# First try without linking
|
2018-06-05 18:59:29 +00:00
|
|
|
found = cpp.has_function(name, dependencies: check_deps)
|
2018-05-16 23:28:53 +00:00
|
|
|
|
|
|
|
if not found and link_withs.length() > 0
|
|
|
|
found = true
|
|
|
|
|
|
|
|
foreach link_with : link_withs
|
|
|
|
dep = cpp.find_library(link_with, required: false)
|
|
|
|
if dep.found()
|
2020-03-24 14:45:09 +00:00
|
|
|
extra_deps += dep
|
2018-05-16 23:28:53 +00:00
|
|
|
else
|
2020-03-24 14:45:09 +00:00
|
|
|
found = false
|
2018-05-16 23:28:53 +00:00
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
if found
|
2018-06-05 18:59:29 +00:00
|
|
|
found = cpp.has_function(name, dependencies: check_deps + extra_deps)
|
2018-05-16 23:28:53 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if found
|
2020-06-03 21:52:10 +00:00
|
|
|
harfbuzz_extra_deps += extra_deps
|
2018-05-16 23:28:53 +00:00
|
|
|
conf.set('HAVE_@0@'.format(name.to_upper()), 1)
|
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
if cpp.links(files('meson-cc-tests/intel-atomic-primitives-test.c'), name: 'Intel atomics')
|
|
|
|
conf.set('HAVE_INTEL_ATOMIC_PRIMITIVES', 1)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if cpp.links(files('meson-cc-tests/solaris-atomic-operations.c'), name: 'Solaris atomic ops')
|
|
|
|
conf.set('HAVE_SOLARIS_ATOMIC_OPS', 1)
|
|
|
|
endif
|
|
|
|
|
|
|
|
subdir('src')
|
|
|
|
subdir('util')
|
2018-11-14 10:12:40 +00:00
|
|
|
|
|
|
|
if not get_option('tests').disabled()
|
|
|
|
subdir('test')
|
|
|
|
endif
|
2018-05-16 23:28:53 +00:00
|
|
|
|
2020-06-28 20:09:43 +00:00
|
|
|
if not get_option('benchmark').disabled() and \
|
2020-07-15 09:02:57 +00:00
|
|
|
get_option('wrap_mode') != 'nodownload' and \
|
|
|
|
host_machine.system() != 'windows' and \
|
|
|
|
not meson.is_subproject() and \
|
|
|
|
not meson.is_cross_build()
|
2020-06-09 13:07:36 +00:00
|
|
|
subdir('perf')
|
|
|
|
endif
|
|
|
|
|
2020-05-16 23:12:08 +00:00
|
|
|
if not get_option('gtk_doc').disabled()
|
|
|
|
subdir('docs')
|
|
|
|
endif
|
|
|
|
|
2018-05-16 23:28:53 +00:00
|
|
|
configure_file(output: 'config.h', configuration: conf)
|
2020-05-21 11:58:24 +00:00
|
|
|
|
|
|
|
summary({'prefix': get_option('prefix'),
|
|
|
|
'bindir': get_option('bindir'),
|
|
|
|
'libdir': get_option('libdir'),
|
|
|
|
'includedir': get_option('includedir'),
|
|
|
|
'datadir': get_option('datadir'),
|
|
|
|
}, section: 'Directories')
|
|
|
|
summary({'Builtin': true,
|
|
|
|
'Glib': conf.get('HAVE_GLIB', 0) == 1,
|
|
|
|
'ICU': conf.get('HAVE_ICU', 0) == 1,
|
|
|
|
}, bool_yn: true, section: 'Unicode callbacks (you want at least one)')
|
|
|
|
summary({'FreeType': conf.get('HAVE_FREETYPE', 0) == 1,
|
|
|
|
}, bool_yn: true, section: 'Font callbacks (the more the merrier)')
|
|
|
|
summary({'Cairo': conf.get('HAVE_CAIRO', 0) == 1,
|
|
|
|
'Fontconfig': conf.get('HAVE_FONTCONFIG', 0) == 1,
|
2020-07-06 17:59:11 +00:00
|
|
|
}, bool_yn: true, section: 'Dependencies used for command-line utilities')
|
2020-05-21 11:58:24 +00:00
|
|
|
summary({'Graphite2': conf.get('HAVE_GRAPHITE2', 0) == 1,
|
2020-06-04 20:38:08 +00:00
|
|
|
}, bool_yn: true, section: 'Additional shapers')
|
2020-05-21 11:58:24 +00:00
|
|
|
summary({'CoreText': conf.get('HAVE_CORETEXT', 0) == 1,
|
|
|
|
'DirectWrite': conf.get('HAVE_DIRECTWRITE', 0) == 1,
|
2020-07-15 08:45:27 +00:00
|
|
|
'GDI/Uniscribe': (conf.get('HAVE_GDI', 0) == 1) and (conf.get('HAVE_UNISCRIBE', 0) == 1),
|
2020-05-21 11:58:24 +00:00
|
|
|
}, bool_yn: true, section: 'Platform shapers (not normally needed)')
|
|
|
|
summary({'Documentation': conf.get('HAVE_GTK_DOC', 0) == 1,
|
|
|
|
'GObject bindings': conf.get('HAVE_GOBJECT', 0) == 1,
|
|
|
|
'Introspection': conf.get('HAVE_INTROSPECTION', 0) == 1,
|
|
|
|
}, bool_yn: true, section: 'Other features')
|