diff mbox series

[1/2] system: Restrict libSDL CPPFLAGS to vl.c

Message ID 20241212092632.18538-2-philmd@linaro.org
State New
Headers show
Series system/meson: Restrict libSDL/libpmem/libdaxctl CPPFLAGS to vl/physmem | expand

Commit Message

Philippe Mathieu-Daudé Dec. 12, 2024, 9:26 a.m. UTC
Only vl.c includes libSDL headers.
No need to pass them to all system_ss[] files.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 system/meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/system/meson.build b/system/meson.build
index 4952f4b2c7d..f7e2c8b826f 100644
--- a/system/meson.build
+++ b/system/meson.build
@@ -23,8 +23,11 @@  system_ss.add(files(
   'runstate-hmp-cmds.c',
   'runstate.c',
   'tpm-hmp-cmds.c',
+), libpmem, libdaxctl)
+
+system_ss.add(files(
   'vl.c',
-), sdl, libpmem, libdaxctl)
+), sdl)
 
 if have_tpm
   system_ss.add(files('tpm.c'))