* automatic dynamic / static linking detection

git-svn-id: trunk@11532 -
This commit is contained in:
ivost 2008-08-07 12:01:22 +00:00
parent 14e79700cc
commit 1a461c43fc

View File

@ -8,13 +8,21 @@ interface
uses
ctypes;
{.$DEFINE DYNLINK}
{$IFDEF WINDOWS}
{$DEFINE DYNLINK}
{$ENDIF}
{$IFDEF DYNLINK}
const
{$IF Defined(WINDOWS)}
libxml2lib = 'libxml2.dll';
{$ELSEIF Defined(UNIX)}
libxml2lib = 'libxml2.so';
{$ELSE}
{$LINKLIB libxml2.so}
{$MESSAGE ERROR 'DYNLINK not supported'}
{$IFEND}
{$ELSE}
{$LINKLIB libxml2}
{$ENDIF}
{$i xmlexports.inc}