From fbbc2cfe8253d61c8a5eb27d352df4103a59b7fb Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Sat, 24 Sep 2022 19:42:13 +0300 Subject: [PATCH] tools: fix build with sdl2 --- src/tools/mapcvt.dpr | 7 +++++++ src/tools/mapgen.dpr | 6 ++++++ src/tools/wadcvt.dpr | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/src/tools/mapcvt.dpr b/src/tools/mapcvt.dpr index 799de30..5b7b7b4 100644 --- a/src/tools/mapcvt.dpr +++ b/src/tools/mapcvt.dpr @@ -1,10 +1,17 @@ {$INCLUDE ../shared/a_modes.inc} + {$IFDEF WINDOWS} {$APPTYPE CONSOLE} {$ENDIF} uses SysUtils, Classes, + {$IFDEF USE_SDL} + SDL in '../lib/sdl/sdl.pas', + {$ENDIF} + {$IFDEF USE_SDL2} + SDL2 in '../lib/sdl2/sdl2.pas', + {$ENDIF} sfs in '../sfs/sfs.pas', sfsPlainFS in '../sfs/sfsPlainFS.pas', sfsZipFS in '../sfs/sfsZipFS.pas', diff --git a/src/tools/mapgen.dpr b/src/tools/mapgen.dpr index 40ac72c..cdb4d35 100644 --- a/src/tools/mapgen.dpr +++ b/src/tools/mapgen.dpr @@ -5,6 +5,12 @@ uses SysUtils, Classes, + {$IFDEF USE_SDL} + SDL in '../lib/sdl/sdl.pas', + {$ENDIF} + {$IFDEF USE_SDL2} + SDL2 in '../lib/sdl2/sdl2.pas', + {$ENDIF} mempool in '../shared/mempool.pas', xstreams in '../shared/xstreams.pas', xparser in '../shared/xparser.pas', diff --git a/src/tools/wadcvt.dpr b/src/tools/wadcvt.dpr index 35cce86..b4827cb 100644 --- a/src/tools/wadcvt.dpr +++ b/src/tools/wadcvt.dpr @@ -27,6 +27,12 @@ program __wadcvt__; uses SysUtils, Classes, + {$IFDEF USE_SDL} + SDL in '../lib/sdl/sdl.pas', + {$ENDIF} + {$IFDEF USE_SDL2} + SDL2 in '../lib/sdl2/sdl2.pas', + {$ENDIF} {$I ../shared/vampimg.inc} mempool in '../shared/mempool.pas', utils in '../shared/utils.pas', -- 2.29.2