02901436d4
Allows to use the Meson build system to build the project.
60 lines
1.3 KiB
Meson
60 lines
1.3 KiB
Meson
variables_data = configuration_data()
|
|
variables_data.set('abs_top_srcdir', meson.project_source_root())
|
|
variables_data.set('abs_top_builddir', meson.project_build_root())
|
|
variables_data.set('PYTHON', pymod.find_installation().full_path())
|
|
|
|
variables_sh = configure_file(
|
|
input: 'variables.sh.in',
|
|
output: '@BASENAME@',
|
|
configuration: variables_data
|
|
)
|
|
|
|
script_tests = [
|
|
'cli',
|
|
'formats',
|
|
'seq',
|
|
'stall',
|
|
'threading',
|
|
]
|
|
|
|
foreach script_test : script_tests
|
|
test(script_test,
|
|
files('test_' + script_test + '.sh'),
|
|
workdir: meson.current_build_dir()
|
|
)
|
|
endforeach
|
|
|
|
test_connections = executable('test_connections',
|
|
'test_connections.c',
|
|
dependencies: libvips_dep,
|
|
)
|
|
|
|
test_connections_sh = configure_file(
|
|
input: 'test_connections.sh',
|
|
output: 'test_connections.sh',
|
|
copy: true,
|
|
)
|
|
|
|
test('connections',
|
|
test_connections_sh,
|
|
depends: test_connections,
|
|
workdir: meson.current_build_dir(),
|
|
)
|
|
|
|
test_descriptors = executable('test_descriptors',
|
|
'test_descriptors.c',
|
|
dependencies: libvips_dep,
|
|
)
|
|
|
|
test_descriptors_sh = configure_file(
|
|
input: 'test_descriptors.sh',
|
|
output: 'test_descriptors.sh',
|
|
copy: true,
|
|
)
|
|
|
|
test('descriptors',
|
|
test_descriptors_sh,
|
|
depends: test_descriptors,
|
|
workdir: meson.current_build_dir(),
|
|
)
|