author | antonc27 <antonc27@mail.ru> |
Mon, 10 Aug 2015 22:44:51 +0200 | |
branch | ios-revival |
changeset 11102 | 87ca80dbb141 |
parent 10108 | c68cf030eded |
child 11046 | 47a8c19ecb60 |
permissions | -rw-r--r-- |
4 | 1 |
(* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
9998 | 3 |
* Copyright (c) 2004-2014 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 |
|
10108
c68cf030eded
update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents:
10015
diff
changeset
|
16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 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 |
||
5286 | 32 |
{$IFDEF ANDROID} |
7226 | 33 |
{$DEFINE MOBILE} |
34 |
{$DEFINE USE_CONTEXT_RESTORE} |
|
35 |
{$DEFINE Java_Prefix:= 'Java_org_hedgewars_hedgeroid_EngineProtocol_PascalExports_'} |
|
36 |
{$ENDIF} |
|
37 |
||
38 |
{$IFDEF IPHONEOS} |
|
39 |
{$DEFINE MOBILE} |
|
40 |
{$ENDIF} |
|
41 |
||
42 |
{$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
|
43 |
{$DEFINE HWLIBRARY} |
6155187bf599
A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents:
6460
diff
changeset
|
44 |
{$DEFINE GLunit:=gles11} |
6676
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
45 |
{$DEFINE USE_LANDSCAPE_AMMOMENU} |
21cf35a570a7
add keywords for landscape ammomenu and touch interface
koda
parents:
6674
diff
changeset
|
46 |
{$DEFINE USE_TOUCH_INTERFACE} |
7226 | 47 |
{$ELSE} |
48 |
{$DEFINE USE_AM_NUMCOLUMN} |
|
8138
cfb228baa598
Invert S3D_DISABLED to more consistent USE_S3D_RENDERING
Chris Wong <lambda.fairy@gmail.com>
parents:
7837
diff
changeset
|
49 |
{$DEFINE USE_S3D_RENDERING} |
5286 | 50 |
{$ENDIF} |
51 |
||
6033
6bcc36225162
fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents:
6025
diff
changeset
|
52 |
|
6674 | 53 |
{$IFDEF WIN32} |
54 |
{$DEFINE USE_CONTEXT_RESTORE} |
|
55 |
{$ENDIF} |
|
56 |
||
7226 | 57 |
{$IFDEF DARWIN} |
58 |
{$IFNDEF IPHONEOS} |
|
6674 | 59 |
{$DEFINE USE_CONTEXT_RESTORE} |
60 |
{$ENDIF} |
|
2630 | 61 |
{$ENDIF} |
62 |
||
7837 | 63 |
{$IFDEF USE_TOUCH_INTERFACE} |
9317
a04c30940d2d
use SDL2 as ifdef symbol because we're not really sdl1.3 compatible, change the compatibility layer, drop unused code, add some documentation
koda
parents:
9080
diff
changeset
|
64 |
{$DEFINE SDL2} |
7837 | 65 |
{$ENDIF} |
7059 | 66 |
|
7067
f98ec3aecf4e
A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents:
7059
diff
changeset
|
67 |
{$DEFINE _S:=} |
7070 | 68 |
{$DEFINE _P:=} |
7226 | 69 |
|
70 |
//{$DEFINE TRACEAIACTIONS} |
|
71 |
//{$DEFINE COUNTTICKS} |
|
72 |