Comment: | Add buildsys |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e5461ff8527693d6fead8581236f6258 |
User & Date: | js on 2024-07-20 14:32:55 |
Other Links: | manifest | tags |
2024-07-20
| ||
14:40 | Remove unnecessary AC_SUBST check-in: 2089155e01 user: js tags: trunk | |
14:32 | Add buildsys check-in: e5461ff852 user: js tags: trunk | |
2024-07-13
| ||
14:32 | Remove build system check-in: 32cb6eb8e4 user: js tags: trunk | |
Added Makefile version [0c78c227ba].
Added autogen.sh version [11497cc624].
Added build-aux/config.guess version [eff4d47d66].
Added build-aux/config.sub version [85c85f0251].
Added build-aux/install-sh version [1cccb4aa97].
Added build-aux/m4/buildsys.m4 version [2df76d7ffd].
Added build-aux/m4/pkg.m4 version [f7f00f7dea].
Added buildsys.mk.in version [9eda233348].
Added configure.ac version [7254fda50d].
Added enet/Makefile version [3e24f4a348].
Modified enet/include/enet/enet.h from [2ef4251f8a] to [1984b68050].
1 2 3 4 5 6 7 8 9 10 11 12 13 | /** @file enet.h @brief ENet public header file */ #ifndef __ENET_ENET_H__ #define __ENET_ENET_H__ #ifdef __cplusplus extern "C" { #endif #include <stdlib.h> | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | /** @file enet.h @brief ENet public header file */ #ifndef __ENET_ENET_H__ #define __ENET_ENET_H__ #ifdef __cplusplus extern "C" { #endif #include <stdlib.h> #include <string.h> #ifdef _WIN32 #include "enet/win32.h" #else #include "enet/unix.h" #endif #include "enet/types.h" #include "enet/protocol.h" |
︙ | ︙ |
Modified enet/protocol.c from [a118dc61d9] to [4bf65a8b43].
︙ | ︙ | |||
1125 1126 1127 1128 1129 1130 1131 | else if (ENET_TIME_DIFFERENCE (timeCurrent, currentPeer -> packetLossEpoch) >= ENET_PEER_PACKET_LOSS_INTERVAL && currentPeer -> packetsSent > 0) { enet_uint32 packetLoss = currentPeer -> packetsLost * ENET_PEER_PACKET_LOSS_SCALE / currentPeer -> packetsSent; #ifdef ENET_DEBUG | | | 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 | else if (ENET_TIME_DIFFERENCE (timeCurrent, currentPeer -> packetLossEpoch) >= ENET_PEER_PACKET_LOSS_INTERVAL && currentPeer -> packetsSent > 0) { enet_uint32 packetLoss = currentPeer -> packetsLost * ENET_PEER_PACKET_LOSS_SCALE / currentPeer -> packetsSent; #ifdef ENET_DEBUG #ifdef _WIN32 printf ( #else fprintf (stderr, #endif "peer %u: %f%%+-%f%% packet loss, %u+-%u ms round trip time, %f%% throttle, %u/%u outgoing, %u/%u incoming\n", currentPeer -> incomingPeerID, currentPeer -> packetLoss / (float) ENET_PEER_PACKET_LOSS_SCALE, currentPeer -> packetLossVariance / (float) ENET_PEER_PACKET_LOSS_SCALE, currentPeer -> roundTripTime, currentPeer -> roundTripTimeVariance, currentPeer -> packetThrottle / (float) ENET_PEER_PACKET_THROTTLE_SCALE, enet_list_size (& currentPeer -> outgoingReliableCommands), enet_list_size (& currentPeer -> outgoingUnreliableCommands), currentPeer -> channels != NULL ? enet_list_size (& currentPeer -> channels -> incomingReliableCommands) : 0, enet_list_size (& currentPeer -> channels -> incomingUnreliableCommands)); #endif |
︙ | ︙ |
Modified enet/unix.c from [29ebe06997] to [3a19083186].
1 2 3 4 | /** @file unix.c @brief ENet Unix system specific functions */ | | | 1 2 3 4 5 6 7 8 9 10 11 12 | /** @file unix.c @brief ENet Unix system specific functions */ #ifndef _WIN32 #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/time.h> #include <netdb.h> #include <unistd.h> |
︙ | ︙ | |||
21 22 23 24 25 26 27 | #include <fcntl.h> #endif #ifdef HAS_POLL #include <sys/poll.h> #endif | | | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #include <fcntl.h> #endif #ifdef HAS_POLL #include <sys/poll.h> #endif #if 0 typedef int socklen_t; #endif #ifndef MSG_NOSIGNAL #define MSG_NOSIGNAL 0 #endif |
︙ | ︙ |
Modified enet/win32.c from [9c9e87a44e] to [470e3220ea].
1 2 3 4 | /** @file win32.c @brief ENet Win32 system specific functions */ | | | 1 2 3 4 5 6 7 8 9 10 11 12 | /** @file win32.c @brief ENet Win32 system specific functions */ #ifdef _WIN32 #include <time.h> #define ENET_BUILDING_LIB 1 #include "enet/enet.h" static enet_uint32 timeBase = 0; |
︙ | ︙ |
Added extra.mk.in version [5f7a2ed8e6].
Added src/Makefile version [a5f2d16630].
Name change from src/client.cpp to src/client.cxx.
Name change from src/clientextras.cpp to src/clientextras.cxx.
Name change from src/clientgame.cpp to src/clientgame.cxx.
Name change from src/clients2c.cpp to src/clients2c.cxx.
Name change from src/command.cpp to src/command.cxx.
Renamed and modified src/console.cpp [0a4b6d327b] to src/console.cxx [6742f4f771].
︙ | ︙ | |||
34 35 36 37 38 39 40 | strcat_s(cl.cref, sf); } else { strcpy_s(cl.cref, sf); }; puts(cl.cref); | | | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | strcat_s(cl.cref, sf); } else { strcpy_s(cl.cref, sf); }; puts(cl.cref); #ifndef _WIN32 fflush(stdout); #endif }; void conoutf(const char *s, ...) { sprintf_sdv(sf, s); |
︙ | ︙ | |||
109 110 111 112 113 114 115 | }; void mapmsg(char *s) { strn0cpy(hdr.maptitle, s, 128); }; COMMAND(saycommand, ARG_VARI); COMMAND(mapmsg, ARG_1STR); | | | | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | }; void mapmsg(char *s) { strn0cpy(hdr.maptitle, s, 128); }; COMMAND(saycommand, ARG_VARI); COMMAND(mapmsg, ARG_1STR); #ifndef _WIN32 #include <X11/Xlib.h> #include <SDL_syswm.h> #endif void pasteconsole() { #ifdef _WIN32 if(!IsClipboardFormatAvailable(CF_TEXT)) return; if(!OpenClipboard(NULL)) return; char *cb = (char *)GlobalLock(GetClipboardData(CF_TEXT)); strcat_s(commandbuf, cb); GlobalUnlock(cb); CloseClipboard(); #else |
︙ | ︙ |
Name change from src/editing.cpp to src/editing.cxx.
Name change from src/entities.cpp to src/entities.cxx.
Renamed and modified src/main.cpp [16f960b82c] to src/main.cxx [3831def1c8].
︙ | ︙ | |||
9 10 11 12 13 14 15 | writecfg(); cleangl(); cleansound(); cleanupserver(); SDL_ShowCursor(1); if(msg) { | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | writecfg(); cleangl(); cleansound(); cleanupserver(); SDL_ShowCursor(1); if(msg) { #ifdef _WIN32 MessageBox(NULL, msg, "cube fatal error", MB_OK|MB_SYSTEMMODAL); #else printf(msg); #endif }; SDL_Quit(); exit(1); |
︙ | ︙ |
Name change from src/menus.cpp to src/menus.cxx.
Name change from src/monster.cpp to src/monster.cxx.
Name change from src/physics.cpp to src/physics.cxx.
Name change from src/rendercubes.cpp to src/rendercubes.cxx.
Name change from src/renderextras.cpp to src/renderextras.cxx.
Name change from src/rendergl.cpp to src/rendergl.cxx.
Name change from src/rendermd2.cpp to src/rendermd2.cxx.
Name change from src/renderparticles.cpp to src/renderparticles.cxx.
Name change from src/rendertext.cpp to src/rendertext.cxx.
Name change from src/rndmap.cpp to src/rndmap.cxx.
Name change from src/savegamedemo.cpp to src/savegamedemo.cxx.
Renamed and modified src/server.cpp [4fb63d09f8] to src/server.cxx [3fad36d8b3].
︙ | ︙ | |||
411 412 413 414 415 416 417 | }; if(numplayers>maxclients) { disconnect_client(lastconnect, "maxclients reached"); }; }; | | | 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 | }; if(numplayers>maxclients) { disconnect_client(lastconnect, "maxclients reached"); }; }; #ifndef _WIN32 fflush(stdout); #endif }; void cleanupserver() { if(serverhost) enet_host_destroy(serverhost); |
︙ | ︙ | |||
453 454 455 456 457 458 459 | loopi(MAXCLIENTS) serverhost->peers[i].data = (void *)-1; }; resetserverifempty(); if(isdedicated) // do not return, this becomes main loop { | | | 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | loopi(MAXCLIENTS) serverhost->peers[i].data = (void *)-1; }; resetserverifempty(); if(isdedicated) // do not return, this becomes main loop { #ifdef _WIN32 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); #endif printf("dedicated server started, waiting for clients...\nCtrl-C to exit\n\n"); atexit(cleanupserver); atexit(enet_deinitialize); for(;;) serverslice(/*enet_time_get_sec()*/time(NULL), 5); }; }; |
Name change from src/serverbrowser.cpp to src/serverbrowser.cxx.
Name change from src/serverms.cpp to src/serverms.cxx.
Name change from src/serverutil.cpp to src/serverutil.cxx.
Renamed and modified src/sound.cpp [37f30ca9ad] to src/sound.cxx [0aacd29fb8].
1 2 3 4 | // sound.cpp: uses fmod on windows and sdl_mixer on unix (both had problems on the other platform) #include "cube.h" | | | 1 2 3 4 5 6 7 8 9 10 11 12 | // sound.cpp: uses fmod on windows and sdl_mixer on unix (both had problems on the other platform) #include "cube.h" //#ifndef _WIN32 // NOTE: fmod not being supported for the moment as it does not allow stereo pan/vol updating during playback #define USE_MIXER //#endif VARP(soundvol, 0, 255, 255); VARP(musicvol, 0, 128, 255); bool nosound = false; |
︙ | ︙ |
Name change from src/tools.cpp to src/tools.cxx.
Name change from src/weapon.cpp to src/weapon.cxx.
Name change from src/world.cpp to src/world.cxx.
Name change from src/worldio.cpp to src/worldio.cxx.
Name change from src/worldlight.cpp to src/worldlight.cxx.
Name change from src/worldocull.cpp to src/worldocull.cxx.
Name change from src/worldrender.cpp to src/worldrender.cxx.