hedgewars/options.inc
author unc0rr
Fri, 11 May 2012 22:54:19 +0400
changeset 7059 800dcaf979bf
parent 7048 0a4c88935902
child 7067 f98ec3aecf4e
permissions -rw-r--r--
Define NOCONSOLE for pas2c
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
6952
7f70f37bbf08 license header year range adjustments
sheepluva
parents: 6915
diff changeset
     3
 * Copyright (c) 2004-2012 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
2599
c7153d2348f3 move compiler directives to standard pascal
koda
parents: 2590
diff changeset
    19
{$IFDEF FPC}
7016
8b34f46e10c1 HAPPY 7000th COMMIT HEDGEWARS
koda
parents: 6982
diff changeset
    20
    {$WRITEABLECONST OFF}
8b34f46e10c1 HAPPY 7000th COMMIT HEDGEWARS
koda
parents: 6982
diff changeset
    21
    {$IMPLICITEXCEPTIONS OFF}
8b34f46e10c1 HAPPY 7000th COMMIT HEDGEWARS
koda
parents: 6982
diff changeset
    22
    {$VARSTRINGCHECKS ON}
6974
2d3beb445d64 minor changes for more compatibilities with other compilers
koda
parents: 6952
diff changeset
    23
    {$MODE OBJFPC}
2630
079ef82eac75 revamped file access and debug display
koda
parents: 2609
diff changeset
    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
7b21daf84933 revamped SDLh.pas
koda
parents: 2599
diff changeset
    26
{$ENDIF}
4
bcbd7adb4e4b - set svn:eol-style to native
unc0rr
parents: 1
diff changeset
    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
434cd1284204 code cleanup
koda
parents: 4347
diff changeset
    29
{$DEFINE GLunit:=GL}
2803
1f446fc5c8ec allow to compile engine as library with HWLIBRARY symbol
koda
parents: 2716
diff changeset
    30
5286
22c1f4833a86 First commit..
Xeli
parents: 5275
diff changeset
    31
{$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
    32
    {$DEFINE SDL13}
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6460
diff changeset
    33
    {$DEFINE HWLIBRARY}
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6460
diff changeset
    34
    {$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
    35
    {$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
    36
    {$DEFINE MOBILE}
6674
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    37
    {$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
    38
    {$DEFINE USE_SDLTHREADS}
6674
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    39
    {$DEFINE USE_CONTEXT_RESTORE}
6676
21cf35a570a7 add keywords for landscape ammomenu and touch interface
koda
parents: 6674
diff changeset
    40
    {$DEFINE USE_LANDSCAPE_AMMOMENU}
21cf35a570a7 add keywords for landscape ammomenu and touch interface
koda
parents: 6674
diff changeset
    41
    {$DEFINE USE_TOUCH_INTERFACE}
5286
22c1f4833a86 First commit..
Xeli
parents: 5275
diff changeset
    42
{$ENDIF}
22c1f4833a86 First commit..
Xeli
parents: 5275
diff changeset
    43
2586
204e6b2885bc added little/big endian checks, added symbol for touch input, simplified iphoneos definitions
koda
parents: 1066
diff changeset
    44
{$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
    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}
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6460
diff changeset
    49
    {$DEFINE MOBILE}
6676
21cf35a570a7 add keywords for landscape ammomenu and touch interface
koda
parents: 6674
diff changeset
    50
    {$DEFINE USE_LANDSCAPE_AMMOMENU}
7048
0a4c88935902 the ios port runs again, although with a few things to sort out
koda
parents: 7030
diff changeset
    51
    {$DEFINE USE_TOUCH_INTERFACE}
6033
6bcc36225162 fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents: 6025
diff changeset
    52
{$ENDIF}
6bcc36225162 fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents: 6025
diff changeset
    53
6674
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    54
{$IFDEF WIN32}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    55
    {$DEFINE USE_CONTEXT_RESTORE}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    56
{$ENDIF}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    57
6033
6bcc36225162 fix compiling for android, strip out all delphi code, objfpc ftw
koda
parents: 6025
diff changeset
    58
{$IFNDEF IPHONEOS}
6674
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    59
    {$IFDEF DARWIN}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    60
        {$DEFINE USE_CONTEXT_RESTORE}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    61
    {$ENDIF}
4d3209a189ca gather context restoration under a single keyword
koda
parents: 6580
diff changeset
    62
    // 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
    63
    {$DEFINE DEBUGFILE}
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6460
diff changeset
    64
    //{$DEFINE TRACEAIACTIONS}
6155187bf599 A partial reformatting of the pascal code to have consistent syntax. Things that are still inconsistent.
lovelacer
parents: 6460
diff changeset
    65
    //{$DEFINE COUNTTICKS}
2630
079ef82eac75 revamped file access and debug display
koda
parents: 2609
diff changeset
    66
{$ENDIF}
079ef82eac75 revamped file access and debug display
koda
parents: 2609
diff changeset
    67
6884
85e810230372 disable png screenshots on mobile for now
koda
parents: 6700
diff changeset
    68
{$IFNDEF MOBILE}
6899
c3d44a836086 - Return of the F<numbers> in the ammomenu
Xeli
parents: 6884
diff changeset
    69
    {$DEFINE USE_AM_NUMCOLUMN}
6884
85e810230372 disable png screenshots on mobile for now
koda
parents: 6700
diff changeset
    70
{$ENDIF}
85e810230372 disable png screenshots on mobile for now
koda
parents: 6700
diff changeset
    71
7030
09984acadece invert LUA symbol meaning and avoid hints when compiling without it
koda
parents: 7016
diff changeset
    72
{$DEFINE USE_LUA_SCRIPT}
7059
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    73
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    74
{$IFDEF PAS2C}
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    75
    {$DEFINE NOCONSOLE}
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    76
    {$DEFINE USE_SDLTHREADS}
800dcaf979bf Define NOCONSOLE for pas2c
unc0rr
parents: 7048
diff changeset
    77
{$ENDIF}