| 1 |
{$I castleconf.inc} |
| 2 |
|
| 3 |
{ Internal Libpng integration. |
| 4 |
@exclude This unit is not ready for PasDoc, as it is internal, |
| 5 |
and also has comments not formatted for PasDoc. |
| 6 |
} |
| 7 |
|
| 8 |
unit CastleInternalPng; |
| 9 |
|
| 10 |
{ This is also checked by castleconf.inc, but check it here again to be sure. } |
| 11 |
{$if defined(CASTLE_PNG_DYNAMIC) and defined(CASTLE_PNG_STATIC)} |
| 12 |
{$error Cannot define both CASTLE_PNG_DYNAMIC and CASTLE_PNG_STATIC. Define at most one of them.} |
| 13 |
{$endif} |
| 14 |
|
| 15 |
{$if defined(CASTLE_PNG_STATIC)} |
| 16 |
{$info PNG loading with static LibPng} |
| 17 |
{$I castleinternalpng_static.inc} |
| 18 |
|
| 19 |
{$elseif defined(CASTLE_PNG_DYNAMIC)} |
| 20 |
{$ifdef FPC} |
| 21 |
{$info PNG loading with dynamic LibPng (fallback on Vampyre/FPImage/PngImage)} |
| 22 |
{$else} |
| 23 |
{$message Hint 'PNG loading with dynamic LibPng (fallback on Vampyre/FPImage/PngImage)'} |
| 24 |
{$endif} |
| 25 |
{$I castleinternalpng_dynamic.inc} |
| 26 |
|
| 27 |
{$else} |
| 28 |
{$info PNG loading without LibPng, we will use only Vampyre/FPImage/PngImage.} |
| 29 |
interface |
| 30 |
{ Empty. We will not use Libpng API in this case. } |
| 31 |
const |
| 32 |
CastlePngInitialized = false; |
| 33 |
implementation |
| 34 |
end. |
| 35 |
{$endif} |