Move the image load benchmark under tools

This commit is contained in:
Přemysl Eric Janouch 2023-06-06 17:54:27 +02:00
parent 34388b93ea
commit de377d3eae
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 6 additions and 7 deletions

View File

@ -165,12 +165,6 @@ exe = executable('fiv', 'fiv.c', 'fiv-view.c', 'fiv-io.c', 'fiv-context-menu.c',
dependencies : dependencies, dependencies : dependencies,
win_subsystem : 'windows', win_subsystem : 'windows',
) )
if gdkpixbuf.found()
executable('io-benchmark', 'fiv-io-benchmark.c', 'fiv-io.c',
'xdg.c', tiff_tables,
build_by_default : false,
dependencies : [dependencies, gdkpixbuf])
endif
desktops += 'fiv-jpegcrop.desktop' desktops += 'fiv-jpegcrop.desktop'
jpegcrop = executable('fiv-jpegcrop', 'fiv-jpegcrop.c', rc, config, jpegcrop = executable('fiv-jpegcrop', 'fiv-jpegcrop.c', rc, config,
@ -194,6 +188,11 @@ if get_option('tools').enabled()
dependencies : tools_dependencies, dependencies : tools_dependencies,
c_args: tools_c_args) c_args: tools_c_args)
endforeach endforeach
if gdkpixbuf.found()
executable('benchmark-io', 'tools/benchmark-io.c', 'fiv-io.c', 'xdg.c',
tiff_tables, dependencies : [dependencies, gdkpixbuf])
endif
endif endif
gsettings_schemas = ['fiv.gschema.xml'] gsettings_schemas = ['fiv.gschema.xml']

View File

@ -1,5 +1,5 @@
// //
// fiv-io-benchmark.c: see if we suck // benchmark-io.c: measure and compare image loading times
// //
// Copyright (c) 2021 - 2022, Přemysl Eric Janouch <p@janouch.name> // Copyright (c) 2021 - 2022, Přemysl Eric Janouch <p@janouch.name>
// //