diff --git a/src/shared/a_modes.inc b/src/shared/a_modes.inc
index 5fc22fa018c259b594338a0df0fa089adce3572b..ae6ded6acfc7eb1d00c1924427fd920fa5c1a64f 100644 (file)
--- a/src/shared/a_modes.inc
+++ b/src/shared/a_modes.inc
{$MODESWITCH TYPEHELPERS+} // Allow the use of type helpers.
{$MODESWITCH UNICODESTRINGS-}
{$MODESWITCH TYPEHELPERS+} // Allow the use of type helpers.
{$MODESWITCH UNICODESTRINGS-}
+{$IFDEF DARWIN}
+ {$MODESWITCH OBJECTIVEC1}
+{$ENDIF}
{$ASSERTIONS ON}
{$BITPACKING OFF}
{$ASSERTIONS ON}
{$BITPACKING OFF}
{$WARNING Holmes in headless mode has no sense. Disabled.}
{$UNDEF ENABLE_HOLMES}
{$ENDIF}
{$WARNING Holmes in headless mode has no sense. Disabled.}
{$UNDEF ENABLE_HOLMES}
{$ENDIF}
+ {$IFDEF ENABLE_MENU}
+ {$WARNING Menu in headless mode has no sense. Disabled.}
+ {$UNDEF ENABLE_MENU}
+ {$DEFINE DISABLE_MENU}
+ {$ENDIF}
+ {$IFDEF ENABLE_TOUCH}
+ {$WARNING Touch screen in headless mode has no sense. Disabled.}
+ {$UNDEF ENABLE_TOUCH}
+ {$DEFINE DISABLE_TOUCH}
+ {$ENDIF}
+ {$IFDEF ENABLE_GFX}
+ {$WARNING GFX in headless mode has no sense. Disabled.}
+ {$UNDEF ENABLE_GFX}
+ {$DEFINE DISABLE_GFX}
+ {$ENDIF}
+{$ENDIF}
+
+{$IF DEFINED(ENABLE_MENU) AND DEFINED(DISABLE_MENU)}
+ {$ERROR Select ENABLE_MENU or DISABLE_MENU}
+{$ELSEIF NOT DEFINED(ENABLE_MENU) AND NOT DEFINED(DISABLE_MENU)}
+ // defaut ENABLE/DISABLE menu
+ {$IFDEF HEADLESS}
+ {$DEFINE DISABLE_MENU}
+ {$ELSE}
+ {$DEFINE ENABLE_MENU}
+ {$ENDIF}
+{$ENDIF}
+
+{$IF DEFINED(ENABLE_TOUCH) AND DEFINED(DISABLE_TOUCH)}
+ {$ERROR Select ENABLE_TOUCH or DISABLE_TOUCH}
+{$ELSEIF NOT DEFINED(ENABLE_TOUCH) AND NOT DEFINED(DISABLE_TOUCH)}
+ // defaut ENABLE/DISABLE touch
+ {$IFDEF HEADLESS}
+ {$DEFINE DISABLE_TOUCH}
+ {$ELSE}
+ {$DEFINE ENABLE_TOUCH}
+ {$ENDIF}
+{$ENDIF}
+
+{$IF DEFINED(ENABLE_GFX) AND DEFINED(DISABLE_GFX)}
+ {$ERROR Select ENABLE_GFX or DISABLE_GFX}
+{$ELSEIF NOT DEFINED(ENABLE_GFX) AND NOT DEFINED(DISABLE_GFX)}
+ // default ENABLE/DISABLE gfx
+ {$IFDEF HEADLESS}
+ {$DEFINE DISABLE_GFX}
+ {$ELSE}
+ {$DEFINE ENABLE_GFX}
+ {$ENDIF}
{$ENDIF}
{$IF DEFINED(USE_SYSSTUB)}
{$ENDIF}
{$IF DEFINED(USE_SYSSTUB)}
{$IF DEFINED(USE_SYSSTUB) OR DEFINED(USE_SDL2)}
{$ERROR Only one system driver must be selected!}
{$ENDIF}
{$IF DEFINED(USE_SYSSTUB) OR DEFINED(USE_SDL2)}
{$ERROR Only one system driver must be selected!}
{$ENDIF}
+ {$IFDEF USE_SDLMIXER}
+ {$ERROR SDL_mixer not supported with SDL 1.2.x}
+ {$ENDIF}
{$ELSEIF DEFINED(USE_SDL2)}
{$IF DEFINED(USE_SYSSTUB) OR DEFINED(USE_SDL)}
{$ERROR Only one system driver must be selected!}
{$ELSEIF DEFINED(USE_SDL2)}
{$IF DEFINED(USE_SYSSTUB) OR DEFINED(USE_SDL)}
{$ERROR Only one system driver must be selected!}