summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b6cdec)
raw | patch | inline | side by side (parent: 8b6cdec)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 2 Sep 2019 19:15:49 +0000 (22:15 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 2 Sep 2019 19:15:49 +0000 (22:15 +0300) |
index 84b95861025936ed4ed4c5a89b137e74e3ace87f..6a8c34f3fff4ee44b2a005c00c3862fd9d1d95e3 100644 (file)
{$PACKRECORDS C}
{$ENDIF}
-{$IF 0}
- {$IFNDEF LIBFLUIDSYNTH_WINDOZE_STATIC}
+{$IF DEFINED(WINDOWS)}
+ {$IFDEF FLUIDSYNTH_WINDOZE_STATIC}
+ {$LINKLIB libfluidsynth.a}
+ {$ELSE}
{$DEFINE FS_DYNAMIC}
+ const fluidlib = 'libfluidsynth.dll';
{$ENDIF}
-{$ENDIF}
-
-{$IF DEFINED(FS_DYNAMIC)}
-const
-{$IF DEFINED(WINDOWS)}
- fluidlib = 'libfluidsynth.dll';
{$ELSEIF DEFINED(UNIX)}
- fluidlib = 'libfluidsynth.so';
-{$ELSE}
- {$MESSAGE ERROR 'FLUIDSYNTH_DYNAMIC not supported'}
-{$IFEND}
+ {$DEFINE FS_DYNAMIC}
+ const fluidlib = 'libfluidsynth.so';
{$ELSE}
- {$LINKLIB libfluidsynth.a}
+ {$ERROR fluidsynth not supported on this platform. Fix it!}
{$ENDIF}
const
index 5afde68e08e41d367c8ddb231672f1f2335b2aa0..3c56ea1364d502601566661a389e72112845a69e 100644 (file)
uses
ctypes;
-{$IFDEF WINDOWS}
- {$IFNDEF LIBMODPLUG_WINDOZE_STATIC}
+{$IF DEFINED(WINDOWS)}
+ {$IFDEF MODPLUG_WINDOZE_STATIC}
+ {$LINKLIB libstdc++.a} // is this necessary?
+ {$LINKLIB libmodplug.a}
+ {$ELSE}
{$DEFINE MP_DYNAMIC}
+ const modpluglib = 'libmodplug-1.dll';
{$ENDIF}
-{$ENDIF}
-
-{$IFDEF MP_DYNAMIC}
-const
-{$IF DEFINED(WINDOWS)}
- modpluglib = 'libmodplug-1.dll';
{$ELSEIF DEFINED(UNIX)}
- modpluglib = 'libmodplug.so';
-{$ELSE}
- {$MESSAGE ERROR 'MP_DYNAMIC not supported'}
-{$IFEND}
+ {$DEFINE MP_DYNAMIC}
+ const modpluglib = 'libmodplug.so';
{$ELSE}
- {$LINKLIB libstdc++.a} // is this necessary?
- {$LINKLIB libmodplug.a}
+ {$ERROR libmpg123 not supported on this platform. Fix it!}
{$ENDIF}
-
type
PModPlugFile = Pointer;
ModPlugFile = record
index 9ad2c91d5908b9cd3293045788ea2539c61e66a8..67cab975d9925af3ad2820cdd0b6b3a0521df3aa 100644 (file)
{$PACKRECORDS C}
{$ENDIF}
-{$IFDEF WINDOWS}
- {$IFNDEF LIBMPG123_WINDOZE_STATIC}
+{$IF DEFINED(WINDOWS)}
+ {$IFDEF MPG123_WINDOZE_STATIC}
+ {$LINKLIB libmpg123.a}
+ {$ELSE}
{$DEFINE MPG123_DYNAMIC}
+ const LIB_MPG123 = 'libmpg123-0.dll';
{$ENDIF}
-{$ENDIF}
-
-{$IF DEFINED(MPG123_DYNAMIC)}
-const
-{$IF DEFINED(WINDOWS)}
- LIB_MPG123 = 'libmpg123-0.dll';
{$ELSEIF DEFINED(UNIX)}
- LIB_MPG123 = 'libmpg123.so';
-{$ELSE}
- {$MESSAGE ERROR 'MPG123_DYNAMIC not supported'}
-{$IFEND}
+ {$DEFINE MPG123_DYNAMIC}
+ const LIB_MPG123 = 'libmpg123.so';
{$ELSE}
- {$LINKLIB libmpg123.a}
+ {$ERROR libmpg123 not supported on this platform. Fix it!}
{$ENDIF}
type
diff --git a/src/lib/openal/al.pas b/src/lib/openal/al.pas
index 264f0e4049d80a9d6fae45114ece52ad7162d927..ee62cd11864792e5f98b5c43aae6e2788203b07b 100644 (file)
--- a/src/lib/openal/al.pas
+++ b/src/lib/openal/al.pas
uses
ctypes;
-{$IFDEF WINDOWS}
- {$IFNDEF AL_WINDOZE_STATIC}
+{$IF DEFINED(WINDOWS)}
+ {$IFDEF OPENAL_WINDOZE_STATIC}
+ {$LINKLIB libopenal.a}
+ {$ELSE}
+ const openallib = 'openal32.dll';
{$DEFINE AL_DYNAMIC}
{$ENDIF}
-{$ENDIF}
-
-{$IF DEFINED(AL_DYNAMIC)}
-const
-{$IF DEFINED(WINDOWS)}
- openallib = 'openal32.dll';
{$ELSEIF DEFINED(UNIX)}
- openallib = 'libopenal.so';
-{$ELSE}
- {$MESSAGE ERROR 'AL_DYNAMIC not supported'}
-{$IFEND}
-{$ELSEIF DEFINED(Darwin)}
-{$LINKFRAMEWORK OpenAL}
+ const openallib = 'libopenal.so';
+ {$DEFINE AL_DYNAMIC}
{$ELSE}
- {$LINKLIB libopenal.a}
+ {$ERROR OpenAL not supported on this platform. Fix it!}
{$ENDIF}
{$include al.inc}
diff --git a/src/lib/xmp/xmp.pas b/src/lib/xmp/xmp.pas
index 4b41b901de6c89c1f66a44b1ae90f5907c566e3c..7f790ed20c4874147fc717e363856a9bf4979750 100644 (file)
--- a/src/lib/xmp/xmp.pas
+++ b/src/lib/xmp/xmp.pas
{$MODE OBJFPC}
{$ENDIF}
-{$IFDEF WINDOWS}
- {$IFNDEF LIBXMP_WINDOZE_STATIC}
- {$DEFINE XMP_DYNAMIC}
- {$ENDIF}
-{$ENDIF}
-
-{$IF DEFINED(XMP_DYNAMIC)}
-const
{$IF DEFINED(WINDOWS)}
- {$IF DEFINED(USE_XMP_FULL)}
- xmplib = 'libxmp.dll';
+ {$IFDEF LIBXMP_WINDOZE_STATIC}
+ {$IFDEF USE_XMP_LITE}
+ {$LINKLIB libxmp-lite.a}
+ {$ELSE}
+ {$LINKLIB libxmp.a}
+ {$ENDIF}
{$ELSE}
- xmplib = 'libxmp-lite.dll';
+ {$DEFINE XMP_DYNAMIC}
+ {$IFDEF USE_XMP_LITE}
+ const xmplib = 'libxmp-lite.dll';
+ {$ELSE}
+ const xmplib = 'libxmp.dll';
+ {$ENDIF}
{$ENDIF}
{$ELSEIF DEFINED(UNIX)}
- {$IF DEFINED(USE_XMP_FULL)}
- xmplib = 'libxmp.so';
+ {$DEFINE XMP_DYNAMIC}
+ {$IFDEF USE_XMP_LITE}
+ const xmplib = 'libxmp-lite.so';
{$ELSE}
- xmplib = 'libxmp-lite.so';
+ const xmplib = 'libxmp.so';
{$ENDIF}
{$ELSE}
- {$MESSAGE ERROR 'XMP_DYNAMIC not supported'}
-{$IFEND}
-{$ELSE}
- {$IF DEFINED(USE_XMP_FULL)}
- {$LINKLIB libxmp.a}
- {$ELSE}
- {$LINKLIB libxmp-lite.a}
- {$ENDIF}
+ {$ERROR libxmp not supported on this platform. Fix it!}
{$ENDIF}
const