Compilation changes

Few compile time attempts to speed things up

Swap include guards for pramga once
Change compile options in the cmakeLists for source
generate a pch

small tweaks
This commit is contained in:
marauder2k7 2026-05-21 23:55:35 +01:00
parent 0df3bea9ca
commit 68e762130d
1016 changed files with 2848 additions and 5532 deletions

View file

@ -19,17 +19,14 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _DISPATCHER_H_
#define _DISPATCHER_H_
#ifndef _MESSAGE_H_
#include "util/messaging/message.h"
#endif
#ifndef _CONSOLE_H_
#include "console/console.h"
#endif
/// @addtogroup msgsys Message System
// @{

View file

@ -19,22 +19,15 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _EVENTMANAGER_H_
#define _EVENTMANAGER_H_
#ifndef _CONSOLE_H_
#include "console/console.h"
#endif
#ifndef _DISPATCHER_H_
#include "util/messaging/dispatcher.h"
#endif
#ifndef _TSIMPLEHASHTABLE_H
#include "core/tSimpleHashTable.h"
#endif
//-----------------------------------------------------------------------------
/// Listener class used by the EventManager to dispatch messages to specific

View file

@ -19,17 +19,14 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _MESSAGE_H_
#define _MESSAGE_H_
#ifndef _SIMBASE_H_
#include "console/simBase.h"
#endif
#ifndef _NETCONNECTION_H_
#include "sim/netConnection.h"
#endif
// Forward Refs
class MessageQueue;

View file

@ -23,6 +23,8 @@
#include "console/simBase.h"
#include "util/messaging/dispatcher.h"
#include "util/messaging/scriptMsgListener.h"
#pragma once
#pragma once
#ifndef _MESSAGEFORWARDER_H_
#define _MESSAGEFORWARDER_H_

View file

@ -21,13 +21,12 @@
//-----------------------------------------------------------------------------
#include "console/simBase.h"
#pragma once
#pragma once
#ifndef _SCRIPTMSGLISTENER_H_
#define _SCRIPTMSGLISTENER_H_
#ifndef _DISPATCHER_H_
#include "util/messaging/dispatcher.h"
#endif
/// @addtogroup msgsys Message System
// @{