DEADSOFTWARE

tools: fix build with sdl2
[d2df-sdl.git] / src / tools / wadcvt.dpr
index 59df44ea7e5b8e23dd20d26222d26a7319d8139a..b4827cb4d389fe1db2cef474d57b5b53662910a2 100644 (file)
@@ -2,8 +2,7 @@
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
+ * the Free Software Foundation, version 3 of the License ONLY.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -28,6 +27,13 @@ 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',
   xstreams in '../shared/xstreams.pas',
@@ -43,8 +49,7 @@ uses
   conbuf in '../shared/conbuf.pas',
   MAPDEF in '../shared/MAPDEF.pas',
   CONFIG in '../shared/CONFIG.pas',
-  e_log in '../engine/e_log.pas',
-  ImagingTypes, Imaging, ImagingUtility;
+  e_log in '../engine/e_log.pas';
 
 
 {.$WARNINGS ON}