hedgewars/options.inc
author koda
Fri, 11 Oct 2013 17:43:13 +0200
branchwebgl
changeset 9521 8054d9d775fd
parent 9127 e350500c4edb
parent 9317 a04c30940d2d
child 9958 5a222923c8f8
permissions -rw-r--r--
merge with latest defaul, fixing compiling with fpc, parsing and rendering with pas2c, some minor problems with compiling with clang
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 1
diff changeset
     1
(*
1066
1f1b3686a2b0 Update copyright headers a bit
unc0rr
parents: 515
diff changeset
     2
 * Hedgewars, a free turn based strategy game
9080
9b42757d7e71 bump copyright year for Andrey entries
unc0rr
parents: 8865
diff changeset
     3
 * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com>
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 1
diff changeset
     4
 *
183
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 1
diff changeset
     8
 *
183
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
    12
 * GNU General Public License for more details.
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 1
diff changeset
    13
 *
183
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
    14
 * You should have received a copy of the GNU General Public License
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
    15
 * along with this program; if not, write to the Free Software
57c2ef19f719 Relicense to GPL
unc0rr
parents: 80
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 1
diff changeset
    17
 *)
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 1
diff changeset
    18
7226
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    19
{$IFNDEF FPC}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    20
    {$ERROR Only FreePascal Compiler is supported!}
2600
7b21daf84933 revamped SDLh.pas
koda
parents: 2599
diff changeset
    21
{$ENDIF}
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 1
diff changeset
    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
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    24
{$MODE OBJFPC}
4850
434cd1284204 code cleanup
koda
parents: 4347
diff changeset
    25
{$DEFINE GLunit:=GL}
7226
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    26
{$WRITEABLECONST OFF}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    27
{$IMPLICITEXCEPTIONS OFF}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    28
{$VARSTRINGCHECKS ON}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    29
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    30
{$DEFINE USE_LUA_SCRIPT}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    31
8026
4a4f21070479 merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents: 7837
diff changeset
    32
{$IF DEFINED(WEBGL) AND NOT DEFINED(PAS2C)}
4a4f21070479 merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents: 7837
diff changeset
    33
{$UNDEF WEBGL}
4a4f21070479 merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents: 7837
diff changeset
    34
{$ENDIF}
4a4f21070479 merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents: 7837
diff changeset
    35
4a4f21070479 merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents: 7837
diff changeset
    36
{$IFDEF WEBGL}
4a4f21070479 merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents: 7837
diff changeset
    37
{$DEFINE GL2}
4a4f21070479 merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents: 7837
diff changeset
    38
{$ENDIF}
2803
1f446fc5c8ec allow to compile engine as library with HWLIBRARY symbol
koda
parents: 2716
diff changeset
    39
5286
22c1f4833a86 First commit..
Xeli
parents: 5275
diff changeset
    40
{$IFDEF ANDROID}
7226
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    41
    {$DEFINE MOBILE}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    42
    {$DEFINE USE_CONTEXT_RESTORE}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    43
    {$DEFINE Java_Prefix:= 'Java_org_hedgewars_hedgeroid_EngineProtocol_PascalExports_'}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    44
{$ENDIF}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    45
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    46
{$IFDEF IPHONEOS}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    47
    {$DEFINE MOBILE}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    48
{$ENDIF}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    49
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    50
{$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
    51
    {$DEFINE HWLIBRARY}
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6460
diff changeset
    52
    {$DEFINE GLunit:=gles11}
6676
21cf35a570a7 add keywords for landscape ammomenu and touch interface
koda
parents: 6674
diff changeset
    53
    {$DEFINE USE_LANDSCAPE_AMMOMENU}
21cf35a570a7 add keywords for landscape ammomenu and touch interface
koda
parents: 6674
diff changeset
    54
    {$DEFINE USE_TOUCH_INTERFACE}
7226
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    55
{$ELSE}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    56
    {$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
    57
    {$DEFINE USE_S3D_RENDERING}
5286
22c1f4833a86 First commit..
Xeli
parents: 5275
diff changeset
    58
{$ENDIF}
22c1f4833a86 First commit..
Xeli
parents: 5275
diff changeset
    59
6033
6bcc36225162 fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents: 6025
diff changeset
    60
6674
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    61
{$IFDEF WIN32}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    62
    {$DEFINE USE_CONTEXT_RESTORE}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    63
{$ENDIF}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    64
7226
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    65
{$IFDEF DARWIN}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    66
    {$IFNDEF IPHONEOS}
6674
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    67
        {$DEFINE USE_CONTEXT_RESTORE}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    68
    {$ENDIF}
2630
079ef82eac75 revamped file access and debug display
koda
parents: 2609
diff changeset
    69
{$ENDIF}
079ef82eac75 revamped file access and debug display
koda
parents: 2609
diff changeset
    70
7837
3e031b3b33e6 minor macro cleanup
koda
parents: 7538
diff changeset
    71
{$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
    72
    {$DEFINE SDL2}
7837
3e031b3b33e6 minor macro cleanup
koda
parents: 7538
diff changeset
    73
{$ENDIF}
7059
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    74
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    75
{$IFDEF PAS2C}
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    76
    {$DEFINE NOCONSOLE}
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    77
    {$DEFINE USE_SDLTHREADS}
7067
f98ec3aecf4e A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents: 7059
diff changeset
    78
{$ENDIF}
f98ec3aecf4e A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents: 7059
diff changeset
    79
f98ec3aecf4e A solution to char vs string problem: mark single-letter strings with _S macro
unc0rr
parents: 7059
diff changeset
    80
{$DEFINE _S:=}
7070
8d4189609e90 oops, wrong type
unc0rr
parents: 7067
diff changeset
    81
{$DEFINE _P:=}
7226
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    82
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    83
//{$DEFINE TRACEAIACTIONS}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    84
//{$DEFINE COUNTTICKS}
c3b4fc19fcd4 reorganize options.inc a little
koda
parents: 7070
diff changeset
    85