From 82bff57d166ece1173ca7df33940171548015a71 Mon Sep 17 00:00:00 2001 From: F1F7Y <64418963+F1F7Y@users.noreply.github.com> Date: Fri, 28 Jul 2023 23:26:13 +0200 Subject: Remove `pch.cpp` and all `#include "pch.h"` occurrences (#519) With the move to cmake there is no need for the `pch.cpp` files as it generates them automatically. Also removes leftover `#include "pch.h"` occurrences --- NorthstarDLL/dedicated/dedicatedlogtoclient.cpp | 1 - NorthstarDLL/mods/modsavefiles.cpp | 1 - NorthstarDLL/pch.cpp | 5 ----- NorthstarDLL/plugins/pluginbackend.cpp | 1 - NorthstarDLL/plugins/pluginbackend.h | 1 - NorthstarDLL/scripts/scriptjson.h | 1 - NorthstarDLL/shared/gamepresence.cpp | 2 -- NorthstarDLL/shared/gamepresence.h | 3 +-- loader_wsock32_proxy/CMakeLists.txt | 2 -- loader_wsock32_proxy/dllmain.cpp | 1 - loader_wsock32_proxy/loader.cpp | 1 - loader_wsock32_proxy/pch.cpp | 5 ----- 12 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 NorthstarDLL/pch.cpp delete mode 100644 loader_wsock32_proxy/pch.cpp diff --git a/NorthstarDLL/dedicated/dedicatedlogtoclient.cpp b/NorthstarDLL/dedicated/dedicatedlogtoclient.cpp index 8d19372f..a48b1b39 100644 --- a/NorthstarDLL/dedicated/dedicatedlogtoclient.cpp +++ b/NorthstarDLL/dedicated/dedicatedlogtoclient.cpp @@ -1,4 +1,3 @@ -#include "pch.h" #include "dedicatedlogtoclient.h" #include "engine/r2engine.h" diff --git a/NorthstarDLL/mods/modsavefiles.cpp b/NorthstarDLL/mods/modsavefiles.cpp index 6676ec34..f8e5848c 100644 --- a/NorthstarDLL/mods/modsavefiles.cpp +++ b/NorthstarDLL/mods/modsavefiles.cpp @@ -1,4 +1,3 @@ -#include "pch.h" #include #include #include diff --git a/NorthstarDLL/pch.cpp b/NorthstarDLL/pch.cpp deleted file mode 100644 index 64b7eef6..00000000 --- a/NorthstarDLL/pch.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// pch.cpp: source file corresponding to the pre-compiled header - -#include "pch.h" - -// When you are using pre-compiled headers, this source file is necessary for compilation to succeed. diff --git a/NorthstarDLL/plugins/pluginbackend.cpp b/NorthstarDLL/plugins/pluginbackend.cpp index b442d702..091ddd2f 100644 --- a/NorthstarDLL/plugins/pluginbackend.cpp +++ b/NorthstarDLL/plugins/pluginbackend.cpp @@ -1,4 +1,3 @@ -#include "pch.h" #include "pluginbackend.h" #include "plugin_abi.h" #include "server/serverpresence.h" diff --git a/NorthstarDLL/plugins/pluginbackend.h b/NorthstarDLL/plugins/pluginbackend.h index ef42c508..898b3a99 100644 --- a/NorthstarDLL/plugins/pluginbackend.h +++ b/NorthstarDLL/plugins/pluginbackend.h @@ -1,5 +1,4 @@ #pragma once -#include "pch.h" #include "plugin_abi.h" #include "shared/gamepresence.h" diff --git a/NorthstarDLL/scripts/scriptjson.h b/NorthstarDLL/scripts/scriptjson.h index 09926bef..b747106b 100644 --- a/NorthstarDLL/scripts/scriptjson.h +++ b/NorthstarDLL/scripts/scriptjson.h @@ -1,6 +1,5 @@ #pragma once -#include "pch.h" #include "rapidjson/document.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" diff --git a/NorthstarDLL/shared/gamepresence.cpp b/NorthstarDLL/shared/gamepresence.cpp index 86a87526..11cb7ade 100644 --- a/NorthstarDLL/shared/gamepresence.cpp +++ b/NorthstarDLL/shared/gamepresence.cpp @@ -1,5 +1,3 @@ -#include "pch.h" - #include "gamepresence.h" #include "plugins/pluginbackend.h" #include "plugins/plugins.h" diff --git a/NorthstarDLL/shared/gamepresence.h b/NorthstarDLL/shared/gamepresence.h index 167f83ab..439ec65c 100644 --- a/NorthstarDLL/shared/gamepresence.h +++ b/NorthstarDLL/shared/gamepresence.h @@ -1,6 +1,5 @@ - #pragma once -#include "pch.h" + #include "server/serverpresence.h" class GameStateServerPresenceReporter : public ServerPresenceReporter diff --git a/loader_wsock32_proxy/CMakeLists.txt b/loader_wsock32_proxy/CMakeLists.txt index 3c21d010..3157f6c5 100644 --- a/loader_wsock32_proxy/CMakeLists.txt +++ b/loader_wsock32_proxy/CMakeLists.txt @@ -6,8 +6,6 @@ add_library(loader_wsock32_proxy SHARED "dllmain.cpp" "loader.cpp" "loader.h" - "pch.cpp" - "pch.h" "wsock32.asm" "wsock32.def" ) diff --git a/loader_wsock32_proxy/dllmain.cpp b/loader_wsock32_proxy/dllmain.cpp index c5610042..4cc4f26e 100644 --- a/loader_wsock32_proxy/dllmain.cpp +++ b/loader_wsock32_proxy/dllmain.cpp @@ -1,4 +1,3 @@ -#include "pch.h" #include "loader.h" #include diff --git a/loader_wsock32_proxy/loader.cpp b/loader_wsock32_proxy/loader.cpp index c5046e2e..f8b3052b 100644 --- a/loader_wsock32_proxy/loader.cpp +++ b/loader_wsock32_proxy/loader.cpp @@ -1,4 +1,3 @@ -#include "pch.h" #include "loader.h" #include #include diff --git a/loader_wsock32_proxy/pch.cpp b/loader_wsock32_proxy/pch.cpp deleted file mode 100644 index 64b7eef6..00000000 --- a/loader_wsock32_proxy/pch.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// pch.cpp: source file corresponding to the pre-compiled header - -#include "pch.h" - -// When you are using pre-compiled headers, this source file is necessary for compilation to succeed. -- cgit v1.2.3