-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathmeson.build
More file actions
725 lines (617 loc) · 21.8 KB
/
Copy pathmeson.build
File metadata and controls
725 lines (617 loc) · 21.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
project('babl', 'c',
license: 'LGPL3+',
version: '0.1.129',
meson_version: '>=0.60.0',
default_options: [
#'c_std=none', # c11 breaks Linux/GNU, gnu11 breaks Windows/MSVC, so set to none
'buildtype=debugoptimized'
],
# https://gitlab.gnome.org/GNOME/babl/issues/
)
# Making releases on the stable branch:
# BABL_MICRO_VERSION += 1;
# BABL_INTERFACE_AGE += 1;
# BABL_BINARY_AGE += 1;
# if any functions have been added,
# set BABL_INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set BABL_BINARY_AGE _and_ BABL_INTERFACE_AGE to 0.
conf = configuration_data()
pkgconfig = import('pkgconfig')
gnome = import('gnome')
python = import('python').find_installation()
cc = meson.get_compiler('c')
prefix = get_option('prefix')
buildtype = get_option('buildtype')
babl_prefix = get_option('prefix')
babl_libdir = babl_prefix / get_option('libdir')
project_build_root = meson.current_build_dir()
project_source_root = meson.current_source_dir()
################################################################################
# Projects infos
version = meson.project_version()
array_version = version.split('.')
major_version = array_version[0].to_int()
minor_version = array_version[1].to_int()
micro_version = array_version[2].to_int()
# API & pkg-config version
api_version = '@0@.@1@'.format(major_version, minor_version)
lib_name = meson.project_name() + '-' + api_version
# Libtool versioning
interface_age = 1
binary_age = 100 * minor_version + micro_version
lt_current = binary_age - interface_age
lt_revision = interface_age
#Computed differently but same as so_version of gimp meson.build
so_version = '@0@.@1@.@2@'.format(0, lt_current, lt_revision)
#Same as darwin_versions of glib meson.build which also follows libtool versioning
darwin_versions = [lt_current + 1, '@0@.@1@'.format(lt_current + 1, lt_revision)]
lib_version = '@0@:@1@:@2@'.format(lt_current, interface_age, lt_current)
stability_version_number = (major_version != 0 ? minor_version : micro_version)
stable = (stability_version_number % 2 == 0)
conf.set10('BABL_UNSTABLE', not stable, description:
'Define to 1 if this is an unstable version of BABL.')
conf.set ('BABL_MAJOR_VERSION', '@0@'.format(major_version))
conf.set ('BABL_MINOR_VERSION', '@0@'.format(minor_version))
conf.set ('BABL_MICRO_VERSION', '@0@'.format(micro_version))
conf.set_quoted('BABL_INTERFACE_AGE', '@0@'.format(interface_age))
conf.set_quoted('BABL_BINARY_AGE', '@0@'.format(binary_age))
conf.set_quoted('BABL_VERSION', '@0@'.format(version))
conf.set_quoted('BABL_REAL_VERSION', '@0@'.format(version))
conf.set_quoted('BABL_API_VERSION', '@0@'.format(api_version))
conf.set_quoted('BABL_RELEASE', '@0@'.format(api_version))
conf.set_quoted('BABL_LIBRARY_VERSION', '@0@'.format(lib_version))
conf.set_quoted('BABL_CURRENT_MINUS_AGE','@0@'.format(0))
conf.set_quoted('BABL_LIBRARY', '@0@'.format(lib_name))
################################################################################
# Host system environment
platform_android = false
platform_osx = false
platform_win32 = false
host_cpu_family = host_machine.cpu_family()
if host_cpu_family == 'x86'
have_x86 = true
conf.set10('ARCH_X86', true)
elif host_cpu_family == 'x86_64'
have_x86 = true
conf.set10('ARCH_X86', true)
conf.set10('ARCH_X86_64', true)
elif host_cpu_family == 'ppc'
have_ppc = true
conf.set10('ARCH_PPC', true)
elif host_cpu_family == 'ppc64'
have_ppc = true
conf.set10('ARCH_PPC', true)
conf.set10('ARCH_PPC64', true)
elif host_cpu_family == 'arm'
have_arm = true
conf.set10('ARCH_ARM', true)
elif host_cpu_family == 'aarch64'
have_aarch64 = true
conf.set10('ARCH_AARCH64', true)
endif
host_os = host_machine.system()
message('Host os: ' + host_os)
platform_win32 = (host_os.startswith('mingw') or
host_os.startswith('cygwin') or
host_os.startswith('windows'))
platform_osx = host_os.startswith('darwin')
platform_android = host_os.contains('android')
path_sep = ( platform_win32 ? ';' : ':' )
dirs_sep = ( platform_win32 ? '\\\\' : '/' )
if platform_win32
lib_ext = '.dll'
elif platform_osx
lib_ext = '.dylib'
else
lib_ext = '.so'
endif
conf.set('BABL_PATH_SEPARATOR', '\'' + path_sep + '\'', description:
'separator between paths in BABL_PATH')
conf.set_quoted('BABL_DIR_SEPARATOR', dirs_sep, description:
'separator between directories in BABL_PATH')
conf.set_quoted('SHREXT', lib_ext, description:
'File extension for shared libraries')
# assume *nix if not android/osx/win32
platform_unix = not (
platform_android or
platform_osx or
platform_win32
)
# Build system environment
build_os = build_machine.system()
message('Build os: ' + build_os)
build_platform_win32 = (build_os.startswith('mingw') or
build_os.startswith('cygwin') or
build_os.startswith('windows'))
# Only try to run compiled programs if native compile or cross-compile
# and have exe wrapper. If we don't need a wrapper (e.g. 32 bit build in
# 64-bit environment) then set proprty has_exe_wrapper=true in cross
# file
can_run_host_binaries = meson.can_run_host_binaries()
################################################################################
# Compiler arguments
common_c_flags = []
common_l_flags = []
common_c_flags += cc.get_supported_arguments(
['-fno-unsafe-math-optimizations','-ftree-vectorize']
)
extra_warnings_list = [
'-Wdeclaration-after-statement',
'-Winit-self',
'-Wmissing-declarations',
'-Wmissing-prototypes',
'-Wold-style-definition',
'-Wpointer-arith',
]
common_c_flags += cc.get_supported_arguments(extra_warnings_list)
# DEBUG SYMBOLS
debugging_format = 'Disabled'
if buildtype == 'debug' or buildtype == 'debugoptimized'
if not platform_win32
# DWARF symbols for GCC and LLDB on Unix
debugging_format = 'Native'
elif cc.get_argument_syntax() == 'msvc'
# CodeView symbols for DIA or DbgHelp debuggers and LLDB on Windows
debugging_format = 'Native'
elif platform_win32 and get_option('win-debugging') == 'native' and cc.has_argument('-gcodeview') and cc.has_link_argument('-Wl,--pdb=') and cc.get_id() == 'clang'
# CodeView symbols for DIA or DbgHelp debuggers and LLDB on Windows
debugging_format = 'Native'
common_c_flags += '-gcodeview'
common_l_flags += '-Wl,--pdb='
else
# DWARF symbols for GCC and LLDB on Windows (fallback)
debugging_format = 'DWARF'
if cc.get_id() == 'clang'
# Optimize DWARF symbols to Dr. Mingw (not needed anymore)
# https://github.com/jrfonseca/drmingw/issues/42
#common_c_flags += '-gdwarf-aranges'
endif
endif
endif
if platform_win32 and cc.get_id() == 'clang'
# Workaround to get colored output
# https://github.com/msys2/MINGW-packages/issues/2988
common_c_flags += '-fansi-escape-codes'
endif
if cc.get_argument_syntax() == 'msvc'
#Needed otherwise MSVC get angry with the headers provided by UCRT
common_c_flags += ['/D_USE_MATH_DEFINES']
endif
if cc.get_id() == 'msvc'
common_c_flags += ['/std:c11']
common_c_flags += ['/experimental:c11atomics']
common_c_flags += ['/D__restrict__=__restrict']
endif
if platform_osx
osx_cflags = '-Werror=unguarded-availability-new'
if cc.has_argument(osx_cflags)
#needed to allow targeting older macOS while building on newer macOS (like on MS Windows)
add_project_arguments(osx_cflags, language: 'c')
endif
endif
add_project_arguments(common_c_flags, language: 'c')
# Linker arguments
if platform_win32 and cc.has_link_argument('-Wl,--no-undefined')
no_undefined = '-Wl,--no-undefined'
else
no_undefined = []
endif
if host_cpu_family == 'x86_64'
x86_64_v2_flags = cc.get_supported_arguments(['-march=x86-64','-msse2', '-msse2','-msse4.1','-msse4.2','-mpopcnt','-mssse3'])
x86_64_v3_flags = x86_64_v2_flags + cc.get_supported_arguments(['-mavx','-mavx2','-mf16c','-mfma','-mmovbe', '-mbmi', '-mbmi2'])
x86_64_v4_flags = x86_64_v3_flags + cc.get_supported_arguments(['-mavx512f', '-mavx512cd', '-mavx512bw', '-mavx512vl', '-mavx512dq'])
x86_64_v2_flags += '-DX86_64_V2'
x86_64_v3_flags += '-DX86_64_V3'
x86_64_v4_flags += '-DX86_64_V4'
elif host_cpu_family == 'arm'
arm_neon_flags = cc.get_supported_arguments(['-mfpu=neon-vfpv3', '-mfpu=neon-vfpv4'])
arm_neon_flags += '-DARM_NEON'
elif host_cpu_family == 'aarch64'
common_c_flags += cc.get_supported_arguments(['-mfpu=neon-fp-armv8', '-ftree-vectorize'])
endif
if host_machine.system() == 'emscripten'
common_l_flags += ['-s', 'TOTAL_MEMORY=142MB']
endif
add_project_link_arguments(common_l_flags, language: 'c')
################################################################################
# Check for compiler CPU extensions
# intialize these to nothing, so meson doesn't complain on non-x86
have_mmx = false
have_sse = false
have_sse2 = false
have_sse4_1 = false
have_avx2 = false
have_f16c = false
sse2_cflags = []
f16c_cflags = []
sse4_1_cflags = []
avx2_cflags = []
# mmx assembly
if get_option('enable-mmx') and cc.has_argument('-mmmx')
if cc.compiles('asm ("movq 0, %mm0");')
message('mmx assembly available')
add_project_arguments('-mmmx', language: 'c')
conf.set('USE_MMX', 1, description:
'Define to 1 if MMX assembly is available.')
have_mmx = true
# sse assembly
if get_option('enable-sse') and cc.has_argument('-msse')
if cc.compiles('asm ("movntps %xmm0, 0");')
add_project_arguments('-msse', language: 'c')
message('sse assembly available')
conf.set('USE_SSE', 1, description:
'Define to 1 if SSE assembly is available.')
have_sse = true
sse_args = ['-mfpmath=sse']
if platform_win32
sse_args += '-mstackrealign'
endif
foreach sse_arg : sse_args
if cc.has_argument(sse_arg)
add_project_arguments(sse_arg, language: 'c')
endif
endforeach
# sse2 assembly
if get_option('enable-sse2') and cc.has_argument('-msse2')
if cc.compiles('asm ("punpckhwd %xmm0,%xmm1");')
message('sse2 assembly available')
sse2_cflags = '-msse2'
conf.set('USE_SSE2', 1, description:
'Define to 1 if sse2 assembly is available.')
have_sse2 = true
# sse4.1 assembly
if get_option('enable-sse4_1') and cc.has_argument('-msse4.1')
if cc.compiles('asm ("pmovzxbd %xmm0,%xmm1");')
message('sse4.1 assembly available')
sse4_1_cflags = '-msse4.1'
conf.set('USE_SSE4_1', 1, description:
'Define to 1 if sse4.1 assembly is available.')
have_sse4_1 = true
endif
# avx2 assembly
if get_option('enable-avx2') and cc.has_argument('-mavx2')
if cc.compiles('asm ("vpgatherdd %ymm0,(%eax,%ymm1,4),%ymm2");')
message('avx2 assembly available')
avx2_cflags = '-mavx2'
conf.set('USE_AVX2', 1, description:
'Define to 1 if avx2 assembly is available.')
have_avx2 = true
endif
endif
endif
endif
endif
endif
if get_option('enable-f16c') and cc.has_argument('-mf16c')
if cc.compiles(
'asm ("#include <immintrin.h>],' +
'[__m128 val = _mm_cvtph_ps ((__m128i)_mm_setzero_ps());' +
' __m128i val2 = _mm_insert_epi64((__m128i)_mm_setzero_ps(),0,0);");'
)
message('Can compile half-floating point code (f16c)')
f16c_cflags = '-mf16c'
conf.set('USE_F16C', 1, description:
'Define to 1 if f16c intrinsics are available.')
have_f16c = true
endif
endif
endif
endif
endif
################################################################################
# Check environment
# Check headers
check_headers = [
['HAVE_STDATOMIC_H', 'stdatomic.h']
]
# Don't check for dynamic load on windows
if not platform_win32
check_headers += [
['HAVE_DLFCN_H', 'dlfcn.h'],
['HAVE_DL_H', 'dl.h'],
]
endif
foreach header: check_headers
if cc.has_header(header[1])
conf.set(header[0], 1, description:
'Define to 1 if the <@0@> header is available'.format(header[1]))
endif
endforeach
# Check functions
# general
check_functions = [
['HAVE_GETTIMEOFDAY', 'gettimeofday', '<sys/time.h>'],
['HAVE_SRANDOM', 'srandom' , '<stdlib.h>'],
]
foreach func: check_functions
if cc.has_function(func[1], prefix: '#include ' + func[2])
conf.set(func[0], 1, description:
'Define to 1 if the @0@() function is available'.format(func[1]))
endif
endforeach
# Check for uncommon features
# babl_fish_reference(), create_name() would like this
if cc.compiles('int main() { static __thread char buf[1024]; }')
conf.set('HAVE_TLS', 1, description:
'Define to 1 if compiler supports __thread')
endif
################################################################################
# Dependencies
math = cc.find_library('m', required: false)
thread = dependency('threads', required: false)
if platform_android
log = cc.find_library('log', required: false)
else
log = []
endif
if platform_win32
dl = []
else
dl = cc.find_library('dl', required: false)
endif
# gobject introspection
g_ir = dependency('gobject-introspection-1.0', version: '>=1.32.0',
required: false)
# lcms
lcms = dependency('lcms2', version: '>=2.8', required: get_option('with-lcms'))
if lcms.found()
conf.set('HAVE_LCMS', 1, description:
'Define to 1 if liblcms2 is available')
endif
# vapigen
vapigen = dependency('vapigen', version:'>=0.20.0', required: false)
################################################################################
# Build utilities
# build from git repo
git_bin = find_program('git', required: false, native: true)
# docs
rsvg_convert_bin = find_program('rsvg-convert', required: false,
native: true)
w3m_bin = find_program('w3m', required: false, native: true)
################################################################################
# Build flags
# Docs - don't build by default in cross-build environments
build_docs = true
if get_option('with-docs') == 'auto'
if meson.is_cross_build()
build_docs = false
message(
'configure with -Ddocs=true to cross-build documentation'
)
endif
elif get_option('with-docs') == 'false'
build_docs = false
endif
# Introspection - don't build by default on cross-build environments
if get_option('enable-gir') == 'auto'
build_gir = meson.is_cross_build() ? false : true
else
build_gir = get_option('enable-gir') == 'true' ? true : false
endif
if not g_ir.found()
build_gir = false
endif
if build_gir and get_option('default_library') == 'static'
warning('Introspection is not supported with static libraries. See: https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/187')
build_gir = false
endif
if build_gir
g_ir_compiler = find_program('g-ir-compiler')
if platform_osx
make_typelib = find_program('tools'/'make-mac-typelib.py')
endif
endif
# Vapi - only build if building introspection
if build_gir and get_option('enable-vapi') and vapigen.found()
build_vapi = true
else
build_vapi = false
endif
gi_docgen = find_program('gi-docgen', required: get_option('gi-docgen'))
if get_option('gi-docgen').auto()
build_gi_docgen = build_gir and gi_docgen.found() and not meson.is_cross_build()
else
build_gi_docgen = get_option('gi-docgen').enabled()
if build_gi_docgen and not build_gir
warning('-Denable-gir=true is required to build gi-docgen documentation')
build_gi_docgen = false
endif
endif
# Build relocatable babl
relocatable = false
if get_option('relocatable-bundle') == 'platform-default'
if platform_win32 or platform_osx
relocatable = true
endif
else
relocatable = (get_option('relocatable-bundle') == 'yes')
endif
conf.set('ENABLE_RELOCATABLE', relocatable)
################################################################################
# Configuration files
# This should not be made visible in babl_dep due to possible name clash
# when built as a sub-project.
rootInclude = include_directories('.')
# config.h
configure_file(
output: 'config.h',
configuration: conf
)
# If git is available, always check if git-version.h should be
# updated. If git is not available, don't do anything if git-version.h
# already exists because then we are probably working with a tarball
# in which case the git-version.h we ship is correct.
is_git_repository = run_command(python, '-c',
'import sys,os; sys.exit(0 if os.path.exists(".git") else 1)',
check: false
).returncode() == 0
has_version_h = run_command(python, '-c',
'import sys,os; sys.exit(0 if os.path.exists("git-version.h") else 1)',
check: false
).returncode() == 0
if is_git_repository or not has_version_h
git_version_h = vcs_tag(
input : 'git-version.h.in',
output: 'git-version.h',
replace_string: '@BABL_GIT_VERSION@',
fallback: 'unknown (unsupported)',
command: [ git_bin.full_path(), 'describe', '--always' ],
)
if not meson.is_subproject()
meson.add_dist_script(
[ 'ninja', 'git-version.h', ],
)
meson.add_dist_script(
python, '-c',
'from pathlib import Path; from shutil import copy2; import sys, os; target_dir = Path(os.environ.get("MESON_DIST_ROOT")); target_dir.mkdir(parents=True, exist_ok=True); copy2(sys.argv[1], target_dir)', git_version_h.full_path()
)
endif
if not is_git_repository or not git_bin.found()
# We create git-version.h but know it will be useless because we are
# not in a git repository. Output a warning.
git_warning = '''
UNSUPPORTED BUILD!
This is not a distribution tarball (git-version.h missing) and
we could not establish the corresponding commit (either this is
not a git repository or git command is missing). Therefore
we have no reference for debugging.
Please either use release tarballs or build from the repository.
'''
warning(git_warning)
endif
else
git_version_h = files('git-version.h')
endif
################################################################################
# Global variables
xml_insert_file = files('tools' / 'xml-insert.py')
authors_file = files('AUTHORS')
news_file = files('NEWS')
todo_file = files('TODO')
export_symbols_file = files('babl/babl.def')
gen_babl_map_file = files('tools' / 'gen_babl_map.py')
################################################################################
# Install debug data (.pdb) on Windows
# Ideally meson should take care of it automatically.
# See: https://github.com/mesonbuild/meson/issues/12977
if platform_win32 and debugging_format == 'Native' and cc.get_argument_syntax() != 'msvc'
install_win_debug_script = find_program('tools/meson_install_win_debug.py')
meson.add_install_script(install_win_debug_script)
endif
################################################################################
# Subdirs
subdir('babl')
subdir('extensions')
subdir('tests')
subdir('tools')
if build_docs or build_gi_docgen
subdir('docs')
endif
subdir('bin')
if host_machine.system() != 'emscripten'
nm = find_program('nm', required: false)
# Verify .def files for Windows linking (and for macOS too when -Wl,-exported_symbols_list is used).
# We check this on non-Windows/non-macOS platform (Debian) on CI, and on Windows and macOS itself.
# (This also checks if .gir files have parity with the library so parity with .def files too)
custom_target('check-def-files',
input: [
babl_def,
build_gir ? babl_gir : [],
],
depends: [
babl
],
env: nm.found() ? { 'NM': nm.full_path() } : {},
output: [ 'check-def-files', ],
command: [
python, meson.project_source_root() / 'tools' / 'defcheck.py', '@INPUT@',
],
build_by_default: true,
)
endif
# Create README file from web page
if w3m_bin.found() and build_docs
custom_target('README',
input: index_html,
output: 'README',
command: [
w3m_bin,
'-cols', '72',
'-dump',
'@INPUT@',
],
capture: true,
build_by_default: true
)
endif
# pkg-config file
pkgconfig.generate(
babl,
filebase: 'babl-' + api_version,
name: 'babl',
description: 'Pixel encoding and color space conversion engine.',
version: meson.project_version(),
subdirs: lib_name,
variables: [
'datadir=${prefix}/share',
'pluginsdir=${libdir}/@0@'.format(lib_name),
'girdir=${datadir}/gir-1.0',
'typelibdir=${libdir}/girepository-1.0',
],
uninstalled_variables: [
'babl_libdir=${prefix}/babl',
'pluginsdir=${prefix}/extensions',
'girdir=${babl_libdir}',
'typelibdir=${babl_libdir}',
],
)
# dependency for wrap builds
babl_dep = declare_dependency(
include_directories: bablInclude,
link_with : babl,
sources: [
babl_version_h,
build_gir ? babl_gir : []
],
variables: {
'babl_path' : babl_extensions_build_dir,
'babl_libdir' : babl_library_build_dir,
'girdir' : babl_library_build_dir,
'typelibdir' : babl_library_build_dir,
},
)
meson.override_dependency('babl-' + api_version, babl_dep)
################################################################################
# Build summary
summary(
{
'prefix': babl_prefix,
'libdir': get_option('libdir'),
}, section: 'Directories'
)
summary(
{
'BABL docs (babl website)' : build_docs,
'gi-docgen' : build_gi_docgen,
'Introspection' : build_gir,
'VALA support' : build_vapi,
'Debug symbols format' : debugging_format,
'relocatable' : relocatable,
}, section: 'Optional features'
)
summary(
{
'mmx' : have_mmx,
'sse' : have_sse,
'sse2' : have_sse2,
'sse4_1' : have_sse4_1,
'avx2' : have_avx2,
'f16c (half fp)' : have_f16c,
}, section: 'Processor extensions'
)
summary(
{
'lcms' : lcms.found(),
}, section: 'Optional dependencies'
)