mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-25 05:51:28 +00:00
pch testing
This commit is contained in:
parent
bcd943a964
commit
75a11552fc
@ -482,3 +482,4 @@ ENDIF(EQEMU_BUILD_TESTS)
|
||||
IF(EQEMU_BUILD_CLIENT_FILES)
|
||||
ADD_SUBDIRECTORY(client_files)
|
||||
ENDIF(EQEMU_BUILD_CLIENT_FILES)
|
||||
|
||||
|
||||
@ -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
common/pch/pch-containers.h
Normal file
13
common/pch/pch-containers.h
Normal 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
common/pch/pch-emu-common.h
Normal file
14
common/pch/pch-emu-common.h
Normal 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
common/pch/pch-fmt.h
Normal file
8
common/pch/pch-fmt.h
Normal 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
common/pch/pch-types.h
Normal file
11
common/pch/pch-types.h
Normal 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
common/pch/pch-utilities.h
Normal file
18
common/pch/pch-utilities.h
Normal 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
|
||||
@ -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>
|
||||
@ -78,8 +78,12 @@ ADD_EXECUTABLE(world ${world_sources} ${world_headers})
|
||||
|
||||
INSTALL(TARGETS world RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
|
||||
IF (WIN32 AND EQEMU_BUILD_PCH)
|
||||
TARGET_PRECOMPILE_HEADERS(world PRIVATE ../common/pch/pch.h)
|
||||
IF (EQEMU_BUILD_PCH)
|
||||
TARGET_PRECOMPILE_HEADERS(world PRIVATE ../common/pch/pch-emu-common.h)
|
||||
TARGET_PRECOMPILE_HEADERS(world PRIVATE ../common/pch/pch-containers.h)
|
||||
TARGET_PRECOMPILE_HEADERS(world PRIVATE ../common/pch/pch-utilities.h)
|
||||
TARGET_PRECOMPILE_HEADERS(world PRIVATE ../common/pch/pch-types.h)
|
||||
TARGET_PRECOMPILE_HEADERS(world PRIVATE ../common/pch/pch-fmt.h)
|
||||
ENDIF ()
|
||||
|
||||
ADD_DEFINITIONS(-DWORLD)
|
||||
|
||||
@ -289,10 +289,14 @@ ADD_EXECUTABLE(zone ${zone_sources} ${zone_headers})
|
||||
|
||||
INSTALL(TARGETS zone RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
|
||||
IF (WIN32 AND EQEMU_BUILD_PCH)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE ../common/pch/pch.h)
|
||||
IF (EQEMU_BUILD_PCH)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE ../common/pch/pch-emu-common.h)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE ../common/pch/pch-containers.h)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE ../common/pch/pch-utilities.h)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE ../common/pch/pch-types.h)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE ../common/pch/pch-fmt.h)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE ../common/types.h ../common/eqemu_logsys.h ../common/eqemu_logsys_log_aliases.h ../common/features.h ../common/global_define.h)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE mob.h npc.h corpse.h doors.h bot.h entity.h client.h zone.h)
|
||||
TARGET_PRECOMPILE_HEADERS(zone PRIVATE pch/pch.h)
|
||||
ENDIF()
|
||||
|
||||
ADD_DEFINITIONS(-DZONE)
|
||||
|
||||
20
zone/pch/pch.h
Normal file
20
zone/pch/pch.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef EQEMU_ZONE_PCH_H
|
||||
#define EQEMU_ZONE_PCH_H
|
||||
|
||||
#include "../quest_parser_collection.h"
|
||||
#include "../mob.h"
|
||||
#include "../npc.h"
|
||||
#include "../corpse.h"
|
||||
#include "../doors.h"
|
||||
#include "../bot.h"
|
||||
#include "../entity.h"
|
||||
#include "../client.h"
|
||||
#include "../zone.h"
|
||||
|
||||
// lua
|
||||
#include "lua.hpp"
|
||||
#include <luabind/luabind.hpp>
|
||||
#include <luabind/object.hpp>
|
||||
#include <luabind/class.hpp>
|
||||
|
||||
#endif //EQEMU_ZONE_PCH_H
|
||||
Loading…
x
Reference in New Issue
Block a user