Skip to contentSkip to conversation

Make png parameter to ui/meson.build independent of vnc

PATCH Applied Kshitij Suri 2 participants 3 messages May 10, 2022 – May 11, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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
---
 ui/meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
ui/meson.build +5 -1
index eba93b41e3..df65dbd0e0 100644
@@ -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
#1 lore raw

ui/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

#2 lore raw

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)
+endif

Queued, thanks. However, this can be just "softmmu_ss.add(png) without the if, so I adjusted that.

Paolo