Menu

[r3166]: / trunk / Src / CompilerChecks.inc  Maximize  Restore  History

Download this file

48 lines (42 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/
*
* Copyright (C) 2009-2013, Peter Johnson (www.delphidabbler.com).
*
* $Rev$
* $Date$
*
* Include file that checks details of compiler to determine whether or not
* CodeSnip can be compiled.
*
* CodeSnip can be complied only if the following conditions are met:
*
* o Compiler is Delphi XE or later.
* o Target platform is Windows 32 bit.
* o Program is compiled as a native application, not .NET.
* o Program is not being compiled as a console application.
}
// Check for supported compiler
{$UNDEF SupportedCompiler}
{$IFDEF CONDITIONALEXPRESSIONS}
{$IF CompilerVersion >= 22.0} // Delphi XE and later
{$DEFINE SupportedCompiler}
{$IFEND}
{$ENDIF}
{$IFNDEF SupportedCompiler}
{$MESSAGE FATAL 'CodeSnip requires Delphi XE or later to compile'}
{$ENDIF}
// Check for Windows 32 bit target platform
{$IFNDEF WIN32}
{$MESSAGE FATAL 'CodeSnip must be built as a 32 bit Windows application'}
{$ENDIF}
// Check for .NET
{$IFDEF CLR}
{$MESSAGE FATAL 'CodeSnip cannot be compiled as a .NET application'}
{$ENDIF}
// Check not being compiled as a console application
{$IFDEF CONSOLE}
{$MESSAGE FATAL 'CodeSnip cannot be compiled as a console application'}
{$ENDIF}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.