Build tools with Meson as well
This commit is contained in:
parent
84f8c9436f
commit
60a8ee7a80
13
meson.build
13
meson.build
@ -115,6 +115,19 @@ jpegcrop = executable('fiv-jpegcrop', 'fiv-jpegcrop.c',
|
|||||||
install_data('fiv-jpegcrop.desktop',
|
install_data('fiv-jpegcrop.desktop',
|
||||||
install_dir : get_option('datadir') / 'applications')
|
install_dir : get_option('datadir') / 'applications')
|
||||||
|
|
||||||
|
if get_option('tools').enabled()
|
||||||
|
# libjq 1.6 lacks a pkg-config file, and there is no release in sight.
|
||||||
|
# libjq 1.6 is required.
|
||||||
|
tools_dependencies = [cc.find_library('libjq'), dependency('libpng')]
|
||||||
|
tools_c_args = cc.get_supported_arguments(
|
||||||
|
'-Wno-unused-function', '-Wno-unused-parameter')
|
||||||
|
foreach tool : ['pnginfo', 'jpeginfo', 'tiffinfo', 'webpinfo', 'bmffinfo']
|
||||||
|
executable(tool, 'tools/' + tool + '.c',
|
||||||
|
dependencies : tools_dependencies,
|
||||||
|
c_args: tools_c_args)
|
||||||
|
endforeach
|
||||||
|
endif
|
||||||
|
|
||||||
# XXX: With gdk-pixbuf, this even depends on currently installed modules.
|
# XXX: With gdk-pixbuf, this even depends on currently installed modules.
|
||||||
if meson.is_cross_build()
|
if meson.is_cross_build()
|
||||||
install_data('fiv.desktop',
|
install_data('fiv.desktop',
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
option('tools', type : 'feature', value : 'disabled',
|
||||||
|
description : 'Build a few extra file inspection tools')
|
||||||
|
|
||||||
option('lcms2', type : 'feature', value : 'auto',
|
option('lcms2', type : 'feature', value : 'auto',
|
||||||
description : 'Build with Little CMS colour management')
|
description : 'Build with Little CMS colour management')
|
||||||
option('libjpegqs', type : 'feature', value : 'auto',
|
option('libjpegqs', type : 'feature', value : 'auto',
|
||||||
|
5
tools/.gitignore
vendored
5
tools/.gitignore
vendored
@ -1,5 +0,0 @@
|
|||||||
/pnginfo
|
|
||||||
/jpeginfo
|
|
||||||
/tiffinfo
|
|
||||||
/webpinfo
|
|
||||||
/bmffinfo
|
|
@ -1,15 +0,0 @@
|
|||||||
SHELL = /bin/sh
|
|
||||||
# libjq 1.6 lacks a pkg-config file, and there is no release in sight.
|
|
||||||
# libjq 1.6 is required.
|
|
||||||
CFLAGS = -g -O2 -Wall -Wextra `pkg-config --cflags $(deps)`
|
|
||||||
LDLIBS = -ljq `pkg-config --libs $(deps)`
|
|
||||||
|
|
||||||
deps = libpng
|
|
||||||
targets = pnginfo jpeginfo tiffinfo webpinfo bmffinfo
|
|
||||||
|
|
||||||
all: $(targets)
|
|
||||||
$(targets): info.h
|
|
||||||
clean:
|
|
||||||
rm -f $(targets)
|
|
||||||
|
|
||||||
.PHONY: all clean
|
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
# Remove thumbnails with URIs pointing to at this moment non-existing files.
|
# Remove thumbnails with URIs pointing to at this moment non-existing files.
|
||||||
make pnginfo
|
ninja pnginfo
|
||||||
|
|
||||||
pnginfo=$(pwd)/pnginfo cache_home=${XDG_CACHE_HOME:-$HOME/.cache}
|
pnginfo=$(pwd)/pnginfo cache_home=${XDG_CACHE_HOME:-$HOME/.cache}
|
||||||
for size in normal large x-large xx-large; do
|
for size in normal large x-large xx-large; do
|
||||||
|
Loading…
Reference in New Issue
Block a user