Make png parameter to ui/meson.build independent of vnc
PATCH 1/1 Make png parameter to ui/meson.build independent of vnc
Currently png support is dependent on vnc for linking object file to libpng. This commit makes the parameter independent of vnc as it breaks system emulator with --disable-vnc unless --disable-png is added.
Fixes 9a0a119a382867dc9a5c2ae9348003bf79d84af2
Signed-off-by Kshitij Suri <[email protected]>
--- ui/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
ui/meson.build +5 -1
@@ -40,11 +40,15 @@ vnc_ss.add(files( 'vnc-jobs.c', 'vnc-clipboard.c', )) -vnc_ss.add(zlib, png, jpeg, gnutls) +vnc_ss.add(zlib, jpeg, gnutls) vnc_ss.add(when: sasl, if_true: files('vnc-auth-sasl.c')) softmmu_ss.add_all(when: vnc, if_true: vnc_ss) softmmu_ss.add(when: vnc, if_false: files('vnc-stubs.c')) +if png.found() + softmmu_ss.add(png) +endif + ui_modules = {} if curses.found()
Signature · 1 line
2.22.3
Paolo Bonzini
Appliedui/meson.build vnc_ss.add(files( · line 50
Quoted 3 lines
ui/meson.build +3
-0+if png.found() + softmmu_ss.add(png) +endif
Queued, thanks. However, this can be just "softmmu_ss.add(png) without the if, so I adjusted that.
Paolo
Thank you! Grateful for it.
Regards,
Kshitij Suri
Quoted 8 lines · Paolo Bonzini
ui/meson.build vnc_ss.add(files( · line 50
Quoted 3 lines
ui/meson.build +3
-0+if png.found() + softmmu_ss.add(png) +endifQueued, thanks. However, this can be just "
softmmu_ss.add(png)without the if, so I adjusted that.Paolo