... |
... |
@@ -27,7 +27,8 @@ project('freetype2', 'c', |
27
|
27
|
meson_version: '>= 0.55.0',
|
28
|
28
|
default_options: ['default_library=both'],
|
29
|
29
|
version: run_command('builds/meson/extract_freetype_version.py',
|
30
|
|
- 'include/freetype/freetype.h').stdout().strip(),
|
|
30
|
+ 'include/freetype/freetype.h',
|
|
31
|
+ check: true).stdout().strip(),
|
31
|
32
|
)
|
32
|
33
|
|
33
|
34
|
|
... |
... |
@@ -35,17 +36,18 @@ project('freetype2', 'c', |
35
|
36
|
# variable; we thus use an external command to have this functionality
|
36
|
37
|
# with older versions, too.
|
37
|
38
|
|
38
|
|
-python = import('python')
|
39
|
|
-python_exe = python.find_installation(required: true)
|
|
39
|
+python_exe = find_program('python3')
|
40
|
40
|
|
41
|
41
|
ft2_so_version = run_command(python_exe,
|
42
|
42
|
files('builds/meson/extract_libtool_version.py'),
|
43
|
43
|
'--soversion',
|
44
|
|
- files('builds/unix/configure.raw')).stdout().strip()
|
|
44
|
+ files('builds/unix/configure.raw'),
|
|
45
|
+ check: true).stdout().strip()
|
45
|
46
|
|
46
|
47
|
ft2_pkgconfig_version = run_command(python_exe,
|
47
|
48
|
files('builds/meson/extract_libtool_version.py'),
|
48
|
|
- files('builds/unix/configure.raw')).stdout().strip()
|
|
49
|
+ files('builds/unix/configure.raw'),
|
|
50
|
+ check: true).stdout().strip()
|
49
|
51
|
|
50
|
52
|
ft2_includes = include_directories('include')
|
51
|
53
|
|
... |
... |
@@ -70,7 +72,8 @@ ft2_sources = [ftmodule_h] |
70
|
72
|
ft_main_modules = run_command(python_exe,
|
71
|
73
|
files('builds/meson/parse_modules_cfg.py'),
|
72
|
74
|
'--format=main-modules',
|
73
|
|
- files('modules.cfg')).stdout().strip().split()
|
|
75
|
+ files('modules.cfg'),
|
|
76
|
+ check: true).stdout().strip().split()
|
74
|
77
|
|
75
|
78
|
ft2_sources += files([
|
76
|
79
|
'src/base/ftbase.c',
|
... |
... |
@@ -91,7 +94,8 @@ endforeach |
91
|
94
|
ft_aux_modules = run_command(python_exe,
|
92
|
95
|
files('builds/meson/parse_modules_cfg.py'),
|
93
|
96
|
'--format=aux-modules',
|
94
|
|
- files('modules.cfg')).stdout().strip().split()
|
|
97
|
+ files('modules.cfg'),
|
|
98
|
+ check: true).stdout().strip().split()
|
95
|
99
|
|
96
|
100
|
foreach auxmod: ft_aux_modules
|
97
|
101
|
source = auxmod
|
... |
... |
@@ -117,7 +121,8 @@ endforeach |
117
|
121
|
base_extensions = run_command(python_exe,
|
118
|
122
|
files('builds/meson/parse_modules_cfg.py'),
|
119
|
123
|
'--format=base-extensions-list',
|
120
|
|
- files('modules.cfg')).stdout().split()
|
|
124
|
+ files('modules.cfg'),
|
|
125
|
+ check: true).stdout().split()
|
121
|
126
|
|
122
|
127
|
foreach ext: base_extensions
|
123
|
128
|
ft2_sources += files('src/base/' + ext)
|