Fix #1002: New build-dependency xxd
authorColin Clark <colin.clark@cclark.uk>
Thu, 26 Jan 2023 13:15:17 +0000 (13:15 +0000)
committerColin Clark <colin.clark@cclark.uk>
Thu, 26 Jan 2023 13:15:17 +0000 (13:15 +0000)
https://github.com/BestImageViewer/geeqie/issues/1002#

src/meson.build

index 16c9a8a..83ae2fa 100644 (file)
@@ -256,14 +256,16 @@ ui_icons_h = custom_target('ui_icons', output : 'ui_icons.h',
 
 project_sources += ui_icons_h
 
-xxd = find_program('generate-ClayRGB1998-icc-h.sh', dirs : join_paths(meson.source_root(), 'scripts'))
+if conf_data.has('HAVE_LCMS')
+    xxd_sh = find_program('generate-ClayRGB1998-icc-h.sh', dirs : join_paths(meson.source_root(), 'scripts'))
 
-ClayRGB1998_icc_h = custom_target('ClayRGB1998',
-                    input: 'ClayRGB1998.icc',
-                    output : 'ClayRGB1998_icc.h',
-                    command : [xxd, '@INPUT@', '@OUTPUT@'])
+    ClayRGB1998_icc_h = custom_target('ClayRGB1998',
+                        input: 'ClayRGB1998.icc',
+                        output : 'ClayRGB1998_icc.h',
+                        command : [xxd_sh, '@INPUT@', '@OUTPUT@'])
 
-project_sources += ClayRGB1998_icc_h
+    project_sources += ClayRGB1998_icc_h
+endif
 
 executable('geeqie', project_sources,
 dependencies : [