d80185060d
* Meson: remove space before colon Since key-value pairs in Python are usually delimited as colon+space instead of space+colon+space. * Meson: disable modules by default when building static libraries Corresponds to autotools. See: #2323. * Meson: make modules a feature option Corresponds to autotools, where modules are built automatically if enabled and supported. * Meson: specify minimum required GLib version * Meson: fix indentation * Remove unused function checks * Simplify GLib configure checks * Meson: ensure modules doesn't include enumtypes sources Since that would cause duplicate symbols. (`soname_header` can also be safely removed here, since that is already included in `libvips_headers_dep`)
43 lines
862 B
Meson
43 lines
862 B
Meson
tools = [
|
|
'vips',
|
|
'vipsedit',
|
|
'vipsthumbnail',
|
|
'vipsheader'
|
|
]
|
|
|
|
foreach tool : tools
|
|
executable(tool,
|
|
tool + '.c',
|
|
dependencies: libvips_dep,
|
|
install: true
|
|
)
|
|
endforeach
|
|
|
|
scripts = [
|
|
'light_correct.in',
|
|
'shrink_width.in',
|
|
'batch_image_convert.in',
|
|
'batch_rubber_sheet.in',
|
|
'batch_crop.in',
|
|
]
|
|
|
|
script_data = configuration_data()
|
|
script_data.set('prefix', get_option('prefix'))
|
|
foreach script : scripts
|
|
configure_file(
|
|
input: script,
|
|
output: '@BASENAME@',
|
|
install: true,
|
|
install_dir: get_option('prefix') / get_option('bindir'),
|
|
install_mode: 'rwxr-xr-x',
|
|
configuration: script_data
|
|
)
|
|
endforeach
|
|
|
|
install_data(
|
|
'vipsprofile',
|
|
'vips-8.13',
|
|
install_dir: get_option('prefix') / get_option('bindir'),
|
|
install_mode: 'rwxr-xr-x',
|
|
)
|