pch testing

This commit is contained in:
Akkadius
2024-10-01 20:11:32 -05:00
parent bcd943a964
commit 75a11552fc
11 changed files with 104 additions and 41 deletions
+6 -2
View File
@@ -803,8 +803,12 @@ IF (UNIX)
SET_SOURCE_FILES_PROPERTIES("patches/sod.cpp" "patches/sof.cpp" "patches/rof.cpp" "patches/rof2.cpp" "patches/uf.cpp" PROPERTIES COMPILE_FLAGS -O0)
ENDIF (UNIX)
IF (WIN32 AND EQEMU_BUILD_PCH)
TARGET_PRECOMPILE_HEADERS(common PRIVATE pch/pch.h)
IF (EQEMU_BUILD_PCH)
TARGET_PRECOMPILE_HEADERS(common PRIVATE pch/pch-emu-common.h)
TARGET_PRECOMPILE_HEADERS(common PRIVATE pch/pch-containers.h)
TARGET_PRECOMPILE_HEADERS(common PRIVATE pch/pch-utilities.h)
TARGET_PRECOMPILE_HEADERS(common PRIVATE pch/pch-types.h)
TARGET_PRECOMPILE_HEADERS(common PRIVATE pch/pch-fmt.h)
ENDIF ()
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
+13
View File
@@ -0,0 +1,13 @@
#ifndef EQEMU_CONTAINERS_PCH_H
#define EQEMU_CONTAINERS_PCH_H
// containers
#include <iterator>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <list>
#include <vector>
#endif
+14
View File
@@ -0,0 +1,14 @@
#ifndef EQEMU_EMU_COMMON_PCH_H
#define EQEMU_EMU_COMMON_PCH_H
// emu
#include "../../common/timer.h"
#include "../../common/strings.h"
#include "../../common/http/httplib.h"
#include "../../common/base_packet.h"
#include "../../common/database.h"
#include "../../common/emu_constants.h"
#include "../../common/servertalk.h"
#include "../../common/global_define.h"
#include "../../common/eqemu_logsys.h"
#endif
+8
View File
@@ -0,0 +1,8 @@
#ifndef EQEMU_FMT_PCH_H
#define EQEMU_FMT_PCH_H
// fmt
#include <fmt/format.h>
#include <cereal/archives/json.hpp>
#endif
+11
View File
@@ -0,0 +1,11 @@
#ifndef EQEMU_TYPES_PCH_H
#define EQEMU_TYPES_PCH_H
// types
#include <limits>
#include <string>
#include <cctype>
#include <sstream>
#include <type_traits>
#endif
+18
View File
@@ -0,0 +1,18 @@
#ifndef EQEMU_UTILITIES_PCH_H
#define EQEMU_UTILITIES_PCH_H
// utilities
#include <iostream>
#include <cassert>
#include <cmath>
#include <memory>
#include <functional>
#include <algorithm>
#include <utility>
#include <tuple>
#include <fstream>
#include <cstdio>
#include <stdio.h>
#include <mutex>
#endif
-34
View File
@@ -1,34 +0,0 @@
// types
#include <limits>
#include <string>
#include <cctype>
#include <sstream>
// containers
#include <iterator>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <list>
#include <vector>
// utilities
#include <iostream>
#include <cassert>
#include <cmath>
#include <memory>
#include <functional>
#include <algorithm>
#include <utility>
#include <tuple>
#include <fstream>
#include <cstdio>
// fmt
#include <fmt/format.h>
// lua
#include "lua.hpp"
#include <luabind/luabind.hpp>
#include <luabind/object.hpp>