author | Stepan777 <stepik-777@mail.ru> |
Fri, 06 Jul 2012 12:50:18 +0400 | |
changeset 7347 | 88685fbb2679 |
parent 7235 | baa69bd025d9 |
child 7538 | 2d6e69b392cb |
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 |
||
7226 | 19 |
{$IFNDEF FPC} |
20 |
{$ERROR Only FreePascal Compiler is supported!} |
|
2600 | 21 |
{$ENDIF} |
4 | 22 |
|
3165
3ec07a7d8456
just some very sane stuff for the iphone port (plus some macro on pascal files)
koda
parents:
2803
diff
changeset
|
23 |
{$MACRO ON} |
7226 | 24 |
{$MODE OBJFPC} |
4850 | 25 |
{$DEFINE GLunit:=GL} |
7226 | 26 |
{$WRITEABLECONST OFF} |
27 |
{$IMPLICITEXCEPTIONS OFF} |
|
28 |
{$VARSTRINGCHECKS ON} |
|
29 |
||
30 |
{$DEFINE USE_LUA_SCRIPT} |
|
31 |
||
2803
1f446fc5c8ec
allow to compile engine as library with HWLIBRARY symbol
koda
parents:
2716
diff
changeset
|
32 |
|
5286 | 33 |
{$IFDEF ANDROID} |
7226 | 34 |
{$DEFINE MOBILE} |
35 |
{$DEFINE USE_SDLTHREADS} |
|
36 |
{$DEFINE USE_CONTEXT_RESTORE} |
|
37 |
{$DEFINE Java_Prefix:= 'Java_org_hedgewars_hedgeroid_EngineProtocol_PascalExports_'} |
|
38 |
{$ENDIF} |
|
39 |
||
40 |
{$IFDEF IPHONEOS} |
|
41 |
{$DEFINE MOBILE} |
|
42 |
{$ENDIF} |
|
43 |
||
44 |
{$IFDEF MOBILE} |
|
6580
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
45 |
{$DEFINE SDL13} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
46 |
{$DEFINE HWLIBRARY} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
47 |
{$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
|
48 |
{$DEFINE GLunit:=gles11} |
6676
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
49 |
{$DEFINE USE_LANDSCAPE_AMMOMENU} |
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
50 |
{$DEFINE USE_TOUCH_INTERFACE} |
7226 | 51 |
{$ELSE} |
52 |
{$DEFINE USE_AM_NUMCOLUMN} |
|
7235
baa69bd025d9
1. Implement new page in frontend with options for video recording.
Stepan777 <stepik-777@mail.ru>
parents:
7231
diff
changeset
|
53 |
{$DEFINE USE_VIDEO_RECORDING} |
5286 | 54 |
{$ENDIF} |
55 |
||
6033
6bcc36225162
fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents:
6025
diff
changeset
|
56 |
|
6674 | 57 |
{$IFDEF WIN32} |
58 |
{$DEFINE USE_CONTEXT_RESTORE} |
|
59 |
{$ENDIF} |
|
60 |
||
7226 | 61 |
{$IFDEF DARWIN} |
62 |
{$IFNDEF IPHONEOS} |
|
6674 | 63 |
{$DEFINE USE_CONTEXT_RESTORE} |
64 |
{$ENDIF} |
|
2630 | 65 |
{$ENDIF} |
66 |
||
7059 | 67 |
|
68 |
{$IFDEF PAS2C} |
|
69 |
{$DEFINE NOCONSOLE} |
|
70 |
{$DEFINE USE_SDLTHREADS} |
|
7067
f98ec3aecf4e
A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents:
7059
diff
changeset
|
71 |
{$ENDIF} |
f98ec3aecf4e
A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents:
7059
diff
changeset
|
72 |
|
f98ec3aecf4e
A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents:
7059
diff
changeset
|
73 |
{$DEFINE _S:=} |
7070 | 74 |
{$DEFINE _P:=} |
7226 | 75 |
|
76 |
//{$DEFINE TRACEAIACTIONS} |
|
77 |
//{$DEFINE COUNTTICKS} |
|
78 |