blob: 65d4e347865c12b7fe19cd1320f8895a2343f484 [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 Byagowi62de2f72020-06-11 19:09:24 +04304 default_options: ['cpp_std=c++11'],
Ebrahim Byagowia08ba462020-07-06 00:31:42 +04305)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +02006
Ebrahim Byagowi8c84fee2020-06-22 04:04:40 +04307warning('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 +04308
Tim-Philipp Müller535186f2018-12-03 20:51:06 +01009hb_version_arr = meson.project_version().split('.')
10hb_version_major = hb_version_arr[0].to_int()
11hb_version_minor = hb_version_arr[1].to_int()
12hb_version_micro = hb_version_arr[2].to_int()
13
14# libtool versioning
15hb_version_int = hb_version_major*10000 + hb_version_minor*100 + hb_version_micro
Ebrahim Byagowi53b0a182020-06-22 18:04:01 +043016hb_libtool_version_info = '@0@:0:@0@'.format(hb_version_int)
Tim-Philipp Müller535186f2018-12-03 20:51:06 +010017
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020018pkgmod = import('pkgconfig')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020019cpp = meson.get_compiler('cpp')
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +043020null_dep = dependency('', required: false)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020021
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000022if cpp.get_id() == 'msvc'
23 # Ignore several spurious warnings for things HarfBuzz does very commonly.
24 # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
25 # If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
26 # NOTE: Only add warnings here if you are sure they're spurious
27 msvc_args = [
28 '/wd4018', # implicit signed/unsigned conversion
29 '/wd4146', # unary minus on unsigned (beware INT_MIN)
30 '/wd4244', # lossy type conversion (e.g. double -> int)
31 '/wd4305', # truncating type conversion (e.g. double -> float)
32 cpp.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
33 ]
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043034 add_project_arguments(msvc_args, language: ['c', 'cpp'])
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000035 # Disable SAFESEH with MSVC for libs that use external deps that are built with MinGW
36 # noseh_link_args = ['/SAFESEH:NO']
37endif
38
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043039add_project_link_arguments(cpp.get_supported_link_arguments([
40 '-Bsymbolic-functions'
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043041]), language: 'c')
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043042
Tim-Philipp Müllerbb8aaa32020-03-14 01:05:38 +000043add_project_arguments(cpp.get_supported_arguments([
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033044 '-fno-rtti',
45 '-fno-exceptions',
46 '-fno-threadsafe-statics',
47 '-fvisibility-inlines-hidden', # maybe shouldn't be applied for mingw
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043048]), language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033049
50if host_machine.cpu_family() == 'arm' and cpp.alignment('struct { char c; }') != 1
51 if cpp.has_argument('-mstructure-size-boundary=8')
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043052 add_project_arguments('-mstructure-size-boundary=8', language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033053 endif
54endif
55
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020056check_headers = [
57 ['unistd.h'],
58 ['sys/mman.h'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020059 ['stdbool.h'],
60]
61
62check_funcs = [
63 ['atexit'],
64 ['mprotect'],
65 ['sysconf'],
66 ['getpagesize'],
67 ['mmap'],
68 ['isatty'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020069]
70
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043071m_dep = cpp.find_library('m', required: false)
72
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +043073freetype_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043074if not get_option('freetype').disabled()
75 freetype_dep = dependency('freetype2', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043076
77 if not freetype_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens33252ce2020-06-24 13:40:32 -040078 freetype_dep = cpp.find_library('freetype', required: false,
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043079 has_headers: ['ft2build.h'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043080 endif
81
Xavier Claessensc4bbe892020-06-24 13:40:55 -040082 if not freetype_dep.found()
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043083 # https://github.com/harfbuzz/harfbuzz/pull/2498
84 freetype_dep = dependency('freetype2', required: get_option('freetype'),
85 fallback: ['freetype2', 'freetype_dep'],
86 default_options: ['harfbuzz=disabled'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043087 endif
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043088endif
Chun-wei Fan733414b2020-03-13 16:15:21 +080089
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000090glib_dep = dependency('glib-2.0', required: get_option('glib'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053091 fallback: ['glib', 'libglib_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000092gobject_dep = dependency('gobject-2.0', required: get_option('gobject'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053093 fallback: ['glib', 'libgobject_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000094fontconfig_dep = dependency('fontconfig', required: get_option('fontconfig'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053095 fallback: ['fontconfig', 'fontconfig_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000096graphite2_dep = dependency('graphite2', required: get_option('graphite'))
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020097
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +043098icu_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043099if not get_option('icu').disabled()
100 icu_dep = dependency('icu-uc', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430101
102 if not icu_dep.found() and get_option('icu').enabled()
103 icu_dep = dependency('icu-uc', required: cpp.get_id() != 'msvc')
104 endif
105
106 if not icu_dep.found() and cpp.get_id() == 'msvc'
107 if cpp.has_header('unicode/uchar.h') and \
108 cpp.has_header('unicode/unorm2.h') and \
109 cpp.has_header('unicode/ustring.h') and \
110 cpp.has_header('unicode/utf16.h') and \
111 cpp.has_header('unicode/uversion.h') and \
112 cpp.has_header('unicode/uscript.h')
113 if get_option('buildtype') == 'debug'
114 icu_dep = cpp.find_library('icuucd', required: get_option('icu'))
115 else
116 icu_dep = cpp.find_library('icuuc', required: get_option('icu'))
117 endif
Chun-wei Fan5efce602020-03-13 16:40:20 +0800118 else
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430119 if get_option('icu').enabled()
120 error('ICU headers and libraries must be present to build ICU support')
121 endif
Chun-wei Fan5efce602020-03-13 16:40:20 +0800122 endif
123 endif
124endif
125
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +0430126cairo_dep = null_dep
127cairo_ft_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430128if not get_option('cairo').disabled()
129 cairo_dep = dependency('cairo', required: false)
Chun-wei Fan9d0e6ae2020-03-13 16:56:55 +0800130
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430131 if not cairo_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens571365d2020-06-24 14:11:07 -0400132 cairo_dep = cpp.find_library('cairo', required: false,
133 has_headers: ['cairo.h'])
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530134 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430135
Xavier Claessens00c652a2020-06-24 14:11:32 -0400136 if not cairo_dep.found()
137 # Note that we don't have harfbuzz -> cairo -> freetype2 -> harfbuzz fallback
138 # dependency cycle here because we have configured freetype2 above with
139 # harfbuzz support disabled, so when cairo will lookup freetype2 dependency
140 # it will be forced to use that one.
Xavier Claessens01fa55e2020-06-24 15:56:09 -0400141 cairo_dep = dependency('cairo', fallback: ['cairo', 'libcairo_dep'],
142 required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430143 endif
144
145 # Ensure that cairo-ft is fetched from the same library as cairo itself
146 if cairo_dep.found()
Ebrahim Byagowi05ab0732020-07-02 23:54:09 +0430147 if cairo_dep.type_name() == 'internal'
148 # It is true at least for the port we have
149 cairo_ft_dep = cairo_dep
150 elif cairo_dep.type_name() == 'library' and \
151 cpp.has_function('cairo_ft_font_face_create_for_ft_face',
152 prefix: '#include <cairo-ft.h>',
153 dependencies: cairo_dep)
154 cairo_ft_dep = cairo_dep
155 else # including the most important type for us, 'pkgconfig'
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430156 cairo_ft_dep = dependency('cairo-ft', required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430157 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430158 endif
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530159endif
160
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200161conf = configuration_data()
Tim-Philipp Müller618584e2018-11-14 20:19:36 +0000162incconfig = include_directories('.')
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000163
164add_project_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200165
166warn_cflags = [
167 '-Wno-non-virtual-dtor',
168]
169
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000170cpp_args = cpp.get_supported_arguments(warn_cflags)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200171
172if glib_dep.found()
173 conf.set('HAVE_GLIB', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200174endif
175
176if gobject_dep.found()
177 conf.set('HAVE_GOBJECT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200178endif
179
180if cairo_dep.found()
181 conf.set('HAVE_CAIRO', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200182endif
183
184if cairo_ft_dep.found()
185 conf.set('HAVE_CAIRO_FT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200186endif
187
188if graphite2_dep.found()
189 conf.set('HAVE_GRAPHITE2', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200190endif
191
192if icu_dep.found()
193 conf.set('HAVE_ICU', 1)
Ebrahim Byagowic6b3f732020-04-19 00:54:24 +0430194endif
195
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430196if get_option('icu_builtin')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200197 conf.set('HAVE_ICU_BUILTIN', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200198endif
199
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430200if get_option('experimental_api')
Ebrahim Byagowi750bb732020-04-21 01:13:13 +0430201 conf.set('HB_EXPERIMENTAL_API', 1)
202endif
203
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200204if freetype_dep.found()
205 conf.set('HAVE_FREETYPE', 1)
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200206 check_freetype_funcs = [
207 ['FT_Get_Var_Blend_Coordinates', {'deps': freetype_dep}],
208 ['FT_Set_Var_Blend_Coordinates', {'deps': freetype_dep}],
209 ['FT_Done_MM_Var', {'deps': freetype_dep}],
210 ]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200211
212 if freetype_dep.type_name() == 'internal'
213 foreach func: check_freetype_funcs
214 name = func[0]
215 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
216 endforeach
217 else
218 check_funcs += check_freetype_funcs
219 endif
220endif
221
222if fontconfig_dep.found()
223 conf.set('HAVE_FONTCONFIG', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200224endif
225
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200226gdi_uniscribe_deps = []
Chun-wei Fan838346c2020-03-13 18:01:17 +0800227# GDI (uniscribe) (windows)
228if host_machine.system() == 'windows' and not get_option('gdi').disabled()
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000229 # TODO: make nicer once we have https://github.com/mesonbuild/meson/issues/3940
230 if cpp.has_header('usp10.h') and cpp.has_header('windows.h')
231 foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200232 gdi_uniscribe_deps += cpp.find_library(usplib, required: true)
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000233 endforeach
234 conf.set('HAVE_UNISCRIBE', 1)
Chun-wei Fan838346c2020-03-13 18:01:17 +0800235 conf.set('HAVE_GDI', 1)
236 elif get_option('gdi').enabled()
237 error('gdi was enabled explicitly, but some required headers are missing.')
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000238 endif
239endif
240
Chun-wei Fan7baa8e02020-03-13 16:21:25 +0800241# DirectWrite (windows)
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +0430242directwrite_dep = null_dep
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000243if host_machine.system() == 'windows' and not get_option('directwrite').disabled()
Chun-wei Fan7baa8e02020-03-13 16:21:25 +0800244 if cpp.has_header('dwrite_1.h')
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200245 directwrite_dep = cpp.find_library('dwrite', required: true)
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000246 conf.set('HAVE_DIRECTWRITE', 1)
247 elif get_option('directwrite').enabled()
248 error('DirectWrite was enabled explicitly, but required header is missing.')
249 endif
250endif
251
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000252# CoreText (macOS) - FIXME: untested
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200253coretext_deps = []
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000254if host_machine.system() == 'darwin' and not get_option('coretext').disabled()
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430255 app_services_dep = dependency('appleframeworks', modules: ['ApplicationServices'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000256 if cpp.has_type('CTFontRef', prefix: '#include <ApplicationServices/ApplicationServices.h>', dependencies: app_services_dep)
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200257 coretext_deps += [app_services_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000258 conf.set('HAVE_CORETEXT', 1)
259 # On iOS CoreText and CoreGraphics are stand-alone frameworks
260 # Check for a different symbol to avoid getting cached result
261 else
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430262 coretext_dep = dependency('appleframeworks', modules: ['CoreText'], required: false)
263 coregraphics_dep = dependency('appleframeworks', modules: ['CoreGraphics'], required: false)
264 corefoundation_dep = dependency('appleframeworks', modules: ['CoreFoundation'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000265 if cpp.has_type('CTRunRef', prefix: '#include <CoreText/CoreText.h>', dependencies: [coretext_dep, coregraphics_dep, corefoundation_dep])
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200266 coretext_deps += [coretext_dep, coregraphics_dep, corefoundation_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000267 conf.set('HAVE_CORETEXT', 1)
268 elif get_option('coretext').enabled()
269 error('CoreText was enabled explicitly, but required headers or frameworks are missing.')
270 endif
271 endif
272endif
273
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000274# threads
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +0430275thread_dep = null_dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200276if host_machine.system() != 'windows'
277 thread_dep = dependency('threads', required: false)
278
279 if thread_dep.found()
280 conf.set('HAVE_PTHREAD', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200281 else
282 check_headers += ['sched.h']
283 check_funcs += ['sched_yield', {'link_with': 'rt'}]
284 endif
285endif
286
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200287conf.set('HAVE_OT', 1)
288conf.set('HAVE_FALLBACK', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200289conf.set_quoted('PACKAGE_NAME', 'HarfBuzz')
290conf.set_quoted('PACKAGE_VERSION', meson.project_version())
291
292foreach check : check_headers
293 name = check[0]
294
295 if cpp.has_header(name)
296 conf.set('HAVE_@0@'.format(name.to_upper().underscorify()), 1)
297 endif
298endforeach
299
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200300harfbuzz_extra_deps = []
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200301foreach check : check_funcs
302 name = check[0]
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200303 opts = check.get(1, {})
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200304 link_withs = opts.get('link_with', [])
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200305 check_deps = opts.get('deps', [])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200306 extra_deps = []
307 found = true
308
309 # First try without linking
310
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200311 found = cpp.has_function(name, dependencies: check_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200312
313 if not found and link_withs.length() > 0
314 found = true
315
316 foreach link_with : link_withs
317 dep = cpp.find_library(link_with, required: false)
318 if dep.found()
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430319 extra_deps += dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200320 else
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430321 found = false
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200322 endif
323 endforeach
324
325 if found
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200326 found = cpp.has_function(name, dependencies: check_deps + extra_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200327 endif
328 endif
329
330 if found
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200331 harfbuzz_extra_deps += extra_deps
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200332 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
333 endif
334endforeach
335
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200336if cpp.links(files('meson-cc-tests/intel-atomic-primitives-test.c'), name: 'Intel atomics')
337 conf.set('HAVE_INTEL_ATOMIC_PRIMITIVES', 1)
338endif
339
340if cpp.links(files('meson-cc-tests/solaris-atomic-operations.c'), name: 'Solaris atomic ops')
341 conf.set('HAVE_SOLARIS_ATOMIC_OPS', 1)
342endif
343
344subdir('src')
345subdir('util')
Tim-Philipp Müller6147df32018-11-14 10:12:40 +0000346
347if not get_option('tests').disabled()
348 subdir('test')
349endif
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200350
Ebrahim Byagowi702847a2020-06-29 00:39:43 +0430351if not get_option('benchmark').disabled() and \
352 ((host_machine.system() != 'windows' and \
353 not meson.is_subproject() and \
354 not meson.is_cross_build()) or get_option('benchmark').enabled())
Ebrahim Byagowi95b10812020-06-09 17:37:36 +0430355 subdir('perf')
356endif
357
Tim-Philipp Müller3dd7b212020-05-17 00:12:08 +0100358if not get_option('gtk_doc').disabled()
359 subdir('docs')
360endif
361
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')