blob: c87f02c31cf3f7587e167689a5f745846a7250c9 [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 Byagowia01c7a32020-07-25 12:27:31 +04303 version: '2.7.0',
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
Tim-Philipp Müller535186f2018-12-03 20:51:06 +010010hb_version_arr = meson.project_version().split('.')
11hb_version_major = hb_version_arr[0].to_int()
12hb_version_minor = hb_version_arr[1].to_int()
13hb_version_micro = hb_version_arr[2].to_int()
14
15# libtool versioning
16hb_version_int = hb_version_major*10000 + hb_version_minor*100 + hb_version_micro
Ebrahim Byagowi53b0a182020-06-22 18:04:01 +043017hb_libtool_version_info = '@0@:0:@0@'.format(hb_version_int)
Tim-Philipp Müller535186f2018-12-03 20:51:06 +010018
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020019pkgmod = import('pkgconfig')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020020cpp = meson.get_compiler('cpp')
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +043021null_dep = dependency('', required: false)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020022
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000023if cpp.get_id() == 'msvc'
24 # Ignore several spurious warnings for things HarfBuzz does very commonly.
25 # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
26 # If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
27 # NOTE: Only add warnings here if you are sure they're spurious
28 msvc_args = [
Ebrahim Byagowiddb103e2020-07-06 22:27:39 +043029 '/wd4018', # implicit signed/unsigned conversion
30 '/wd4146', # unary minus on unsigned (beware INT_MIN)
31 '/wd4244', # lossy type conversion (e.g. double -> int)
32 '/wd4305', # truncating type conversion (e.g. double -> float)
33 cpp.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000034 ]
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043035 add_project_arguments(msvc_args, language: ['c', 'cpp'])
Tim-Philipp Müller4a47f1a2018-12-01 11:05:27 +000036 # Disable SAFESEH with MSVC for libs that use external deps that are built with MinGW
37 # noseh_link_args = ['/SAFESEH:NO']
38endif
39
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043040add_project_link_arguments(cpp.get_supported_link_arguments([
41 '-Bsymbolic-functions'
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043042]), language: 'c')
Ebrahim Byagowi22048d52020-06-05 04:09:07 +043043
Tim-Philipp Müllerbb8aaa32020-03-14 01:05:38 +000044add_project_arguments(cpp.get_supported_arguments([
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033045 '-fno-rtti',
46 '-fno-exceptions',
47 '-fno-threadsafe-statics',
48 '-fvisibility-inlines-hidden', # maybe shouldn't be applied for mingw
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043049]), language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033050
51if host_machine.cpu_family() == 'arm' and cpp.alignment('struct { char c; }') != 1
52 if cpp.has_argument('-mstructure-size-boundary=8')
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +043053 add_project_arguments('-mstructure-size-boundary=8', language: 'cpp')
Ebrahim Byagowi365d2d32020-03-11 20:16:36 +033054 endif
55endif
56
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020057check_headers = [
58 ['unistd.h'],
59 ['sys/mman.h'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020060 ['stdbool.h'],
61]
62
63check_funcs = [
64 ['atexit'],
65 ['mprotect'],
66 ['sysconf'],
67 ['getpagesize'],
68 ['mmap'],
69 ['isatty'],
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020070]
71
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043072m_dep = cpp.find_library('m', required: false)
73
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +043074freetype_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043075if not get_option('freetype').disabled()
76 freetype_dep = dependency('freetype2', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043077
78 if not freetype_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens33252ce2020-06-24 13:40:32 -040079 freetype_dep = cpp.find_library('freetype', required: false,
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043080 has_headers: ['ft2build.h'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043081 endif
82
Xavier Claessensc4bbe892020-06-24 13:40:55 -040083 if not freetype_dep.found()
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043084 # https://github.com/harfbuzz/harfbuzz/pull/2498
85 freetype_dep = dependency('freetype2', required: get_option('freetype'),
86 fallback: ['freetype2', 'freetype_dep'],
87 default_options: ['harfbuzz=disabled'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043088 endif
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +043089endif
Chun-wei Fan733414b2020-03-13 16:15:21 +080090
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000091glib_dep = dependency('glib-2.0', required: get_option('glib'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053092 fallback: ['glib', 'libglib_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000093gobject_dep = dependency('gobject-2.0', required: get_option('gobject'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053094 fallback: ['glib', 'libgobject_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000095fontconfig_dep = dependency('fontconfig', required: get_option('fontconfig'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053096 fallback: ['fontconfig', 'fontconfig_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000097graphite2_dep = dependency('graphite2', required: get_option('graphite'))
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020098
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +043099icu_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430100if not get_option('icu').disabled()
101 icu_dep = dependency('icu-uc', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430102
103 if not icu_dep.found() and get_option('icu').enabled()
104 icu_dep = dependency('icu-uc', required: cpp.get_id() != 'msvc')
105 endif
106
107 if not icu_dep.found() and cpp.get_id() == 'msvc'
Ebrahim Byagowif62f4e32020-07-08 00:26:40 +0430108 icu_dep = cpp.find_library(get_option('buildtype') == 'debug' ? 'icuucd' : 'icuuc',
109 required: get_option('icu'),
110 has_headers: ['unicode/uchar.h',
111 'unicode/unorm2.h',
112 'unicode/ustring.h',
113 'unicode/utf16.h',
114 'unicode/uversion.h',
115 'unicode/uscript.h'])
Chun-wei Fan5efce602020-03-13 16:40:20 +0800116 endif
117endif
118
Ebrahim Byagowi42d039c2020-07-03 04:32:32 +0430119cairo_dep = null_dep
120cairo_ft_dep = null_dep
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430121if not get_option('cairo').disabled()
122 cairo_dep = dependency('cairo', required: false)
Chun-wei Fan9d0e6ae2020-03-13 16:56:55 +0800123
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430124 if not cairo_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens571365d2020-06-24 14:11:07 -0400125 cairo_dep = cpp.find_library('cairo', required: false,
126 has_headers: ['cairo.h'])
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530127 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430128
Xavier Claessens00c652a2020-06-24 14:11:32 -0400129 if not cairo_dep.found()
130 # Note that we don't have harfbuzz -> cairo -> freetype2 -> harfbuzz fallback
131 # dependency cycle here because we have configured freetype2 above with
132 # harfbuzz support disabled, so when cairo will lookup freetype2 dependency
133 # it will be forced to use that one.
Xavier Claessens01fa55e2020-06-24 15:56:09 -0400134 cairo_dep = dependency('cairo', fallback: ['cairo', 'libcairo_dep'],
135 required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430136 endif
137
138 # Ensure that cairo-ft is fetched from the same library as cairo itself
139 if cairo_dep.found()
Ebrahim Byagowi05ab0732020-07-02 23:54:09 +0430140 if cairo_dep.type_name() == 'internal'
141 # It is true at least for the port we have
142 cairo_ft_dep = cairo_dep
143 elif cairo_dep.type_name() == 'library' and \
144 cpp.has_function('cairo_ft_font_face_create_for_ft_face',
145 prefix: '#include <cairo-ft.h>',
146 dependencies: cairo_dep)
147 cairo_ft_dep = cairo_dep
148 else # including the most important type for us, 'pkgconfig'
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430149 cairo_ft_dep = dependency('cairo-ft', required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430150 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430151 endif
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530152endif
153
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200154conf = configuration_data()
Tim-Philipp Müller618584e2018-11-14 20:19:36 +0000155incconfig = include_directories('.')
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000156
157add_project_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200158
159warn_cflags = [
160 '-Wno-non-virtual-dtor',
161]
162
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000163cpp_args = cpp.get_supported_arguments(warn_cflags)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200164
165if glib_dep.found()
166 conf.set('HAVE_GLIB', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200167endif
168
169if gobject_dep.found()
170 conf.set('HAVE_GOBJECT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200171endif
172
173if cairo_dep.found()
174 conf.set('HAVE_CAIRO', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200175endif
176
177if cairo_ft_dep.found()
178 conf.set('HAVE_CAIRO_FT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200179endif
180
181if graphite2_dep.found()
182 conf.set('HAVE_GRAPHITE2', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200183endif
184
185if icu_dep.found()
186 conf.set('HAVE_ICU', 1)
Ebrahim Byagowic6b3f732020-04-19 00:54:24 +0430187endif
188
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430189if get_option('icu_builtin')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200190 conf.set('HAVE_ICU_BUILTIN', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200191endif
192
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430193if get_option('experimental_api')
Ebrahim Byagowi750bb732020-04-21 01:13:13 +0430194 conf.set('HB_EXPERIMENTAL_API', 1)
195endif
196
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200197if freetype_dep.found()
198 conf.set('HAVE_FREETYPE', 1)
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200199 check_freetype_funcs = [
200 ['FT_Get_Var_Blend_Coordinates', {'deps': freetype_dep}],
201 ['FT_Set_Var_Blend_Coordinates', {'deps': freetype_dep}],
202 ['FT_Done_MM_Var', {'deps': freetype_dep}],
203 ]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200204
205 if freetype_dep.type_name() == 'internal'
206 foreach func: check_freetype_funcs
207 name = func[0]
208 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
209 endforeach
210 else
211 check_funcs += check_freetype_funcs
212 endif
213endif
214
215if fontconfig_dep.found()
216 conf.set('HAVE_FONTCONFIG', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200217endif
218
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200219gdi_uniscribe_deps = []
Ebrahim Byagowiddb103e2020-07-06 22:27:39 +0430220# GDI (Uniscribe) (Windows)
Chun-wei Fan838346c2020-03-13 18:01:17 +0800221if host_machine.system() == 'windows' and not get_option('gdi').disabled()
Ebrahim Byagowif62f4e32020-07-08 00:26:40 +0430222 gdi_deps_found = true
223
224 foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
225 dep = cpp.find_library(usplib, required: get_option('gdi'),
226 has_headers: ['usp10.h', 'windows.h'])
227 gdi_deps_found = gdi_deps_found and dep.found()
228 gdi_uniscribe_deps += dep
229 endforeach
230
231 if gdi_deps_found
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000232 conf.set('HAVE_UNISCRIBE', 1)
Chun-wei Fan838346c2020-03-13 18:01:17 +0800233 conf.set('HAVE_GDI', 1)
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000234 endif
235endif
236
Ebrahim Byagowiddb103e2020-07-06 22:27:39 +0430237# DirectWrite (Windows)
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +0430238directwrite_dep = null_dep
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000239if host_machine.system() == 'windows' and not get_option('directwrite').disabled()
Ebrahim Byagowif62f4e32020-07-08 00:26:40 +0430240 directwrite_dep = cpp.find_library('dwrite', required: get_option('directwrite'),
241 has_headers: ['dwrite_1.h'])
242
243 if directwrite_dep.found()
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000244 conf.set('HAVE_DIRECTWRITE', 1)
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000245 endif
246endif
247
Ebrahim Byagowi52199342020-07-06 16:30:59 +0430248# CoreText (macOS)
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
Ebrahim Byagowif2a80ab2020-07-03 04:28:08 +0430271thread_dep = null_dep
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 Duponchelle920efc02018-05-17 01:28:53 +0200283conf.set_quoted('PACKAGE_NAME', 'HarfBuzz')
284conf.set_quoted('PACKAGE_VERSION', meson.project_version())
285
286foreach check : check_headers
287 name = check[0]
288
289 if cpp.has_header(name)
290 conf.set('HAVE_@0@'.format(name.to_upper().underscorify()), 1)
291 endif
292endforeach
293
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200294harfbuzz_extra_deps = []
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200295foreach check : check_funcs
296 name = check[0]
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200297 opts = check.get(1, {})
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200298 link_withs = opts.get('link_with', [])
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200299 check_deps = opts.get('deps', [])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200300 extra_deps = []
301 found = true
302
303 # First try without linking
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200304 found = cpp.has_function(name, dependencies: check_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200305
306 if not found and link_withs.length() > 0
307 found = true
308
309 foreach link_with : link_withs
310 dep = cpp.find_library(link_with, required: false)
311 if dep.found()
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430312 extra_deps += dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200313 else
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430314 found = false
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200315 endif
316 endforeach
317
318 if found
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200319 found = cpp.has_function(name, dependencies: check_deps + extra_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200320 endif
321 endif
322
323 if found
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200324 harfbuzz_extra_deps += extra_deps
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200325 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
326 endif
327endforeach
328
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200329if cpp.links(files('meson-cc-tests/intel-atomic-primitives-test.c'), name: 'Intel atomics')
330 conf.set('HAVE_INTEL_ATOMIC_PRIMITIVES', 1)
331endif
332
333if cpp.links(files('meson-cc-tests/solaris-atomic-operations.c'), name: 'Solaris atomic ops')
334 conf.set('HAVE_SOLARIS_ATOMIC_OPS', 1)
335endif
336
337subdir('src')
338subdir('util')
Tim-Philipp Müller6147df32018-11-14 10:12:40 +0000339
340if not get_option('tests').disabled()
341 subdir('test')
342endif
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200343
Ebrahim Byagowi702847a2020-06-29 00:39:43 +0430344if not get_option('benchmark').disabled() and \
Ebrahim Byagowi8cbdb6f2020-07-15 13:32:57 +0430345 get_option('wrap_mode') != 'nodownload' and \
346 host_machine.system() != 'windows' and \
347 not meson.is_subproject() and \
348 not meson.is_cross_build()
Ebrahim Byagowi95b10812020-06-09 17:37:36 +0430349 subdir('perf')
350endif
351
Ebrahim Byagowif9ac6dd2020-07-22 17:53:04 +0430352if not get_option('docs').disabled()
Tim-Philipp Müller3dd7b212020-05-17 00:12:08 +0100353 subdir('docs')
354endif
355
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200356configure_file(output: 'config.h', configuration: conf)
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430357
358summary({'prefix': get_option('prefix'),
359 'bindir': get_option('bindir'),
360 'libdir': get_option('libdir'),
361 'includedir': get_option('includedir'),
362 'datadir': get_option('datadir'),
363 }, section: 'Directories')
364summary({'Builtin': true,
365 'Glib': conf.get('HAVE_GLIB', 0) == 1,
366 'ICU': conf.get('HAVE_ICU', 0) == 1,
367 }, bool_yn: true, section: 'Unicode callbacks (you want at least one)')
368summary({'FreeType': conf.get('HAVE_FREETYPE', 0) == 1,
369 }, bool_yn: true, section: 'Font callbacks (the more the merrier)')
370summary({'Cairo': conf.get('HAVE_CAIRO', 0) == 1,
371 'Fontconfig': conf.get('HAVE_FONTCONFIG', 0) == 1,
Ebrahim Byagowie1c35ca2020-07-06 22:29:11 +0430372 }, bool_yn: true, section: 'Dependencies used for command-line utilities')
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430373summary({'Graphite2': conf.get('HAVE_GRAPHITE2', 0) == 1,
Ebrahim Byagowi65462c42020-06-05 01:08:08 +0430374 }, bool_yn: true, section: 'Additional shapers')
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430375summary({'CoreText': conf.get('HAVE_CORETEXT', 0) == 1,
376 'DirectWrite': conf.get('HAVE_DIRECTWRITE', 0) == 1,
Ebrahim Byagowidc981fe2020-07-15 13:15:27 +0430377 'GDI/Uniscribe': (conf.get('HAVE_GDI', 0) == 1) and (conf.get('HAVE_UNISCRIBE', 0) == 1),
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430378 }, bool_yn: true, section: 'Platform shapers (not normally needed)')
379summary({'Documentation': conf.get('HAVE_GTK_DOC', 0) == 1,
380 'GObject bindings': conf.get('HAVE_GOBJECT', 0) == 1,
381 'Introspection': conf.get('HAVE_INTROSPECTION', 0) == 1,
382 }, bool_yn: true, section: 'Other features')