blob: d24cd2cb213a7b0618b47961feb595d6c972667d [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 Byagowia08ba462020-07-06 00:31:42 +04303 version: '2.6.8',
Ebrahim Byagowiddb103e2020-07-06 22:27:39 +04304 default_options: [
5 'cpp_std=c++11',
6 'wrap_mode=nofallback', # https://github.com/harfbuzz/harfbuzz/pull/2548
7 ],
Ebrahim Byagowia08ba462020-07-06 00:31:42 +04308)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +02009
Ebrahim Byagowi8c84fee2020-06-22 04:04:40 +043010warning('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 +043011
Tim-Philipp Müller535186f2018-12-03 20:51:06 +010012hb_version_arr = meson.project_version().split('.')
13hb_version_major = hb_version_arr[0].to_int()
14hb_version_minor = hb_version_arr[1].to_int()
15hb_version_micro = hb_version_arr[2].to_int()
16
17# libtool versioning
18hb_version_int = hb_version_major*10000 + hb_version_minor*100 + hb_version_micro
Ebrahim Byagowi53b0a182020-06-22 18:04:01 +043019hb_libtool_version_info = '@0@:0:@0@'.format(hb_version_int)
Tim-Philipp Müller535186f2018-12-03 20:51:06 +010020
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020021pkgmod = import('pkgconfig')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020022cpp = meson.get_compiler('cpp')
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +043023null_dep = dependency('', required: false)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020024
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000025if cpp.get_id() == 'msvc'
26 # Ignore several spurious warnings for things HarfBuzz does very commonly.
27 # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
28 # If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
29 # NOTE: Only add warnings here if you are sure they're spurious
30 msvc_args = [
Ebrahim Byagowiddb103e2020-07-06 22:27:39 +043031 '/wd4018', # implicit signed/unsigned conversion
32 '/wd4146', # unary minus on unsigned (beware INT_MIN)
33 '/wd4244', # lossy type conversion (e.g. double -> int)
34 '/wd4305', # truncating type conversion (e.g. double -> float)
35 cpp.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000036 ]
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043037 add_project_arguments(msvc_args, language: ['c', 'cpp'])
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000038 # Disable SAFESEH with MSVC for libs that use external deps that are built with MinGW
39 # noseh_link_args = ['/SAFESEH:NO']
40endif
41
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043042add_project_link_arguments(cpp.get_supported_link_arguments([
43 '-Bsymbolic-functions'
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043044]), language: 'c')
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043045
Tim-Philipp Müllerbb8aaa32020-03-14 01:05:38 +000046add_project_arguments(cpp.get_supported_arguments([
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033047 '-fno-rtti',
48 '-fno-exceptions',
49 '-fno-threadsafe-statics',
50 '-fvisibility-inlines-hidden', # maybe shouldn't be applied for mingw
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043051]), language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033052
53if host_machine.cpu_family() == 'arm' and cpp.alignment('struct { char c; }') != 1
54 if cpp.has_argument('-mstructure-size-boundary=8')
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043055 add_project_arguments('-mstructure-size-boundary=8', language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033056 endif
57endif
58
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020059check_headers = [
60 ['unistd.h'],
61 ['sys/mman.h'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020062 ['stdbool.h'],
63]
64
65check_funcs = [
66 ['atexit'],
67 ['mprotect'],
68 ['sysconf'],
69 ['getpagesize'],
70 ['mmap'],
71 ['isatty'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020072]
73
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043074m_dep = cpp.find_library('m', required: false)
75
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +043076freetype_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043077if not get_option('freetype').disabled()
78 freetype_dep = dependency('freetype2', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043079
80 if not freetype_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens33252ce2020-06-24 13:40:32 -040081 freetype_dep = cpp.find_library('freetype', required: false,
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043082 has_headers: ['ft2build.h'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043083 endif
84
Xavier Claessensc4bbe892020-06-24 13:40:55 -040085 if not freetype_dep.found()
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043086 # https://github.com/harfbuzz/harfbuzz/pull/2498
87 freetype_dep = dependency('freetype2', required: get_option('freetype'),
88 fallback: ['freetype2', 'freetype_dep'],
89 default_options: ['harfbuzz=disabled'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043090 endif
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043091endif
Chun-wei Fan733414b2020-03-13 16:15:21 +080092
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000093glib_dep = dependency('glib-2.0', required: get_option('glib'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053094 fallback: ['glib', 'libglib_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000095gobject_dep = dependency('gobject-2.0', required: get_option('gobject'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053096 fallback: ['glib', 'libgobject_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000097fontconfig_dep = dependency('fontconfig', required: get_option('fontconfig'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053098 fallback: ['fontconfig', 'fontconfig_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000099graphite2_dep = dependency('graphite2', required: get_option('graphite'))
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200100
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +0430101icu_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430102if not get_option('icu').disabled()
103 icu_dep = dependency('icu-uc', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430104
105 if not icu_dep.found() and get_option('icu').enabled()
106 icu_dep = dependency('icu-uc', required: cpp.get_id() != 'msvc')
107 endif
108
109 if not icu_dep.found() and cpp.get_id() == 'msvc'
Ebrahim Byagowif62f4e32020-07-08 00:26:40 +0430110 icu_dep = cpp.find_library(get_option('buildtype') == 'debug' ? 'icuucd' : 'icuuc',
111 required: get_option('icu'),
112 has_headers: ['unicode/uchar.h',
113 'unicode/unorm2.h',
114 'unicode/ustring.h',
115 'unicode/utf16.h',
116 'unicode/uversion.h',
117 'unicode/uscript.h'])
Chun-wei Fan5efce602020-03-13 16:40:20 +0800118 endif
119endif
120
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +0430121cairo_dep = null_dep
122cairo_ft_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430123if not get_option('cairo').disabled()
124 cairo_dep = dependency('cairo', required: false)
Chun-wei Fan9d0e6ae2020-03-13 16:56:55 +0800125
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430126 if not cairo_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens571365d2020-06-24 14:11:07 -0400127 cairo_dep = cpp.find_library('cairo', required: false,
128 has_headers: ['cairo.h'])
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530129 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430130
Xavier Claessens00c652a2020-06-24 14:11:32 -0400131 if not cairo_dep.found()
132 # Note that we don't have harfbuzz -> cairo -> freetype2 -> harfbuzz fallback
133 # dependency cycle here because we have configured freetype2 above with
134 # harfbuzz support disabled, so when cairo will lookup freetype2 dependency
135 # it will be forced to use that one.
Xavier Claessens01fa55e2020-06-24 15:56:09 -0400136 cairo_dep = dependency('cairo', fallback: ['cairo', 'libcairo_dep'],
137 required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430138 endif
139
140 # Ensure that cairo-ft is fetched from the same library as cairo itself
141 if cairo_dep.found()
Ebrahim Byagowi05ab0732020-07-02 23:54:09 +0430142 if cairo_dep.type_name() == 'internal'
143 # It is true at least for the port we have
144 cairo_ft_dep = cairo_dep
145 elif cairo_dep.type_name() == 'library' and \
146 cpp.has_function('cairo_ft_font_face_create_for_ft_face',
147 prefix: '#include <cairo-ft.h>',
148 dependencies: cairo_dep)
149 cairo_ft_dep = cairo_dep
150 else # including the most important type for us, 'pkgconfig'
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430151 cairo_ft_dep = dependency('cairo-ft', required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430152 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430153 endif
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530154endif
155
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200156conf = configuration_data()
Tim-Philipp Müller618584e2018-11-14 20:19:36 +0000157incconfig = include_directories('.')
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000158
159add_project_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200160
161warn_cflags = [
162 '-Wno-non-virtual-dtor',
163]
164
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000165cpp_args = cpp.get_supported_arguments(warn_cflags)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200166
167if glib_dep.found()
168 conf.set('HAVE_GLIB', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200169endif
170
171if gobject_dep.found()
172 conf.set('HAVE_GOBJECT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200173endif
174
175if cairo_dep.found()
176 conf.set('HAVE_CAIRO', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200177endif
178
179if cairo_ft_dep.found()
180 conf.set('HAVE_CAIRO_FT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200181endif
182
183if graphite2_dep.found()
184 conf.set('HAVE_GRAPHITE2', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200185endif
186
187if icu_dep.found()
188 conf.set('HAVE_ICU', 1)
Ebrahim Byagowic6b3f732020-04-19 00:54:24 +0430189endif
190
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430191if get_option('icu_builtin')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200192 conf.set('HAVE_ICU_BUILTIN', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200193endif
194
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430195if get_option('experimental_api')
Ebrahim Byagowi750bb732020-04-21 01:13:13 +0430196 conf.set('HB_EXPERIMENTAL_API', 1)
197endif
198
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200199if freetype_dep.found()
200 conf.set('HAVE_FREETYPE', 1)
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200201 check_freetype_funcs = [
202 ['FT_Get_Var_Blend_Coordinates', {'deps': freetype_dep}],
203 ['FT_Set_Var_Blend_Coordinates', {'deps': freetype_dep}],
204 ['FT_Done_MM_Var', {'deps': freetype_dep}],
205 ]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200206
207 if freetype_dep.type_name() == 'internal'
208 foreach func: check_freetype_funcs
209 name = func[0]
210 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
211 endforeach
212 else
213 check_funcs += check_freetype_funcs
214 endif
215endif
216
217if fontconfig_dep.found()
218 conf.set('HAVE_FONTCONFIG', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200219endif
220
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200221gdi_uniscribe_deps = []
Ebrahim Byagowiddb103e2020-07-06 22:27:39 +0430222# GDI (Uniscribe) (Windows)
Chun-wei Fan838346c2020-03-13 18:01:17 +0800223if host_machine.system() == 'windows' and not get_option('gdi').disabled()
Ebrahim Byagowif62f4e32020-07-08 00:26:40 +0430224 gdi_deps_found = true
225
226 foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
227 dep = cpp.find_library(usplib, required: get_option('gdi'),
228 has_headers: ['usp10.h', 'windows.h'])
229 gdi_deps_found = gdi_deps_found and dep.found()
230 gdi_uniscribe_deps += dep
231 endforeach
232
233 if gdi_deps_found
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000234 conf.set('HAVE_UNISCRIBE', 1)
Chun-wei Fan838346c2020-03-13 18:01:17 +0800235 conf.set('HAVE_GDI', 1)
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000236 endif
237endif
238
Ebrahim Byagowiddb103e2020-07-06 22:27:39 +0430239# DirectWrite (Windows)
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +0430240directwrite_dep = null_dep
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000241if host_machine.system() == 'windows' and not get_option('directwrite').disabled()
Ebrahim Byagowif62f4e32020-07-08 00:26:40 +0430242 directwrite_dep = cpp.find_library('dwrite', required: get_option('directwrite'),
243 has_headers: ['dwrite_1.h'])
244
245 if directwrite_dep.found()
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000246 conf.set('HAVE_DIRECTWRITE', 1)
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000247 endif
248endif
249
Ebrahim Byagowi52199342020-07-06 16:30:59 +0430250# CoreText (macOS)
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200251coretext_deps = []
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000252if host_machine.system() == 'darwin' and not get_option('coretext').disabled()
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430253 app_services_dep = dependency('appleframeworks', modules: ['ApplicationServices'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000254 if cpp.has_type('CTFontRef', prefix: '#include <ApplicationServices/ApplicationServices.h>', dependencies: app_services_dep)
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200255 coretext_deps += [app_services_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000256 conf.set('HAVE_CORETEXT', 1)
257 # On iOS CoreText and CoreGraphics are stand-alone frameworks
258 # Check for a different symbol to avoid getting cached result
259 else
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430260 coretext_dep = dependency('appleframeworks', modules: ['CoreText'], required: false)
261 coregraphics_dep = dependency('appleframeworks', modules: ['CoreGraphics'], required: false)
262 corefoundation_dep = dependency('appleframeworks', modules: ['CoreFoundation'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000263 if cpp.has_type('CTRunRef', prefix: '#include <CoreText/CoreText.h>', dependencies: [coretext_dep, coregraphics_dep, corefoundation_dep])
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200264 coretext_deps += [coretext_dep, coregraphics_dep, corefoundation_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000265 conf.set('HAVE_CORETEXT', 1)
266 elif get_option('coretext').enabled()
267 error('CoreText was enabled explicitly, but required headers or frameworks are missing.')
268 endif
269 endif
270endif
271
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000272# threads
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +0430273thread_dep = null_dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200274if host_machine.system() != 'windows'
275 thread_dep = dependency('threads', required: false)
276
277 if thread_dep.found()
278 conf.set('HAVE_PTHREAD', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200279 else
280 check_headers += ['sched.h']
281 check_funcs += ['sched_yield', {'link_with': 'rt'}]
282 endif
283endif
284
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
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200306 found = cpp.has_function(name, dependencies: check_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200307
308 if not found and link_withs.length() > 0
309 found = true
310
311 foreach link_with : link_withs
312 dep = cpp.find_library(link_with, required: false)
313 if dep.found()
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430314 extra_deps += dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200315 else
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430316 found = false
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200317 endif
318 endforeach
319
320 if found
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200321 found = cpp.has_function(name, dependencies: check_deps + extra_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200322 endif
323 endif
324
325 if found
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200326 harfbuzz_extra_deps += extra_deps
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200327 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
328 endif
329endforeach
330
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200331if cpp.links(files('meson-cc-tests/intel-atomic-primitives-test.c'), name: 'Intel atomics')
332 conf.set('HAVE_INTEL_ATOMIC_PRIMITIVES', 1)
333endif
334
335if cpp.links(files('meson-cc-tests/solaris-atomic-operations.c'), name: 'Solaris atomic ops')
336 conf.set('HAVE_SOLARIS_ATOMIC_OPS', 1)
337endif
338
339subdir('src')
340subdir('util')
Tim-Philipp Müller6147df32018-11-14 10:12:40 +0000341
342if not get_option('tests').disabled()
343 subdir('test')
344endif
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200345
Ebrahim Byagowi702847a2020-06-29 00:39:43 +0430346if not get_option('benchmark').disabled() and \
Ebrahim Byagowi69a1e072020-07-08 03:12:09 +0430347 ((get_option('wrap_mode') != 'nodownload' and \
348 host_machine.system() != 'windows' and \
Ebrahim Byagowi702847a2020-06-29 00:39:43 +0430349 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
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200358configure_file(output: 'config.h', configuration: conf)
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430359
360summary({'prefix': get_option('prefix'),
361 'bindir': get_option('bindir'),
362 'libdir': get_option('libdir'),
363 'includedir': get_option('includedir'),
364 'datadir': get_option('datadir'),
365 }, section: 'Directories')
366summary({'Builtin': true,
367 'Glib': conf.get('HAVE_GLIB', 0) == 1,
368 'ICU': conf.get('HAVE_ICU', 0) == 1,
369 }, bool_yn: true, section: 'Unicode callbacks (you want at least one)')
370summary({'FreeType': conf.get('HAVE_FREETYPE', 0) == 1,
371 }, bool_yn: true, section: 'Font callbacks (the more the merrier)')
372summary({'Cairo': conf.get('HAVE_CAIRO', 0) == 1,
373 'Fontconfig': conf.get('HAVE_FONTCONFIG', 0) == 1,
Ebrahim Byagowie1c35ca2020-07-06 22:29:11 +0430374 }, bool_yn: true, section: 'Dependencies used for command-line utilities')
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430375summary({'Graphite2': conf.get('HAVE_GRAPHITE2', 0) == 1,
Ebrahim Byagowi65462c42020-06-05 01:08:08 +0430376 }, bool_yn: true, section: 'Additional shapers')
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430377summary({'CoreText': conf.get('HAVE_CORETEXT', 0) == 1,
378 'DirectWrite': conf.get('HAVE_DIRECTWRITE', 0) == 1,
Ebrahim Byagowidc981fe2020-07-15 13:15:27 +0430379 'GDI/Uniscribe': (conf.get('HAVE_GDI', 0) == 1) and (conf.get('HAVE_UNISCRIBE', 0) == 1),
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430380 }, bool_yn: true, section: 'Platform shapers (not normally needed)')
381summary({'Documentation': conf.get('HAVE_GTK_DOC', 0) == 1,
382 'GObject bindings': conf.get('HAVE_GOBJECT', 0) == 1,
383 'Introspection': conf.get('HAVE_INTROSPECTION', 0) == 1,
384 }, bool_yn: true, section: 'Other features')