* Dotted filenames for package imagemagick

This commit is contained in:
Michaël Van Canneyt 2023-03-06 14:58:00 +01:00
parent 18f0d90ba6
commit 6913f674b0
7 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,3 @@
unit Api.Buildim;
{$DEFINE FPC_DOTTEDUNITS}
{$i buildim.pp}

View File

@ -0,0 +1,3 @@
unit Api.Imagemagick;
{$DEFINE FPC_DOTTEDUNITS}
{$i imagemagick.pas}

View File

@ -0,0 +1,3 @@
unit Api.Magick_wand;
{$DEFINE FPC_DOTTEDUNITS}
{$i magick_wand.pas}

View File

@ -0,0 +1,5 @@
src/imagemagick.pas=namespaced/Api.Imagemagick.pas
{s*:src/}=namespaced/
{i+:src/}
src/buildim.pp=namespaced/Api.Buildim.pp
src/magick_wand.pas=namespaced/Api.Magick_wand.pas

View File

@ -18,11 +18,17 @@
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02111-1301, USA.
}
{$IFNDEF FPC_DOTTEDUNITS}
unit buildim;
{$ENDIF FPC_DOTTEDUNITS}
Interface
{$IFDEF FPC_DOTTEDUNITS}
uses Api.Imagemagick, Api.Magick_wand;
{$ELSE FPC_DOTTEDUNITS}
uses imagemagick, magick_wand;
{$ENDIF FPC_DOTTEDUNITS}
Implementation

View File

@ -22,7 +22,9 @@
Thanks to Marc Geldon and RuBBeR
}
{Version 0.4}
{$IFNDEF FPC_DOTTEDUNITS}
unit ImageMagick;
{$ENDIF FPC_DOTTEDUNITS}
{$ifdef FPC}
{$mode objfpc}
@ -31,7 +33,11 @@ unit ImageMagick;
interface
{$IFDEF FPC_DOTTEDUNITS}
uses System.SysUtils, System.CTypes;
{$ELSE FPC_DOTTEDUNITS}
uses SysUtils, ctypes;
{$ENDIF FPC_DOTTEDUNITS}
{$z4}

View File

@ -24,7 +24,9 @@
Thanks to Marc Geldon and RuBBeR
}
{Version 0.4}
{$IFNDEF FPC_DOTTEDUNITS}
unit magick_wand;
{$ENDIF FPC_DOTTEDUNITS}
{$IFDEF FPC}
{$mode objfpc}
@ -35,7 +37,11 @@ unit magick_wand;
interface
{$IFDEF FPC_DOTTEDUNITS}
uses Api.Imagemagick, System.CTypes;
{$ELSE FPC_DOTTEDUNITS}
uses ImageMagick, ctypes;
{$ENDIF FPC_DOTTEDUNITS}
{ Various types }
type