Repository navigation
Expand file tree
/
Copy pathREADME
More file actions
76 lines (62 loc) · 2.69 KB
/
Copy pathREADME
File metadata and controls
76 lines (62 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
D2DF-SDL
---------
Doom2D Forever ( http://repo.or.cz/d2df-sdl.git ) adapted for use with the
FreePascal Compiler and ported to SDL (SDL2).
Build
---------
Requirements:
* FPC >= 3.1.1;
* libenet >= 1.3.13;
Create the `tmp` and `bin` directories and then run:
cd src/game
fpc -g -gl -O3 -FE../../bin -FU../../tmp Doom2DF.lpr
Additionally you can add the following options:
System driver:
* -dUSE_SDL2 Build with SDL 2.0.x
* -dUSE_SDL Build with SDL 1.2.x
* -dUSE_SYSSTUB Disable I/O management
Render driver:
* -dUSE_OPENGL Build with desktop OpenGL 2.x
* -dUSE_GLES1 Build with mobile OpenGL ES 1.1
* -dUSE_GLSTUB Disable rendering
Sound driver:
* -dUSE_FMOD Build with FMOD Ex (4.30.22, other versions may fail)
* -dUSE_SDLMIXER Build with SDL_mixer
* -dUSE_OPENAL Build with OpenAL 1.1
* -dUSE_SOUNDSTUB Disable sound management
Sound file drivers (OpenAL only):
* -dUSE_SDL2 Build with SDL 2.0.x for WAV support
* -dUSE_SDL Build with SDL 1.2.x for WAV support
* -dUSE_VORBIS Build with libvorbis
* -dUSE_FLUIDSYNTH Build with libfluidsynth
* -dUSE_MODPLUG Build with libmodplug
* -dUSE_XMP Build with linxmp
* -dUSE_MPG123 Build with libmpg123
* -dUSE_OPUS Build with libopus
* -dUSE_GME Build with libgme
Other:
* -dSDL2_NODPI Build for old libSDL2
* -dUSE_MINIUPNPC Build with MiniUPnPc for automatic server port
forwarding via UPnP
* -dENABLE_HOLMES Build with in-game map debugger
* -dHEADLESS Build a headless executable for dedicated servers
Run the game with --gdb when using a debugger to prevent it from eating
exceptions.
Windows binaries will require the appropriate DLLs (SDL2.dll, SDL2_mixer.dll or
FMODex.dll, ENet.dll, miniupnpc.dll) unless you choose to link them statically.
Static Linking
--------------
It is possible to link libraries statically for Windows builds. You can use:
-dENET_WINDOWS_STATIC -- static ENet
-dMINIUPNPC_WINDOWS_STATIC -- static MiniUPnPc
-dLIBJIT_WINDOWS_STATIC -- static LibJIT
-dOPENAL_WINDOWS_STATIC -- static OpenAL
Next ones make sense only for OpenAL-based builds:
-dMODPLUG_WINDOWS_STATIC -- static libmodplug
-dMPG123_WINDOWS_STATIC -- static libmpg123
-dVORBIS_WINDOWS_STATIC -- static libogg + libvorbis
-dOPUS_WINDOWS_STATIC -- static libogg + libopus
-dFLUIDSYNTH_WINDOWS_STATIC -- static FluidSynth
-dLIBGME_WINDOWS_STATIC -- static libgme (game-music-emu)
-dLIBXMP_WINDOWS_STATIC -- static libxmp
Don't forget to specify lib*.a location with -Fi<...>