blob: 997b8a0f552212defc66aad40c0418dffee1c1f9 [file] [log] [blame]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +02001project('harfbuzz', 'c', 'cpp',
Ebrahim Byagowif7562672020-05-21 17:01:04 +04302 meson_version: '>= 0.53.0',
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +04303 default_options: ['cpp_std=c++11'],
Ebrahim Byagowie4203c12020-06-22 05:03:27 +04304 version: '2.6.8')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +02005
Ebrahim Byagowi8c84fee2020-06-22 04:04:40 +04306warning('Meson is not our main build system for building *nix packages yet we encourage packagers to test it and give us feedback about it.')
Ebrahim Byagowi466dbaa2020-03-24 19:52:43 +04307
Tim-Philipp Müller535186f2018-12-03 20:51:06 +01008hb_version_arr = meson.project_version().split('.')
9hb_version_major = hb_version_arr[0].to_int()
10hb_version_minor = hb_version_arr[1].to_int()
11hb_version_micro = hb_version_arr[2].to_int()
12
13# libtool versioning
14hb_version_int = hb_version_major*10000 + hb_version_minor*100 + hb_version_micro
Ebrahim Byagowi53b0a182020-06-22 18:04:01 +043015hb_libtool_version_info = '@0@:0:@0@'.format(hb_version_int)
Tim-Philipp Müller535186f2018-12-03 20:51:06 +010016
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020017pkgmod = import('pkgconfig')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020018cpp = meson.get_compiler('cpp')
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +043019null_dep = dependency('', required: false)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020020
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000021if cpp.get_id() == 'msvc'
22 # Ignore several spurious warnings for things HarfBuzz does very commonly.
23 # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
24 # If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
25 # NOTE: Only add warnings here if you are sure they're spurious
26 msvc_args = [
27 '/wd4018', # implicit signed/unsigned conversion
28 '/wd4146', # unary minus on unsigned (beware INT_MIN)
29 '/wd4244', # lossy type conversion (e.g. double -> int)
30 '/wd4305', # truncating type conversion (e.g. double -> float)
31 cpp.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
32 ]
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043033 add_project_arguments(msvc_args, language: ['c', 'cpp'])
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000034 # Disable SAFESEH with MSVC for libs that use external deps that are built with MinGW
35 # noseh_link_args = ['/SAFESEH:NO']
36endif
37
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043038add_project_link_arguments(cpp.get_supported_link_arguments([
39 '-Bsymbolic-functions'
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043040]), language: 'c')
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043041
Tim-Philipp Müllerbb8aaa32020-03-14 01:05:38 +000042add_project_arguments(cpp.get_supported_arguments([
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033043 '-fno-rtti',
44 '-fno-exceptions',
45 '-fno-threadsafe-statics',
46 '-fvisibility-inlines-hidden', # maybe shouldn't be applied for mingw
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043047]), language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033048
49if host_machine.cpu_family() == 'arm' and cpp.alignment('struct { char c; }') != 1
50 if cpp.has_argument('-mstructure-size-boundary=8')
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043051 add_project_arguments('-mstructure-size-boundary=8', language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033052 endif
53endif
54
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020055check_headers = [
56 ['unistd.h'],
57 ['sys/mman.h'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020058 ['stdbool.h'],
59]
60
61check_funcs = [
62 ['atexit'],
63 ['mprotect'],
64 ['sysconf'],
65 ['getpagesize'],
66 ['mmap'],
67 ['isatty'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020068]
69
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043070m_dep = cpp.find_library('m', required: false)
71
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +043072freetype_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043073if not get_option('freetype').disabled()
74 freetype_dep = dependency('freetype2', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043075
76 if not freetype_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens33252ce2020-06-24 13:40:32 -040077 freetype_dep = cpp.find_library('freetype', required: false,
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043078 has_headers: ['ft2build.h'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043079 endif
80
Xavier Claessensc4bbe892020-06-24 13:40:55 -040081 if not freetype_dep.found()
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043082 # https://github.com/harfbuzz/harfbuzz/pull/2498
83 freetype_dep = dependency('freetype2', required: get_option('freetype'),
84 fallback: ['freetype2', 'freetype_dep'],
85 default_options: ['harfbuzz=disabled'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043086 endif
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043087endif
Chun-wei Fan733414b2020-03-13 16:15:21 +080088
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000089glib_dep = dependency('glib-2.0', required: get_option('glib'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053090 fallback: ['glib', 'libglib_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000091gobject_dep = dependency('gobject-2.0', required: get_option('gobject'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053092 fallback: ['glib', 'libgobject_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000093fontconfig_dep = dependency('fontconfig', required: get_option('fontconfig'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053094 fallback: ['fontconfig', 'fontconfig_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000095graphite2_dep = dependency('graphite2', required: get_option('graphite'))
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020096
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +043097icu_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043098if not get_option('icu').disabled()
99 icu_dep = dependency('icu-uc', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430100
101 if not icu_dep.found() and get_option('icu').enabled()
102 icu_dep = dependency('icu-uc', required: cpp.get_id() != 'msvc')
103 endif
104
105 if not icu_dep.found() and cpp.get_id() == 'msvc'
106 if cpp.has_header('unicode/uchar.h') and \
107 cpp.has_header('unicode/unorm2.h') and \
108 cpp.has_header('unicode/ustring.h') and \
109 cpp.has_header('unicode/utf16.h') and \
110 cpp.has_header('unicode/uversion.h') and \
111 cpp.has_header('unicode/uscript.h')
112 if get_option('buildtype') == 'debug'
113 icu_dep = cpp.find_library('icuucd', required: get_option('icu'))
114 else
115 icu_dep = cpp.find_library('icuuc', required: get_option('icu'))
116 endif
Chun-wei Fan5efce602020-03-13 16:40:20 +0800117 else
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430118 if get_option('icu').enabled()
119 error('ICU headers and libraries must be present to build ICU support')
120 endif
Chun-wei Fan5efce602020-03-13 16:40:20 +0800121 endif
122 endif
123endif
124
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +0430125cairo_dep = null_dep
126cairo_ft_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430127if not get_option('cairo').disabled()
128 cairo_dep = dependency('cairo', required: false)
Chun-wei Fan9d0e6ae2020-03-13 16:56:55 +0800129
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430130 if not cairo_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens571365d2020-06-24 14:11:07 -0400131 cairo_dep = cpp.find_library('cairo', required: false,
132 has_headers: ['cairo.h'])
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530133 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430134
Xavier Claessens00c652a2020-06-24 14:11:32 -0400135 if not cairo_dep.found()
136 # Note that we don't have harfbuzz -> cairo -> freetype2 -> harfbuzz fallback
137 # dependency cycle here because we have configured freetype2 above with
138 # harfbuzz support disabled, so when cairo will lookup freetype2 dependency
139 # it will be forced to use that one.
Xavier Claessens01fa55e2020-06-24 15:56:09 -0400140 cairo_dep = dependency('cairo', fallback: ['cairo', 'libcairo_dep'],
141 required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430142 endif
143
144 # Ensure that cairo-ft is fetched from the same library as cairo itself
145 if cairo_dep.found()
Ebrahim Byagowi05ab0732020-07-02 23:54:09 +0430146 if cairo_dep.type_name() == 'internal'
147 # It is true at least for the port we have
148 cairo_ft_dep = cairo_dep
149 elif cairo_dep.type_name() == 'library' and \
150 cpp.has_function('cairo_ft_font_face_create_for_ft_face',
151 prefix: '#include <cairo-ft.h>',
152 dependencies: cairo_dep)
153 cairo_ft_dep = cairo_dep
154 else # including the most important type for us, 'pkgconfig'
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430155 cairo_ft_dep = dependency('cairo-ft', required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430156 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430157 endif
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530158endif
159
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200160conf = configuration_data()
Tim-Philipp Müller618584e2018-11-14 20:19:36 +0000161incconfig = include_directories('.')
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000162
163add_project_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200164
165warn_cflags = [
166 '-Wno-non-virtual-dtor',
167]
168
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000169cpp_args = cpp.get_supported_arguments(warn_cflags)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200170
171if glib_dep.found()
172 conf.set('HAVE_GLIB', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200173endif
174
175if gobject_dep.found()
176 conf.set('HAVE_GOBJECT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200177endif
178
179if cairo_dep.found()
180 conf.set('HAVE_CAIRO', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200181endif
182
183if cairo_ft_dep.found()
184 conf.set('HAVE_CAIRO_FT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200185endif
186
187if graphite2_dep.found()
188 conf.set('HAVE_GRAPHITE2', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200189endif
190
191if icu_dep.found()
192 conf.set('HAVE_ICU', 1)
Ebrahim Byagowic6b3f732020-04-19 00:54:24 +0430193endif
194
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430195if get_option('icu_builtin')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200196 conf.set('HAVE_ICU_BUILTIN', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200197endif
198
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430199if get_option('experimental_api')
Ebrahim Byagowi750bb732020-04-21 01:13:13 +0430200 conf.set('HB_EXPERIMENTAL_API', 1)
201endif
202
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200203if freetype_dep.found()
204 conf.set('HAVE_FREETYPE', 1)
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200205 check_freetype_funcs = [
206 ['FT_Get_Var_Blend_Coordinates', {'deps': freetype_dep}],
207 ['FT_Set_Var_Blend_Coordinates', {'deps': freetype_dep}],
208 ['FT_Done_MM_Var', {'deps': freetype_dep}],
209 ]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200210
211 if freetype_dep.type_name() == 'internal'
212 foreach func: check_freetype_funcs
213 name = func[0]
214 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
215 endforeach
216 else
217 check_funcs += check_freetype_funcs
218 endif
219endif
220
221if fontconfig_dep.found()
222 conf.set('HAVE_FONTCONFIG', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200223endif
224
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200225gdi_uniscribe_deps = []
Chun-wei Fan838346c2020-03-13 18:01:17 +0800226# GDI (uniscribe) (windows)
227if host_machine.system() == 'windows' and not get_option('gdi').disabled()
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000228 # TODO: make nicer once we have https://github.com/mesonbuild/meson/issues/3940
229 if cpp.has_header('usp10.h') and cpp.has_header('windows.h')
230 foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200231 gdi_uniscribe_deps += cpp.find_library(usplib, required: true)
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000232 endforeach
233 conf.set('HAVE_UNISCRIBE', 1)
Chun-wei Fan838346c2020-03-13 18:01:17 +0800234 conf.set('HAVE_GDI', 1)
235 elif get_option('gdi').enabled()
236 error('gdi was enabled explicitly, but some required headers are missing.')
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000237 endif
238endif
239
Chun-wei Fan7baa8e02020-03-13 16:21:25 +0800240# DirectWrite (windows)
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +0430241directwrite_dep = null_dep
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000242if host_machine.system() == 'windows' and not get_option('directwrite').disabled()
Chun-wei Fan7baa8e02020-03-13 16:21:25 +0800243 if cpp.has_header('dwrite_1.h')
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200244 directwrite_dep = cpp.find_library('dwrite', required: true)
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000245 conf.set('HAVE_DIRECTWRITE', 1)
246 elif get_option('directwrite').enabled()
247 error('DirectWrite was enabled explicitly, but required header is missing.')
248 endif
249endif
250
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000251# CoreText (macOS) - FIXME: untested
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200252coretext_deps = []
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000253if host_machine.system() == 'darwin' and not get_option('coretext').disabled()
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430254 app_services_dep = dependency('appleframeworks', modules: ['ApplicationServices'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000255 if cpp.has_type('CTFontRef', prefix: '#include <ApplicationServices/ApplicationServices.h>', dependencies: app_services_dep)
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200256 coretext_deps += [app_services_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000257 conf.set('HAVE_CORETEXT', 1)
258 # On iOS CoreText and CoreGraphics are stand-alone frameworks
259 # Check for a different symbol to avoid getting cached result
260 else
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430261 coretext_dep = dependency('appleframeworks', modules: ['CoreText'], required: false)
262 coregraphics_dep = dependency('appleframeworks', modules: ['CoreGraphics'], required: false)
263 corefoundation_dep = dependency('appleframeworks', modules: ['CoreFoundation'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000264 if cpp.has_type('CTRunRef', prefix: '#include <CoreText/CoreText.h>', dependencies: [coretext_dep, coregraphics_dep, corefoundation_dep])
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200265 coretext_deps += [coretext_dep, coregraphics_dep, corefoundation_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000266 conf.set('HAVE_CORETEXT', 1)
267 elif get_option('coretext').enabled()
268 error('CoreText was enabled explicitly, but required headers or frameworks are missing.')
269 endif
270 endif
271endif
272
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000273# threads
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +0430274thread_dep = null_dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200275if host_machine.system() != 'windows'
276 thread_dep = dependency('threads', required: false)
277
278 if thread_dep.found()
279 conf.set('HAVE_PTHREAD', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200280 else
281 check_headers += ['sched.h']
282 check_funcs += ['sched_yield', {'link_with': 'rt'}]
283 endif
284endif
285
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200286conf.set('HAVE_OT', 1)
287conf.set('HAVE_FALLBACK', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200288conf.set_quoted('PACKAGE_NAME', 'HarfBuzz')
289conf.set_quoted('PACKAGE_VERSION', meson.project_version())
290
291foreach check : check_headers
292 name = check[0]
293
294 if cpp.has_header(name)
295 conf.set('HAVE_@0@'.format(name.to_upper().underscorify()), 1)
296 endif
297endforeach
298
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200299harfbuzz_extra_deps = []
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200300foreach check : check_funcs
301 name = check[0]
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200302 opts = check.get(1, {})
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200303 link_withs = opts.get('link_with', [])
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200304 check_deps = opts.get('deps', [])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200305 extra_deps = []
306 found = true
307
308 # First try without linking
309
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200310 found = cpp.has_function(name, dependencies: check_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200311
312 if not found and link_withs.length() > 0
313 found = true
314
315 foreach link_with : link_withs
316 dep = cpp.find_library(link_with, required: false)
317 if dep.found()
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430318 extra_deps += dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200319 else
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430320 found = false
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200321 endif
322 endforeach
323
324 if found
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200325 found = cpp.has_function(name, dependencies: check_deps + extra_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200326 endif
327 endif
328
329 if found
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200330 harfbuzz_extra_deps += extra_deps
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200331 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
332 endif
333endforeach
334
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200335if cpp.links(files('meson-cc-tests/intel-atomic-primitives-test.c'), name: 'Intel atomics')
336 conf.set('HAVE_INTEL_ATOMIC_PRIMITIVES', 1)
337endif
338
339if cpp.links(files('meson-cc-tests/solaris-atomic-operations.c'), name: 'Solaris atomic ops')
340 conf.set('HAVE_SOLARIS_ATOMIC_OPS', 1)
341endif
342
343subdir('src')
344subdir('util')
Tim-Philipp Müller6147df32018-11-14 10:12:40 +0000345
346if not get_option('tests').disabled()
347 subdir('test')
348endif
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200349
Ebrahim Byagowi702847a2020-06-29 00:39:43 +0430350if not get_option('benchmark').disabled() and \
351 ((host_machine.system() != 'windows' and \
352 not meson.is_subproject() and \
353 not meson.is_cross_build()) or get_option('benchmark').enabled())
Ebrahim Byagowi95b10812020-06-09 17:37:36 +0430354 subdir('perf')
355endif
356
Tim-Philipp Müller3dd7b212020-05-17 00:12:08 +0100357if not get_option('gtk_doc').disabled()
358 subdir('docs')
359endif
360
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200361configure_file(output: 'config.h', configuration: conf)
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430362
363summary({'prefix': get_option('prefix'),
364 'bindir': get_option('bindir'),
365 'libdir': get_option('libdir'),
366 'includedir': get_option('includedir'),
367 'datadir': get_option('datadir'),
368 }, section: 'Directories')
369summary({'Builtin': true,
370 'Glib': conf.get('HAVE_GLIB', 0) == 1,
371 'ICU': conf.get('HAVE_ICU', 0) == 1,
372 }, bool_yn: true, section: 'Unicode callbacks (you want at least one)')
373summary({'FreeType': conf.get('HAVE_FREETYPE', 0) == 1,
374 }, bool_yn: true, section: 'Font callbacks (the more the merrier)')
375summary({'Cairo': conf.get('HAVE_CAIRO', 0) == 1,
376 'Fontconfig': conf.get('HAVE_FONTCONFIG', 0) == 1,
377 }, bool_yn: true, section: 'Tools used for command-line utilities')
378summary({'Graphite2': conf.get('HAVE_GRAPHITE2', 0) == 1,
Ebrahim Byagowi65462c42020-06-05 01:08:08 +0430379 }, bool_yn: true, section: 'Additional shapers')
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430380summary({'CoreText': conf.get('HAVE_CORETEXT', 0) == 1,
381 'DirectWrite': conf.get('HAVE_DIRECTWRITE', 0) == 1,
382 'GDI': conf.get('HAVE_GDI', 0) == 1,
383 'Uniscribe': conf.get('HAVE_UNISCRIBE', 0) == 1,
384 }, bool_yn: true, section: 'Platform shapers (not normally needed)')
385summary({'Documentation': conf.get('HAVE_GTK_DOC', 0) == 1,
386 'GObject bindings': conf.get('HAVE_GOBJECT', 0) == 1,
387 'Introspection': conf.get('HAVE_INTROSPECTION', 0) == 1,
388 }, bool_yn: true, section: 'Other features')