blob: ea9cb32214e98c1647775f3cb52aca56bb4d12a2 [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')
19
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000020if cpp.get_id() == 'msvc'
21 # Ignore several spurious warnings for things HarfBuzz does very commonly.
22 # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
23 # If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
24 # NOTE: Only add warnings here if you are sure they're spurious
25 msvc_args = [
26 '/wd4018', # implicit signed/unsigned conversion
27 '/wd4146', # unary minus on unsigned (beware INT_MIN)
28 '/wd4244', # lossy type conversion (e.g. double -> int)
29 '/wd4305', # truncating type conversion (e.g. double -> float)
30 cpp.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
31 ]
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043032 add_project_arguments(msvc_args, language: ['c', 'cpp'])
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000033 # Disable SAFESEH with MSVC for libs that use external deps that are built with MinGW
34 # noseh_link_args = ['/SAFESEH:NO']
35endif
36
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043037add_project_link_arguments(cpp.get_supported_link_arguments([
38 '-Bsymbolic-functions'
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043039]), language: 'c')
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043040
Tim-Philipp Müllerbb8aaa32020-03-14 01:05:38 +000041add_project_arguments(cpp.get_supported_arguments([
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033042 '-fno-rtti',
43 '-fno-exceptions',
44 '-fno-threadsafe-statics',
45 '-fvisibility-inlines-hidden', # maybe shouldn't be applied for mingw
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043046]), language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033047
48if host_machine.cpu_family() == 'arm' and cpp.alignment('struct { char c; }') != 1
49 if cpp.has_argument('-mstructure-size-boundary=8')
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043050 add_project_arguments('-mstructure-size-boundary=8', language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033051 endif
52endif
53
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020054check_headers = [
55 ['unistd.h'],
56 ['sys/mman.h'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020057 ['stdbool.h'],
58]
59
60check_funcs = [
61 ['atexit'],
62 ['mprotect'],
63 ['sysconf'],
64 ['getpagesize'],
65 ['mmap'],
66 ['isatty'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020067]
68
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043069m_dep = cpp.find_library('m', required: false)
70
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043071if not get_option('freetype').disabled()
72 freetype_dep = dependency('freetype2', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043073
74 if not freetype_dep.found() and cpp.get_id() == 'msvc'
75 if cpp.has_header('ft2build.h')
76 freetype_dep = cpp.find_library('freetype', required: false)
77 endif
78 endif
79
80 if not freetype_dep.found() and get_option('freetype').enabled()
81 freetype_dep = dependency('freetype2', fallback: ['freetype2', 'freetype_dep'])
82 endif
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043083else
84 freetype_dep = dependency('', required: false)
85endif
Chun-wei Fan733414b2020-03-13 16:15:21 +080086
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000087glib_dep = dependency('glib-2.0', required: get_option('glib'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053088 fallback: ['glib', 'libglib_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000089gobject_dep = dependency('gobject-2.0', required: get_option('gobject'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053090 fallback: ['glib', 'libgobject_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000091fontconfig_dep = dependency('fontconfig', required: get_option('fontconfig'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053092 fallback: ['fontconfig', 'fontconfig_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000093graphite2_dep = dependency('graphite2', required: get_option('graphite'))
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020094
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043095if not get_option('icu').disabled()
96 icu_dep = dependency('icu-uc', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043097
98 if not icu_dep.found() and get_option('icu').enabled()
99 icu_dep = dependency('icu-uc', required: cpp.get_id() != 'msvc')
100 endif
101
102 if not icu_dep.found() and cpp.get_id() == 'msvc'
103 if cpp.has_header('unicode/uchar.h') and \
104 cpp.has_header('unicode/unorm2.h') and \
105 cpp.has_header('unicode/ustring.h') and \
106 cpp.has_header('unicode/utf16.h') and \
107 cpp.has_header('unicode/uversion.h') and \
108 cpp.has_header('unicode/uscript.h')
109 if get_option('buildtype') == 'debug'
110 icu_dep = cpp.find_library('icuucd', required: get_option('icu'))
111 else
112 icu_dep = cpp.find_library('icuuc', required: get_option('icu'))
113 endif
Chun-wei Fan5efce602020-03-13 16:40:20 +0800114 else
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430115 if get_option('icu').enabled()
116 error('ICU headers and libraries must be present to build ICU support')
117 endif
Chun-wei Fan5efce602020-03-13 16:40:20 +0800118 endif
119 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430120else
121 icu_dep = dependency('', required: false)
Chun-wei Fan5efce602020-03-13 16:40:20 +0800122endif
123
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430124if not get_option('cairo').disabled()
125 cairo_dep = dependency('cairo', required: false)
Chun-wei Fan9d0e6ae2020-03-13 16:56:55 +0800126
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430127 if not cairo_dep.found() and cpp.get_id() == 'msvc'
128 if cpp.has_header('cairo.h')
129 cairo_dep = cpp.find_library('cairo')
Chun-wei Fan9d0e6ae2020-03-13 16:56:55 +0800130 endif
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530131 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430132
133 if not cairo_dep.found() and get_option('cairo').enabled()
134 cairo_dep = dependency('cairo', fallback: ['cairo', 'libcairo_dep'])
135 endif
136
137 # Ensure that cairo-ft is fetched from the same library as cairo itself
138 if cairo_dep.found()
139 if cairo_dep.type_name() == 'pkgconfig'
140 cairo_ft_dep = dependency('cairo-ft', required: get_option('cairo'))
141 else
142 if cpp.has_header('cairo-ft.h') and \
143 cpp.has_function('cairo_ft_font_face_create_for_ft_face', dependencies: cairo_dep)
144 cairo_ft_dep = cairo_dep
145 else
146 cairo_ft_dep = dependency('', required: false)
147 endif
148 endif
149 else
150 cairo_ft_dep = dependency('', required: false)
151 endif
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530152else
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430153 cairo_dep = dependency('', required: false)
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530154 cairo_ft_dep = dependency('', required: false)
155endif
156
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200157conf = configuration_data()
Tim-Philipp Müller618584e2018-11-14 20:19:36 +0000158incconfig = include_directories('.')
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000159
160add_project_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200161
162warn_cflags = [
163 '-Wno-non-virtual-dtor',
164]
165
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000166cpp_args = cpp.get_supported_arguments(warn_cflags)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200167
168if glib_dep.found()
169 conf.set('HAVE_GLIB', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200170endif
171
172if gobject_dep.found()
173 conf.set('HAVE_GOBJECT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200174endif
175
176if cairo_dep.found()
177 conf.set('HAVE_CAIRO', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200178endif
179
180if cairo_ft_dep.found()
181 conf.set('HAVE_CAIRO_FT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200182endif
183
184if graphite2_dep.found()
185 conf.set('HAVE_GRAPHITE2', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200186endif
187
188if icu_dep.found()
189 conf.set('HAVE_ICU', 1)
Ebrahim Byagowic6b3f732020-04-19 00:54:24 +0430190endif
191
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430192if get_option('icu_builtin')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200193 conf.set('HAVE_ICU_BUILTIN', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200194endif
195
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430196if get_option('experimental_api')
Ebrahim Byagowi750bb732020-04-21 01:13:13 +0430197 conf.set('HB_EXPERIMENTAL_API', 1)
198endif
199
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200200if freetype_dep.found()
201 conf.set('HAVE_FREETYPE', 1)
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200202 check_freetype_funcs = [
203 ['FT_Get_Var_Blend_Coordinates', {'deps': freetype_dep}],
204 ['FT_Set_Var_Blend_Coordinates', {'deps': freetype_dep}],
205 ['FT_Done_MM_Var', {'deps': freetype_dep}],
206 ]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200207
208 if freetype_dep.type_name() == 'internal'
209 foreach func: check_freetype_funcs
210 name = func[0]
211 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
212 endforeach
213 else
214 check_funcs += check_freetype_funcs
215 endif
216endif
217
218if fontconfig_dep.found()
219 conf.set('HAVE_FONTCONFIG', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200220endif
221
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200222gdi_uniscribe_deps = []
Chun-wei Fan838346c2020-03-13 18:01:17 +0800223# GDI (uniscribe) (windows)
224if host_machine.system() == 'windows' and not get_option('gdi').disabled()
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000225 # TODO: make nicer once we have https://github.com/mesonbuild/meson/issues/3940
226 if cpp.has_header('usp10.h') and cpp.has_header('windows.h')
227 foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200228 gdi_uniscribe_deps += cpp.find_library(usplib, required: true)
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000229 endforeach
230 conf.set('HAVE_UNISCRIBE', 1)
Chun-wei Fan838346c2020-03-13 18:01:17 +0800231 conf.set('HAVE_GDI', 1)
232 elif get_option('gdi').enabled()
233 error('gdi was enabled explicitly, but some required headers are missing.')
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000234 endif
235endif
236
Chun-wei Fan7baa8e02020-03-13 16:21:25 +0800237# DirectWrite (windows)
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200238directwrite_dep = dependency('', required: false)
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000239if host_machine.system() == 'windows' and not get_option('directwrite').disabled()
Chun-wei Fan7baa8e02020-03-13 16:21:25 +0800240 if cpp.has_header('dwrite_1.h')
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200241 directwrite_dep = cpp.find_library('dwrite', required: true)
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000242 conf.set('HAVE_DIRECTWRITE', 1)
243 elif get_option('directwrite').enabled()
244 error('DirectWrite was enabled explicitly, but required header is missing.')
245 endif
246endif
247
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000248# CoreText (macOS) - FIXME: untested
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200249coretext_deps = []
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000250if host_machine.system() == 'darwin' and not get_option('coretext').disabled()
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430251 app_services_dep = dependency('appleframeworks', modules: ['ApplicationServices'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000252 if cpp.has_type('CTFontRef', prefix: '#include <ApplicationServices/ApplicationServices.h>', dependencies: app_services_dep)
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200253 coretext_deps += [app_services_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000254 conf.set('HAVE_CORETEXT', 1)
255 # On iOS CoreText and CoreGraphics are stand-alone frameworks
256 # Check for a different symbol to avoid getting cached result
257 else
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430258 coretext_dep = dependency('appleframeworks', modules: ['CoreText'], required: false)
259 coregraphics_dep = dependency('appleframeworks', modules: ['CoreGraphics'], required: false)
260 corefoundation_dep = dependency('appleframeworks', modules: ['CoreFoundation'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000261 if cpp.has_type('CTRunRef', prefix: '#include <CoreText/CoreText.h>', dependencies: [coretext_dep, coregraphics_dep, corefoundation_dep])
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200262 coretext_deps += [coretext_dep, coregraphics_dep, corefoundation_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000263 conf.set('HAVE_CORETEXT', 1)
264 elif get_option('coretext').enabled()
265 error('CoreText was enabled explicitly, but required headers or frameworks are missing.')
266 endif
267 endif
268endif
269
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000270# threads
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200271thread_dep = dependency('', required: false)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200272if host_machine.system() != 'windows'
273 thread_dep = dependency('threads', required: false)
274
275 if thread_dep.found()
276 conf.set('HAVE_PTHREAD', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200277 else
278 check_headers += ['sched.h']
279 check_funcs += ['sched_yield', {'link_with': 'rt'}]
280 endif
281endif
282
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200283conf.set('HAVE_OT', 1)
284conf.set('HAVE_FALLBACK', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200285conf.set_quoted('PACKAGE_NAME', 'HarfBuzz')
286conf.set_quoted('PACKAGE_VERSION', meson.project_version())
287
288foreach check : check_headers
289 name = check[0]
290
291 if cpp.has_header(name)
292 conf.set('HAVE_@0@'.format(name.to_upper().underscorify()), 1)
293 endif
294endforeach
295
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200296harfbuzz_extra_deps = []
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200297foreach check : check_funcs
298 name = check[0]
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200299 opts = check.get(1, {})
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200300 link_withs = opts.get('link_with', [])
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200301 check_deps = opts.get('deps', [])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200302 extra_deps = []
303 found = true
304
305 # First try without linking
306
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200307 found = cpp.has_function(name, dependencies: check_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200308
309 if not found and link_withs.length() > 0
310 found = true
311
312 foreach link_with : link_withs
313 dep = cpp.find_library(link_with, required: false)
314 if dep.found()
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430315 extra_deps += dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200316 else
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430317 found = false
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200318 endif
319 endforeach
320
321 if found
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200322 found = cpp.has_function(name, dependencies: check_deps + extra_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200323 endif
324 endif
325
326 if found
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200327 harfbuzz_extra_deps += extra_deps
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200328 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
329 endif
330endforeach
331
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200332if cpp.links(files('meson-cc-tests/intel-atomic-primitives-test.c'), name: 'Intel atomics')
333 conf.set('HAVE_INTEL_ATOMIC_PRIMITIVES', 1)
334endif
335
336if cpp.links(files('meson-cc-tests/solaris-atomic-operations.c'), name: 'Solaris atomic ops')
337 conf.set('HAVE_SOLARIS_ATOMIC_OPS', 1)
338endif
339
340subdir('src')
341subdir('util')
Tim-Philipp Müller6147df32018-11-14 10:12:40 +0000342
343if not get_option('tests').disabled()
344 subdir('test')
345endif
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200346
Ebrahim Byagowi702847a2020-06-29 00:39:43 +0430347if not get_option('benchmark').disabled() and \
348 ((host_machine.system() != 'windows' and \
349 not meson.is_subproject() and \
350 not meson.is_cross_build()) or get_option('benchmark').enabled())
Ebrahim Byagowi95b10812020-06-09 17:37:36 +0430351 subdir('perf')
352endif
353
Tim-Philipp Müller3dd7b212020-05-17 00:12:08 +0100354if not get_option('gtk_doc').disabled()
355 subdir('docs')
356endif
357
Ebrahim Byagowia6bcc572020-06-20 14:19:12 +0430358if not meson.is_subproject()
359 meson.add_dist_script('write-tarball-revision.py')
360endif
Ebrahim Byagowi03bd3ef2020-06-19 10:32:46 +0430361
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200362configure_file(output: 'config.h', configuration: conf)
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430363
364summary({'prefix': get_option('prefix'),
365 'bindir': get_option('bindir'),
366 'libdir': get_option('libdir'),
367 'includedir': get_option('includedir'),
368 'datadir': get_option('datadir'),
369 }, section: 'Directories')
370summary({'Builtin': true,
371 'Glib': conf.get('HAVE_GLIB', 0) == 1,
372 'ICU': conf.get('HAVE_ICU', 0) == 1,
373 }, bool_yn: true, section: 'Unicode callbacks (you want at least one)')
374summary({'FreeType': conf.get('HAVE_FREETYPE', 0) == 1,
375 }, bool_yn: true, section: 'Font callbacks (the more the merrier)')
376summary({'Cairo': conf.get('HAVE_CAIRO', 0) == 1,
377 'Fontconfig': conf.get('HAVE_FONTCONFIG', 0) == 1,
378 }, bool_yn: true, section: 'Tools used for command-line utilities')
379summary({'Graphite2': conf.get('HAVE_GRAPHITE2', 0) == 1,
Ebrahim Byagowi65462c42020-06-05 01:08:08 +0430380 }, bool_yn: true, section: 'Additional shapers')
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430381summary({'CoreText': conf.get('HAVE_CORETEXT', 0) == 1,
382 'DirectWrite': conf.get('HAVE_DIRECTWRITE', 0) == 1,
383 'GDI': conf.get('HAVE_GDI', 0) == 1,
384 'Uniscribe': conf.get('HAVE_UNISCRIBE', 0) == 1,
385 }, bool_yn: true, section: 'Platform shapers (not normally needed)')
386summary({'Documentation': conf.get('HAVE_GTK_DOC', 0) == 1,
387 'GObject bindings': conf.get('HAVE_GOBJECT', 0) == 1,
388 'Introspection': conf.get('HAVE_INTROSPECTION', 0) == 1,
389 }, bool_yn: true, section: 'Other features')