mirror of
https://github.com/Laex/Delphi-OpenCV.git
synced 2024-11-16 16:25:53 +01:00
04675ce825
Signed-off-by: Mikhail Grigorev <sleuthhound@gmail.com>
345 lines
5.5 KiB
PHP
345 lines
5.5 KiB
PHP
{$B-}
|
|
|
|
// Check IDE version
|
|
|
|
{$IFDEF FPC}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER130} { Delphi 5, C++ Builder 5 }
|
|
{$DEFINE VER5}
|
|
{$DEFINE VER5P}
|
|
{$IFDEF BCB}
|
|
{$DEFINE CB5}
|
|
{$ObjExportAll On}
|
|
{$ELSE}
|
|
{$DEFINE D5}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER140} { Delphi 6, C++ Builder 6 }
|
|
{$DEFINE VER6}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$IFDEF BCB}
|
|
{$DEFINE CB6}
|
|
{$ObjExportAll On}
|
|
{$ELSE}
|
|
{$DEFINE D6}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER150} { Delphi 7 }
|
|
{$IFNDEF BCB}
|
|
{$DEFINE D7}
|
|
{$DEFINE VER7}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER160} { Delphi 8 }
|
|
{$DEFINE D8}
|
|
{$DEFINE VER8}
|
|
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER170} { Delphi 2005 }
|
|
{$DEFINE D9}
|
|
{$DEFINE VER9}
|
|
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER180} { Delphi 2006 }
|
|
{$IFNDEF VER185} { not Delphi 2007 Spacely}
|
|
{$DEFINE D10}
|
|
{$DEFINE VER10}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER185} { Delphi 2007 Spacely}
|
|
{$DEFINE D11}
|
|
{$ENDIF}
|
|
{$IFDEF VER190} { Delphi 2007 Highlander}
|
|
{$DEFINE D11}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF D11}
|
|
{$DEFINE VER11}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER200} { Delphi 2009 }
|
|
{$DEFINE D12}
|
|
{$DEFINE VER12}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$DEFINE VER12P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER210} { Delphi 2010 }
|
|
{$DEFINE D14}
|
|
{$DEFINE VER14}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$DEFINE VER12P}
|
|
{$DEFINE VER14P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER220} { Delphi XE }
|
|
{$DEFINE D15}
|
|
{$DEFINE VER15}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$DEFINE VER12P}
|
|
{$DEFINE VER14P}
|
|
{$DEFINE VER15P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER230} { Delphi XE2 }
|
|
{$DEFINE D16}
|
|
{$DEFINE VER16}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$DEFINE VER12P}
|
|
{$DEFINE VER14P}
|
|
{$DEFINE VER15P}
|
|
{$DEFINE VER16P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER240} { Delphi XE3 }
|
|
{$DEFINE D17}
|
|
{$DEFINE VER17}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$DEFINE VER12P}
|
|
{$DEFINE VER14P}
|
|
{$DEFINE VER15P}
|
|
{$DEFINE VER16P}
|
|
{$DEFINE VER17P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER250} { Delphi XE4 }
|
|
{$DEFINE D18}
|
|
{$DEFINE VER18}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$DEFINE VER12P}
|
|
{$DEFINE VER14P}
|
|
{$DEFINE VER15P}
|
|
{$DEFINE VER16P}
|
|
{$DEFINE VER17P}
|
|
{$DEFINE VER18P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER260} { Delphi XE5 }
|
|
{$DEFINE D19}
|
|
{$DEFINE VER19}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$DEFINE VER12P}
|
|
{$DEFINE VER14P}
|
|
{$DEFINE VER15P}
|
|
{$DEFINE VER16P}
|
|
{$DEFINE VER17P}
|
|
{$DEFINE VER18P}
|
|
{$DEFINE VER19P}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER270} { Delphi XE6 }
|
|
{$DEFINE D20}
|
|
{$DEFINE VER20}
|
|
{$DEFINE VER5P}
|
|
{$DEFINE VER6P}
|
|
{$DEFINE VER7P}
|
|
{$DEFINE VER8P}
|
|
{$DEFINE VER9P}
|
|
{$DEFINE VER10P}
|
|
{$DEFINE VER11P}
|
|
{$DEFINE VER12P}
|
|
{$DEFINE VER14P}
|
|
{$DEFINE VER15P}
|
|
{$DEFINE VER16P}
|
|
{$DEFINE VER17P}
|
|
{$DEFINE VER18P}
|
|
{$DEFINE VER19P}
|
|
{$DEFINE VER20P}
|
|
{$ENDIF}
|
|
|
|
// End IDE version
|
|
|
|
{$IFDEF CPU64}
|
|
{$DEFINE CPUX64} { assembler for x64 - Lazarus compatibility }
|
|
{$ENDIF}
|
|
{$IFDEF CPU86}
|
|
{$DEFINE CPUX86} { assembler for x86 - Lazarus compatibility }
|
|
{$ENDIF}
|
|
|
|
{$IFDEF IOS}
|
|
{$DEFINE MOBILE}
|
|
{$ENDIF}
|
|
{$IFDEF ANDROID}
|
|
{$DEFINE MOBILE}
|
|
{$ENDIF}
|
|
{$IFDEF MOBILE}
|
|
{$DEFINE PUREPASCAL}
|
|
{$ENDIF}
|
|
{$IFDEF CPUARM}
|
|
{$DEFINE PUREPASCAL}
|
|
{$ENDIF}
|
|
{$IFDEF CLR}
|
|
{$DEFINE PUREPASCAL}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF FPC}
|
|
{$IFDEF IPHONESIM}
|
|
{$DEFINE PUREPASCAL}
|
|
{$ENDIF}
|
|
{$IFNDEF PUREPASCAL}
|
|
{$ASMMODE INTEL}
|
|
{$ENDIF}
|
|
{$MODE DELPHI}
|
|
{$INTERFACES COM}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF WIN32}
|
|
{$DEFINE MSWINDOWS}
|
|
{$DEFINE WIN32_64}
|
|
{$ENDIF}
|
|
{$IFDEF WIN64}
|
|
{$DEFINE MSWINDOWS}
|
|
{$DEFINE WIN32_64}
|
|
{$ENDIF}
|
|
{$IFDEF CLR}
|
|
{$DEFINE MSWINDOWS}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF DARWIN}
|
|
{$DEFINE MACOS}
|
|
{$ENDIF}
|
|
|
|
{$IFNDEF NOINLINE}
|
|
{$IFDEF FPC}
|
|
{$DEFINE USE_INLINE}
|
|
{$ENDIF}
|
|
{$IFDEF VER9P}
|
|
{$DEFINE USE_INLINE}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER7P}
|
|
{$WARN UNSAFE_TYPE OFF}
|
|
{$WARN UNSAFE_CODE OFF}
|
|
{$WARN UNSAFE_CAST OFF}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF VER6P}
|
|
{$WARN SYMBOL_PLATFORM OFF}
|
|
{$WARN SYMBOL_DEPRECATED OFF}
|
|
{$WARN UNIT_PLATFORM OFF}
|
|
{$WARN UNIT_DEPRECATED OFF}
|
|
{$ENDIF}
|
|
|
|
{$IFNDEF VER6P}
|
|
// Delphi5, CBuilder5 - UTF8 functions is not implemented
|
|
{$DEFINE UTF8}
|
|
{$ENDIF}
|
|
|
|
{$IFNDEF CLR}
|
|
{$IFDEF VER7P}
|
|
{$DEFINE HAVE_COMPRESS} // ZLib build in Delphi
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF CLR}
|
|
{$DEFINE IS_UNICODE}
|
|
{$ENDIF}
|
|
{$IFDEF VER12P}
|
|
{$DEFINE IS_UNICODE}
|
|
{$ENDIF}
|
|
|
|
{$IFNDEF CLR}
|
|
{$IFNDEF FPC}
|
|
{$IFNDEF PUREPASCAL}
|
|
{$IFNDEF CPUX64}
|
|
{$DEFINE UseASM} // use Assembler optimated core
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
{$IFDEF NEXTGEN}
|
|
{$ZEROBASEDSTRINGS OFF}
|
|
{$ENDIF}
|
|
|
|
{$IFNDEF VER16P}
|
|
{$IFNDEF CLR}
|
|
{$DEFINE EXTENDEDIS10BYTES}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
{$IFDEF VER16}
|
|
{$IFNDEF CPUX64}
|
|
{$DEFINE EXTENDEDIS10BYTES}
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
{$DEFINE DYNAMIC_LINKING}
|