X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=README;h=d9d63a867bbeb06978a425965994a1d8461c8bdb;hb=5929d2a7e4ac7aef4d49bdef3bef3ef506e4b9b0;hp=69b7baeee6fc8f69d14a4884bf071672e9bf66fc;hpb=6880f8a491a247a34d6afb5508d0a64196a3d26d;p=d2df-sdl.git diff --git a/README b/README index 69b7bae..d9d63a8 100644 --- a/README +++ b/README @@ -19,8 +19,33 @@ cd src/game fpc -O3 -Fi../lib/vampimg -Fi../lib/vampimg/JpegLib -Fi../lib/vampimg/ZLib -Fu../lib/vampimg -Fu../lib/vampimg/JpegLib -Fu../lib/vampimg/ZLib -FE../../bin -FU../../tmp Doom2DF.lpr If you want SDL_mixer instead of FMOD, add -dUSE_MIXER. +If you want the server to be able to forward ports via UPNP, add -dUSE_MINIUPNPC. To build a headless (no video/audio, for dedicated servers) executable, add -dHEADLESS. Replace -O3 with -g -gl to enable debugging features. 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). +Windows binaries will require the appropriate DLLs (SDL2.dll, SDL2_mixer.dll or FMODEx.dll, ENet.dll, miniupnpc.dll), +unless you choose to static link them (see below). + + +Static Linking +-------------- + +See ( http://repo.or.cz/d2df-binlib.git ) repo for prebuild dynamic and static libraries. + +It is now possible to link windoze LibJIT and ENet as static libs. + +First, you need to clone ( http://repo.or.cz/d2df-binlib.git ) (repo with prebuilt windoze libs). +Then, you can use: + -dLIBJIT_WINDOZE_STATIC -- static LibJIT + -dLIBENET_WINDOZE_STATIC -- static ENet + -dLIBMINIUPNPC_WINDOZE_STATIC -- static MiniUPNPC + +Don't forget to specify lib*.a location with -Fi<...> + +I (ketmar) used mingw-gcc 7.1.0 to build static libs; some other .a libs were taken directly from mingw. +building libs is easy: just fire msys, install all dependencies, and do: + + ./configure --enable-static --disable-shared && make + +This should produce working .a library suitable for static linking.