Support non-Windows systems in meson.build again

This commit is contained in:
InvisibleUp 2023-09-23 14:08:41 -07:00
parent 86b81e96fd
commit 02ca67284e

View File

@ -61,10 +61,14 @@ lSDL2 = dependency('SDL2', static: true)
# Windows resources # Windows resources
# todo: gate this off if not on Windows # todo: gate this off if not on Windows
windows = import('windows') if target_machine.system() == 'windows'
WIN_RSRC = windows.compile_resources( windows = import('windows')
'rsrc/WIN32/main.rc', WIN_RSRC = windows.compile_resources(
) 'rsrc/WIN32/main.rc',
)
else
WIN_RSRC = []
endif
# Hardware libraries # Hardware libraries