core: enable firmware build without SDL2 installed

SConstruct includes SConscript.unix even for the firmware builds,
which resuls in error if SDL2 is not installed.
This commit workarounds the issue.

Is there a better way how to NOT include SConscript.unix via
SConstruct for firmware only builds?
pull/467/head
Pavol Rusnak 5 years ago
parent cc3f7b8d48
commit dbef93a30d
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -349,7 +349,10 @@ env.Replace(
] + CPPDEFINES_MOD,
ASPPFLAGS='$CFLAGS $CCFLAGS', )
env.ParseConfig('pkg-config --cflags --libs sdl2 SDL2_image')
try:
env.ParseConfig('pkg-config --cflags --libs sdl2 SDL2_image')
except OSError:
print("SDL2 not installed, Emulator build is not possible")
env.Replace(
PYTHON='python',

Loading…
Cancel
Save