blob: 40a77f2778b741b0c9f713b6bb2b709619a4232f [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'
Xavier Claessens33252ce2020-06-24 13:40:32 -040075 freetype_dep = cpp.find_library('freetype', required: false,
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043076 has_headers: ['ft2build.h'])
Ebrahim Byagowib8454c32020-06-11 18:32:13 +043077 endif
78
Xavier Claessensc4bbe892020-06-24 13:40:55 -040079 if not freetype_dep.found()
Ebrahim Byagowi020b1822020-07-01 14:22:46 +043080 freetype_dep = dependency('freetype2', required: false,
81 fallback: ['freetype2', 'freetype_dep'])
82 endif
83
84 if not freetype_dep.found()
85 # try to fetch freetype2 without harfbuzz, just as a last resort
86 # 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 +043091else
92 freetype_dep = dependency('', required: false)
93endif
Chun-wei Fan733414b2020-03-13 16:15:21 +080094
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000095glib_dep = dependency('glib-2.0', required: get_option('glib'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053096 fallback: ['glib', 'libglib_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000097gobject_dep = dependency('gobject-2.0', required: get_option('gobject'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +053098 fallback: ['glib', 'libgobject_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000099fontconfig_dep = dependency('fontconfig', required: get_option('fontconfig'),
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530100 fallback: ['fontconfig', 'fontconfig_dep'])
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +0000101graphite2_dep = dependency('graphite2', required: get_option('graphite'))
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200102
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430103if not get_option('icu').disabled()
104 icu_dep = dependency('icu-uc', required: false)
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430105
106 if not icu_dep.found() and get_option('icu').enabled()
107 icu_dep = dependency('icu-uc', required: cpp.get_id() != 'msvc')
108 endif
109
110 if not icu_dep.found() and cpp.get_id() == 'msvc'
111 if cpp.has_header('unicode/uchar.h') and \
112 cpp.has_header('unicode/unorm2.h') and \
113 cpp.has_header('unicode/ustring.h') and \
114 cpp.has_header('unicode/utf16.h') and \
115 cpp.has_header('unicode/uversion.h') and \
116 cpp.has_header('unicode/uscript.h')
117 if get_option('buildtype') == 'debug'
118 icu_dep = cpp.find_library('icuucd', required: get_option('icu'))
119 else
120 icu_dep = cpp.find_library('icuuc', required: get_option('icu'))
121 endif
Chun-wei Fan5efce602020-03-13 16:40:20 +0800122 else
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430123 if get_option('icu').enabled()
124 error('ICU headers and libraries must be present to build ICU support')
125 endif
Chun-wei Fan5efce602020-03-13 16:40:20 +0800126 endif
127 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430128else
129 icu_dep = dependency('', required: false)
Chun-wei Fan5efce602020-03-13 16:40:20 +0800130endif
131
Ebrahim Byagowiebab4b82020-06-10 16:52:32 +0430132if not get_option('cairo').disabled()
133 cairo_dep = dependency('cairo', required: false)
Chun-wei Fan9d0e6ae2020-03-13 16:56:55 +0800134
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430135 if not cairo_dep.found() and cpp.get_id() == 'msvc'
Xavier Claessens571365d2020-06-24 14:11:07 -0400136 cairo_dep = cpp.find_library('cairo', required: false,
137 has_headers: ['cairo.h'])
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530138 endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430139
Xavier Claessens00c652a2020-06-24 14:11:32 -0400140 if not cairo_dep.found()
141 # Note that we don't have harfbuzz -> cairo -> freetype2 -> harfbuzz fallback
142 # dependency cycle here because we have configured freetype2 above with
143 # harfbuzz support disabled, so when cairo will lookup freetype2 dependency
144 # it will be forced to use that one.
Xavier Claessens01fa55e2020-06-24 15:56:09 -0400145 cairo_dep = dependency('cairo', fallback: ['cairo', 'libcairo_dep'],
146 required: get_option('cairo'))
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430147 endif
148
149 # Ensure that cairo-ft is fetched from the same library as cairo itself
150 if cairo_dep.found()
151 if cairo_dep.type_name() == 'pkgconfig'
152 cairo_ft_dep = dependency('cairo-ft', required: get_option('cairo'))
153 else
Ebrahim Byagowif3f92052020-07-01 03:01:25 +0430154 cairo_ft_dep = cairo_dep
155 # TODO: Apparently the following isn't reliable to detect whether a dependency provides
156 # something or not so let's assume it is always enabled as we control
157 # cairo subproject anyway for now. To fix and test run .ci/build-win32.sh and
158 # make sure hb-view.exe is not missing.
159 #
160 # if cpp.has_header('cairo-ft.h') and \
161 # cpp.has_function('cairo_ft_font_face_create_for_ft_face', dependencies: cairo_dep)
162 # cairo_ft_dep = cairo_dep
163 # else
164 # cairo_ft_dep = dependency('', required: false)
165 # endif
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430166 endif
167 else
168 cairo_ft_dep = dependency('', required: false)
169 endif
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530170else
Ebrahim Byagowib8454c32020-06-11 18:32:13 +0430171 cairo_dep = dependency('', required: false)
Nirbheek Chauhanf65def42018-10-12 19:41:49 +0530172 cairo_ft_dep = dependency('', required: false)
173endif
174
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200175conf = configuration_data()
Tim-Philipp Müller618584e2018-11-14 20:19:36 +0000176incconfig = include_directories('.')
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000177
178add_project_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200179
180warn_cflags = [
181 '-Wno-non-virtual-dtor',
182]
183
Tim-Philipp Müllera3892be2020-03-14 01:08:15 +0000184cpp_args = cpp.get_supported_arguments(warn_cflags)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200185
186if glib_dep.found()
187 conf.set('HAVE_GLIB', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200188endif
189
190if gobject_dep.found()
191 conf.set('HAVE_GOBJECT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200192endif
193
194if cairo_dep.found()
195 conf.set('HAVE_CAIRO', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200196endif
197
198if cairo_ft_dep.found()
199 conf.set('HAVE_CAIRO_FT', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200200endif
201
202if graphite2_dep.found()
203 conf.set('HAVE_GRAPHITE2', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200204endif
205
206if icu_dep.found()
207 conf.set('HAVE_ICU', 1)
Ebrahim Byagowic6b3f732020-04-19 00:54:24 +0430208endif
209
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430210if get_option('icu_builtin')
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200211 conf.set('HAVE_ICU_BUILTIN', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200212endif
213
Ebrahim Byagowicc53fd12020-05-21 19:33:18 +0430214if get_option('experimental_api')
Ebrahim Byagowi750bb732020-04-21 01:13:13 +0430215 conf.set('HB_EXPERIMENTAL_API', 1)
216endif
217
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200218if freetype_dep.found()
219 conf.set('HAVE_FREETYPE', 1)
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200220 check_freetype_funcs = [
221 ['FT_Get_Var_Blend_Coordinates', {'deps': freetype_dep}],
222 ['FT_Set_Var_Blend_Coordinates', {'deps': freetype_dep}],
223 ['FT_Done_MM_Var', {'deps': freetype_dep}],
224 ]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200225
226 if freetype_dep.type_name() == 'internal'
227 foreach func: check_freetype_funcs
228 name = func[0]
229 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
230 endforeach
231 else
232 check_funcs += check_freetype_funcs
233 endif
234endif
235
236if fontconfig_dep.found()
237 conf.set('HAVE_FONTCONFIG', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200238endif
239
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200240gdi_uniscribe_deps = []
Chun-wei Fan838346c2020-03-13 18:01:17 +0800241# GDI (uniscribe) (windows)
242if host_machine.system() == 'windows' and not get_option('gdi').disabled()
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000243 # TODO: make nicer once we have https://github.com/mesonbuild/meson/issues/3940
244 if cpp.has_header('usp10.h') and cpp.has_header('windows.h')
245 foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200246 gdi_uniscribe_deps += cpp.find_library(usplib, required: true)
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000247 endforeach
248 conf.set('HAVE_UNISCRIBE', 1)
Chun-wei Fan838346c2020-03-13 18:01:17 +0800249 conf.set('HAVE_GDI', 1)
250 elif get_option('gdi').enabled()
251 error('gdi was enabled explicitly, but some required headers are missing.')
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000252 endif
253endif
254
Chun-wei Fan7baa8e02020-03-13 16:21:25 +0800255# DirectWrite (windows)
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200256directwrite_dep = dependency('', required: false)
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000257if host_machine.system() == 'windows' and not get_option('directwrite').disabled()
Chun-wei Fan7baa8e02020-03-13 16:21:25 +0800258 if cpp.has_header('dwrite_1.h')
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200259 directwrite_dep = cpp.find_library('dwrite', required: true)
Tim-Philipp Müller83ebbe42018-11-12 16:56:56 +0000260 conf.set('HAVE_DIRECTWRITE', 1)
261 elif get_option('directwrite').enabled()
262 error('DirectWrite was enabled explicitly, but required header is missing.')
263 endif
264endif
265
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000266# CoreText (macOS) - FIXME: untested
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200267coretext_deps = []
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000268if host_machine.system() == 'darwin' and not get_option('coretext').disabled()
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430269 app_services_dep = dependency('appleframeworks', modules: ['ApplicationServices'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000270 if cpp.has_type('CTFontRef', prefix: '#include <ApplicationServices/ApplicationServices.h>', dependencies: app_services_dep)
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200271 coretext_deps += [app_services_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000272 conf.set('HAVE_CORETEXT', 1)
273 # On iOS CoreText and CoreGraphics are stand-alone frameworks
274 # Check for a different symbol to avoid getting cached result
275 else
Ebrahim Byagowi62de2f72020-06-11 19:09:24 +0430276 coretext_dep = dependency('appleframeworks', modules: ['CoreText'], required: false)
277 coregraphics_dep = dependency('appleframeworks', modules: ['CoreGraphics'], required: false)
278 corefoundation_dep = dependency('appleframeworks', modules: ['CoreFoundation'], required: false)
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000279 if cpp.has_type('CTRunRef', prefix: '#include <CoreText/CoreText.h>', dependencies: [coretext_dep, coregraphics_dep, corefoundation_dep])
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200280 coretext_deps += [coretext_dep, coregraphics_dep, corefoundation_dep]
Tim-Philipp Müller4840c822018-11-12 16:56:56 +0000281 conf.set('HAVE_CORETEXT', 1)
282 elif get_option('coretext').enabled()
283 error('CoreText was enabled explicitly, but required headers or frameworks are missing.')
284 endif
285 endif
286endif
287
Tim-Philipp Müllerb7796a52018-11-12 16:56:56 +0000288# threads
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200289thread_dep = dependency('', required: false)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200290if host_machine.system() != 'windows'
291 thread_dep = dependency('threads', required: false)
292
293 if thread_dep.found()
294 conf.set('HAVE_PTHREAD', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200295 else
296 check_headers += ['sched.h']
297 check_funcs += ['sched_yield', {'link_with': 'rt'}]
298 endif
299endif
300
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200301conf.set('HAVE_OT', 1)
302conf.set('HAVE_FALLBACK', 1)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200303conf.set_quoted('PACKAGE_NAME', 'HarfBuzz')
304conf.set_quoted('PACKAGE_VERSION', meson.project_version())
305
306foreach check : check_headers
307 name = check[0]
308
309 if cpp.has_header(name)
310 conf.set('HAVE_@0@'.format(name.to_upper().underscorify()), 1)
311 endif
312endforeach
313
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200314harfbuzz_extra_deps = []
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200315foreach check : check_funcs
316 name = check[0]
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200317 opts = check.get(1, {})
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200318 link_withs = opts.get('link_with', [])
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200319 check_deps = opts.get('deps', [])
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200320 extra_deps = []
321 found = true
322
323 # First try without linking
324
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200325 found = cpp.has_function(name, dependencies: check_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200326
327 if not found and link_withs.length() > 0
328 found = true
329
330 foreach link_with : link_withs
331 dep = cpp.find_library(link_with, required: false)
332 if dep.found()
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430333 extra_deps += dep
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200334 else
Ebrahim Byagowie8808c12020-03-24 19:15:09 +0430335 found = false
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200336 endif
337 endforeach
338
339 if found
Mathieu Duponchelle04bcdb92018-06-05 20:59:29 +0200340 found = cpp.has_function(name, dependencies: check_deps + extra_deps)
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200341 endif
342 endif
343
344 if found
Christoph Reiter03bd6ea2020-06-03 23:52:10 +0200345 harfbuzz_extra_deps += extra_deps
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200346 conf.set('HAVE_@0@'.format(name.to_upper()), 1)
347 endif
348endforeach
349
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200350if cpp.links(files('meson-cc-tests/intel-atomic-primitives-test.c'), name: 'Intel atomics')
351 conf.set('HAVE_INTEL_ATOMIC_PRIMITIVES', 1)
352endif
353
354if cpp.links(files('meson-cc-tests/solaris-atomic-operations.c'), name: 'Solaris atomic ops')
355 conf.set('HAVE_SOLARIS_ATOMIC_OPS', 1)
356endif
357
358subdir('src')
359subdir('util')
Tim-Philipp Müller6147df32018-11-14 10:12:40 +0000360
361if not get_option('tests').disabled()
362 subdir('test')
363endif
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200364
Ebrahim Byagowi702847a2020-06-29 00:39:43 +0430365if not get_option('benchmark').disabled() and \
366 ((host_machine.system() != 'windows' and \
367 not meson.is_subproject() and \
368 not meson.is_cross_build()) or get_option('benchmark').enabled())
Ebrahim Byagowi95b10812020-06-09 17:37:36 +0430369 subdir('perf')
370endif
371
Tim-Philipp Müller3dd7b212020-05-17 00:12:08 +0100372if not get_option('gtk_doc').disabled()
373 subdir('docs')
374endif
375
Ebrahim Byagowia6bcc572020-06-20 14:19:12 +0430376if not meson.is_subproject()
377 meson.add_dist_script('write-tarball-revision.py')
378endif
Ebrahim Byagowi03bd3ef2020-06-19 10:32:46 +0430379
Mathieu Duponchelle920efc02018-05-17 01:28:53 +0200380configure_file(output: 'config.h', configuration: conf)
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430381
382summary({'prefix': get_option('prefix'),
383 'bindir': get_option('bindir'),
384 'libdir': get_option('libdir'),
385 'includedir': get_option('includedir'),
386 'datadir': get_option('datadir'),
387 }, section: 'Directories')
388summary({'Builtin': true,
389 'Glib': conf.get('HAVE_GLIB', 0) == 1,
390 'ICU': conf.get('HAVE_ICU', 0) == 1,
391 }, bool_yn: true, section: 'Unicode callbacks (you want at least one)')
392summary({'FreeType': conf.get('HAVE_FREETYPE', 0) == 1,
393 }, bool_yn: true, section: 'Font callbacks (the more the merrier)')
394summary({'Cairo': conf.get('HAVE_CAIRO', 0) == 1,
395 'Fontconfig': conf.get('HAVE_FONTCONFIG', 0) == 1,
396 }, bool_yn: true, section: 'Tools used for command-line utilities')
397summary({'Graphite2': conf.get('HAVE_GRAPHITE2', 0) == 1,
Ebrahim Byagowi65462c42020-06-05 01:08:08 +0430398 }, bool_yn: true, section: 'Additional shapers')
Ebrahim Byagowia9e83282020-05-21 16:28:24 +0430399summary({'CoreText': conf.get('HAVE_CORETEXT', 0) == 1,
400 'DirectWrite': conf.get('HAVE_DIRECTWRITE', 0) == 1,
401 'GDI': conf.get('HAVE_GDI', 0) == 1,
402 'Uniscribe': conf.get('HAVE_UNISCRIBE', 0) == 1,
403 }, bool_yn: true, section: 'Platform shapers (not normally needed)')
404summary({'Documentation': conf.get('HAVE_GTK_DOC', 0) == 1,
405 'GObject bindings': conf.get('HAVE_GOBJECT', 0) == 1,
406 'Introspection': conf.get('HAVE_INTROSPECTION', 0) == 1,
407 }, bool_yn: true, section: 'Other features')