author | Wolfgang Steffens <WolfgangSteff@gmail.com> |
Fri, 25 May 2012 09:00:54 +0200 | |
changeset 7129 | 0ce4f478ea6c |
parent 7070 | 8d4189609e90 |
child 7188 | 580cd247511e |
permissions | -rw-r--r-- |
4 | 1 |
(* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
6952 | 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} |
7016 | 20 |
{$WRITEABLECONST OFF} |
21 |
{$IMPLICITEXCEPTIONS OFF} |
|
22 |
{$VARSTRINGCHECKS ON} |
|
6974
2d3beb445d64
minor changes for more compatibilities with other compilers
koda
parents:
6952
diff
changeset
|
23 |
{$MODE OBJFPC} |
2630 | 24 |
{$ELSE} |
6580
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
25 |
{$ERROR Only Free Pascal supported!} |
2600 | 26 |
{$ENDIF} |
4 | 27 |
|
3165
3ec07a7d8456
just some very sane stuff for the iphone port (plus some macro on pascal files)
koda
parents:
2803
diff
changeset
|
28 |
{$MACRO ON} |
4850 | 29 |
{$DEFINE GLunit:=GL} |
2803
1f446fc5c8ec
allow to compile engine as library with HWLIBRARY symbol
koda
parents:
2716
diff
changeset
|
30 |
|
7129
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7070
diff
changeset
|
31 |
{$DEFINE GL2} |
0ce4f478ea6c
initial GLSL1.2 test version
Wolfgang Steffens <WolfgangSteff@gmail.com>
parents:
7070
diff
changeset
|
32 |
|
5286 | 33 |
{$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
|
34 |
{$DEFINE SDL13} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
35 |
{$DEFINE HWLIBRARY} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
36 |
{$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
|
37 |
{$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
|
38 |
{$DEFINE MOBILE} |
6674 | 39 |
{$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
|
40 |
{$DEFINE USE_SDLTHREADS} |
6674 | 41 |
{$DEFINE USE_CONTEXT_RESTORE} |
6676
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
42 |
{$DEFINE USE_LANDSCAPE_AMMOMENU} |
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
43 |
{$DEFINE USE_TOUCH_INTERFACE} |
5286 | 44 |
{$ENDIF} |
45 |
||
2586
204e6b2885bc
added little/big endian checks, added symbol for touch input, simplified iphoneos definitions
koda
parents:
1066
diff
changeset
|
46 |
{$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
|
47 |
{$DEFINE SDL13} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
48 |
{$DEFINE HWLIBRARY} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
49 |
{$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
|
50 |
{$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
|
51 |
{$DEFINE MOBILE} |
6676
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
52 |
{$DEFINE USE_LANDSCAPE_AMMOMENU} |
7048
0a4c88935902
the ios port runs again, although with a few things to sort out
koda
parents:
7030
diff
changeset
|
53 |
{$DEFINE USE_TOUCH_INTERFACE} |
6033
6bcc36225162
fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents:
6025
diff
changeset
|
54 |
{$ENDIF} |
6bcc36225162
fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents:
6025
diff
changeset
|
55 |
|
6674 | 56 |
{$IFDEF WIN32} |
57 |
{$DEFINE USE_CONTEXT_RESTORE} |
|
58 |
{$ENDIF} |
|
59 |
||
6033
6bcc36225162
fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents:
6025
diff
changeset
|
60 |
{$IFNDEF IPHONEOS} |
6674 | 61 |
{$IFDEF DARWIN} |
62 |
{$DEFINE USE_CONTEXT_RESTORE} |
|
63 |
{$ENDIF} |
|
64 |
// 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
|
65 |
{$DEFINE DEBUGFILE} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
66 |
//{$DEFINE TRACEAIACTIONS} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
67 |
//{$DEFINE COUNTTICKS} |
2630 | 68 |
{$ENDIF} |
69 |
||
6884 | 70 |
{$IFNDEF MOBILE} |
6899 | 71 |
{$DEFINE USE_AM_NUMCOLUMN} |
6884 | 72 |
{$ENDIF} |
73 |
||
7030
09984acadece
invert LUA symbol meaning and avoid hints when compiling without it
koda
parents:
7016
diff
changeset
|
74 |
{$DEFINE USE_LUA_SCRIPT} |
7059 | 75 |
|
76 |
{$IFDEF PAS2C} |
|
77 |
{$DEFINE NOCONSOLE} |
|
78 |
{$DEFINE USE_SDLTHREADS} |
|
7067
f98ec3aecf4e
A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents:
7059
diff
changeset
|
79 |
{$ENDIF} |
f98ec3aecf4e
A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents:
7059
diff
changeset
|
80 |
|
f98ec3aecf4e
A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents:
7059
diff
changeset
|
81 |
{$DEFINE _S:=} |
7070 | 82 |
{$DEFINE _P:=} |