DEADSOFTWARE

build: move dependency check to modules where they used
[d2df-sdl.git] / src / flexui / sdlcarcass.pas
index 59e43fd31112ef0020da1cff36c23a3976465c63..20363e688fd9345414248373f62f4e806974f005 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
 {$INCLUDE ../shared/a_modes.inc}
 unit sdlcarcass;
 
+  {$IFNDEF USE_SDL2}
+    {$FATAL SDL2 required for flexui sdlcarcass}
+  {$ENDIF}
+
 interface
 
 uses
@@ -69,12 +72,11 @@ implementation
 
 uses
   SysUtils, Classes,
-  GL, GLExt,
-  {$IF DEFINED(LINUX)}
+  {$IF DEFINED(LINUX) OR DEFINED(ANDROID)}
     unixtype, linux
   {$ELSEIF DEFINED(WINDOWS)}
     Windows
-  {$ELSEIF DEFINED(HAIKU)}
+  {$ELSEIF DEFINED(HAIKU) OR DEFINED(UNIX)}
     unixtype
   {$ELSE}
     {$WARNING You suck!}