DEADSOFTWARE

tools: fix build with sdl2
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Sat, 24 Sep 2022 16:42:13 +0000 (19:42 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Sat, 24 Sep 2022 16:42:13 +0000 (19:42 +0300)
src/tools/mapcvt.dpr
src/tools/mapgen.dpr
src/tools/wadcvt.dpr

index 799de30e10e7e20f9c6361f85be69bd22c38bb05..5b7b7b49743403960a9143776368f97a72dd0605 100644 (file)
@@ -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',
index 40ac72ce915865d1cc712111c3b0021f1367c09e..cdb4d3551d9accdaf25ce4328c7aabc45c6d5076 100644 (file)
@@ -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',
index 35cce86b12e5a57fee8282cd5f2551cfd5ae8dc4..b4827cb4d389fe1db2cef474d57b5b53662910a2 100644 (file)
@@ -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',