aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-06 17:54:27 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-08 18:59:20 +0200
commitde377d3eaec2b07f16d841ac79a97a8282c7e983 (patch)
tree8c3270d647edb60844a25afbfb8ef80a56a7aa3c
parent34388b93ea92a979d0575ecc1aee48b854ffcc9c (diff)
downloadfiv-de377d3eaec2b07f16d841ac79a97a8282c7e983.tar.gz
fiv-de377d3eaec2b07f16d841ac79a97a8282c7e983.tar.xz
fiv-de377d3eaec2b07f16d841ac79a97a8282c7e983.zip
Move the image load benchmark under tools
-rw-r--r--meson.build11
-rw-r--r--tools/benchmark-io.c (renamed from fiv-io-benchmark.c)2
2 files changed, 6 insertions, 7 deletions
diff --git a/meson.build b/meson.build
index 32ee8e6..43631df 100644
--- a/meson.build
+++ b/meson.build
@@ -165,12 +165,6 @@ exe = executable('fiv', 'fiv.c', 'fiv-view.c', 'fiv-io.c', 'fiv-context-menu.c',
dependencies : dependencies,
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'
jpegcrop = executable('fiv-jpegcrop', 'fiv-jpegcrop.c', rc, config,
@@ -194,6 +188,11 @@ if get_option('tools').enabled()
dependencies : tools_dependencies,
c_args: tools_c_args)
endforeach
+
+ if gdkpixbuf.found()
+ executable('benchmark-io', 'tools/benchmark-io.c', 'fiv-io.c', 'xdg.c',
+ tiff_tables, dependencies : [dependencies, gdkpixbuf])
+ endif
endif
gsettings_schemas = ['fiv.gschema.xml']
diff --git a/fiv-io-benchmark.c b/tools/benchmark-io.c
index 00406cd..be8fb8f 100644
--- a/fiv-io-benchmark.c
+++ b/tools/benchmark-io.c
@@ -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>
//