From 02ca67284ef393d1e17ae95f257f2085cdaf8d6f Mon Sep 17 00:00:00 2001 From: InvisibleUp Date: Sat, 23 Sep 2023 14:08:41 -0700 Subject: [PATCH] Support non-Windows systems in meson.build again --- meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 988a6f4..c5e6fb4 100644 --- a/meson.build +++ b/meson.build @@ -61,10 +61,14 @@ lSDL2 = dependency('SDL2', static: true) # Windows resources # todo: gate this off if not on Windows -windows = import('windows') -WIN_RSRC = windows.compile_resources( - 'rsrc/WIN32/main.rc', -) +if target_machine.system() == 'windows' + windows = import('windows') + WIN_RSRC = windows.compile_resources( + 'rsrc/WIN32/main.rc', + ) +else + WIN_RSRC = [] +endif # Hardware libraries