Pyrogenesis
HEAD
Pyrogenesis, a RTS Engine
config2.h
Go to the documentation of this file.
1
/* Copyright (C) 2026 Wildfire Games.
2
*
3
* Permission is hereby granted, free of charge, to any person obtaining
4
* a copy of this software and associated documentation files (the
5
* "Software"), to deal in the Software without restriction, including
6
* without limitation the rights to use, copy, modify, merge, publish,
7
* distribute, sublicense, and/or sell copies of the Software, and to
8
* permit persons to whom the Software is furnished to do so, subject to
9
* the following conditions:
10
*
11
* The above copyright notice and this permission notice shall be included
12
* in all copies or substantial portions of the Software.
13
*
14
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
*/
22
23
/*
24
* compile-time configuration for isolated spots
25
*/
26
27
#ifndef INCLUDED_CONFIG2
28
#define INCLUDED_CONFIG2
29
30
// rationale: a centralized header makes it much easier to see what all
31
// can be changed. it is assumed that only a few modules will need
32
// configuration choices, so rebuilding them all is acceptable.
33
// use config.h when settings must apply to the entire project.
34
35
#ifndef CONFIG2_DAP_INTERFACE
36
# define CONFIG2_DAP_INTERFACE 1
37
#endif
// !CONFIG2_DAP_INTERFACE
38
39
#ifndef CONFIG2_FILE_ENABLE_AIO
40
// work around a bug introduced in Linux 2.6.38
41
// (http://www.wildfiregames.com/forum/index.php?showtopic=14561&view=findpost&p=217710)
42
// OpenBSD doesn't provide aio.h so we disable its use
43
# if OS_LINUX || OS_OPENBSD
44
# define CONFIG2_FILE_ENABLE_AIO 0
45
# else
46
# define CONFIG2_FILE_ENABLE_AIO 1
47
# endif
48
#endif
49
50
// build in OpenGL ES 2.0 mode, instead of the default mode designed for
51
// GL 1.1 + extensions.
52
// this disables various features that are not supported by GLES.
53
#ifndef CONFIG2_GLES
54
# define CONFIG2_GLES 0
55
#endif
56
57
// allow use of OpenAL/Ogg/Vorbis APIs
58
#ifndef CONFIG2_AUDIO
59
# define CONFIG2_AUDIO 1
60
#endif
61
62
// allow use of NVTT
63
#ifndef CONFIG2_NVTT
64
# define CONFIG2_NVTT 1
65
#endif
66
67
// allow use of lobby
68
#ifndef CONFIG2_LOBBY
69
# define CONFIG2_LOBBY 1
70
#endif
71
72
// allow use of miniupnpc
73
#ifndef CONFIG2_MINIUPNPC
74
# define CONFIG2_MINIUPNPC 1
75
#endif
76
77
// default disable valgrind
78
#ifndef CONFIG2_VALGRIND
79
# define CONFIG2_VALGRIND 0
80
#endif
81
82
#endif
// #ifndef INCLUDED_CONFIG2
source
lib
config2.h
Generated by
1.9.4