author | Xeli |
Sat, 21 Apr 2012 17:55:45 +0200 | |
changeset 6899 | c3d44a836086 |
parent 6884 | 85e810230372 |
child 6915 | be298851fc7b |
permissions | -rw-r--r-- |
4 | 1 |
(* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
6700 | 3 |
* Copyright (c) 2004, 2012 Andrey Korotaev <unC0Rr@gmail.com> |
4 | 4 |
* |
183 | 5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
4 | 8 |
* |
183 | 9 |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
4 | 13 |
* |
183 | 14 |
* You should have received a copy of the GNU General Public License |
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
4 | 17 |
*) |
18 |
||
2599 | 19 |
{$IFDEF FPC} |
6580
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
20 |
{$J+} |
2630 | 21 |
{$ELSE} |
6580
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
22 |
{$ERROR Only Free Pascal supported!} |
2600 | 23 |
{$ENDIF} |
4 | 24 |
|
2803
1f446fc5c8ec
allow to compile engine as library with HWLIBRARY symbol
koda
parents:
2716
diff
changeset
|
25 |
{$MODE OBJFPC} |
3165
3ec07a7d8456
just some very sane stuff for the iphone port (plus some macro on pascal files)
koda
parents:
2803
diff
changeset
|
26 |
{$MACRO ON} |
3ec07a7d8456
just some very sane stuff for the iphone port (plus some macro on pascal files)
koda
parents:
2803
diff
changeset
|
27 |
|
4850 | 28 |
{$DEFINE GLunit:=GL} |
2803
1f446fc5c8ec
allow to compile engine as library with HWLIBRARY symbol
koda
parents:
2716
diff
changeset
|
29 |
|
5286 | 30 |
{$IFDEF ANDROID} |
6580
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
31 |
{$DEFINE SDL13} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
32 |
{$DEFINE HWLIBRARY} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
33 |
{$DEFINE S3D_DISABLED} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
34 |
{$DEFINE GLunit:=gles11} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
35 |
{$DEFINE MOBILE} |
6674 | 36 |
{$DEFINE Java_Prefix:= 'Java_org_hedgewars_hedgeroid_EngineProtocol_PascalExports_'} |
6580
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
37 |
{$DEFINE USE_SDLTHREADS} |
6674 | 38 |
{$DEFINE USE_CONTEXT_RESTORE} |
6676
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
39 |
{$DEFINE USE_LANDSCAPE_AMMOMENU} |
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
40 |
{$DEFINE USE_TOUCH_INTERFACE} |
5286 | 41 |
{$ENDIF} |
42 |
||
2586
204e6b2885bc
added little/big endian checks, added symbol for touch input, simplified iphoneos definitions
koda
parents:
1066
diff
changeset
|
43 |
{$IFDEF IPHONEOS} |
6580
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
44 |
{$DEFINE SDL13} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
45 |
{$DEFINE HWLIBRARY} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
46 |
{$DEFINE S3D_DISABLED} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
47 |
{$DEFINE GLunit:=gles11} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
48 |
{$DEFINE MOBILE} |
6676
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
49 |
{$DEFINE USE_LANDSCAPE_AMMOMENU} |
6033
6bcc36225162
fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents:
6025
diff
changeset
|
50 |
{$ENDIF} |
6bcc36225162
fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents:
6025
diff
changeset
|
51 |
|
6674 | 52 |
{$IFDEF WIN32} |
53 |
{$DEFINE USE_CONTEXT_RESTORE} |
|
54 |
{$ENDIF} |
|
55 |
||
6033
6bcc36225162
fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents:
6025
diff
changeset
|
56 |
{$IFNDEF IPHONEOS} |
6674 | 57 |
{$IFDEF DARWIN} |
58 |
{$DEFINE USE_CONTEXT_RESTORE} |
|
59 |
{$ENDIF} |
|
60 |
// not needed on ios because DEBUGFILE is switched from command line |
|
6580
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
61 |
{$DEFINE DEBUGFILE} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
62 |
//{$DEFINE TRACEAIACTIONS} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
63 |
//{$DEFINE COUNTTICKS} |
2630 | 64 |
{$ENDIF} |
65 |
||
6884 | 66 |
{$IFNDEF MOBILE} |
67 |
{$DEFINE PNG_SCREENSHOTS} |
|
6899 | 68 |
{$DEFINE USE_AM_NUMCOLUMN} |
6884 | 69 |
{$ENDIF} |
70 |
||
5048 | 71 |
//also available LUA_DISABLED |