Force all headers other than "Globals.h" to be included with relative paths (#4269)
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
This commit is contained in:
parent
c4f43cd8ec
commit
ee84197014
@ -1,7 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
include_directories (".")
|
||||
|
||||
SET (SRCS
|
||||
Bindings.cpp
|
||||
|
@ -7,9 +7,9 @@
|
||||
#include "../Entities/Player.h"
|
||||
#include "../UI/SlotArea.h"
|
||||
#include "PluginLua.h"
|
||||
#include "Root.h"
|
||||
#include "lua/src/lauxlib.h" // Needed for LUA_REFNIL
|
||||
#include "ClientHandle.h"
|
||||
#include "../Root.h"
|
||||
#include "../ClientHandle.h"
|
||||
|
||||
|
||||
|
||||
|
@ -5,10 +5,10 @@
|
||||
|
||||
#include "Globals.h"
|
||||
#include "ManualBindings.h"
|
||||
#include "../Root.h"
|
||||
#include "tolua++/include/tolua++.h"
|
||||
#include "LuaState.h"
|
||||
#include "UUID.h"
|
||||
#include "../Root.h"
|
||||
#include "../UUID.h"
|
||||
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Defines.h"
|
||||
#include "../Defines.h"
|
||||
#include "PluginManager.h"
|
||||
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Defines.h"
|
||||
#include "FunctionRef.h"
|
||||
#include "../Defines.h"
|
||||
#include "../FunctionRef.h"
|
||||
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "BlockEntity.h"
|
||||
#include "../ItemGrid.h"
|
||||
#include "../UI/WindowOwner.h"
|
||||
#include "World.h"
|
||||
#include "../World.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
BeaconEntity.cpp
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "BlockEntity.h"
|
||||
#include "UI/WindowOwner.h"
|
||||
#include "../UI/WindowOwner.h"
|
||||
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "BlockEntity.h"
|
||||
#include "Item.h"
|
||||
#include "../Item.h"
|
||||
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "../World.h"
|
||||
#include "../EffectID.h"
|
||||
#include "json/value.h"
|
||||
#include "Entities/Player.h"
|
||||
#include "../Entities/Player.h"
|
||||
|
||||
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "BlockEntity.h"
|
||||
#include "Defines.h"
|
||||
#include "UUID.h"
|
||||
#include "../Defines.h"
|
||||
#include "../UUID.h"
|
||||
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "BlockBed.h"
|
||||
|
||||
#include "BroadcastInterface.h"
|
||||
#include "Entities/Player.h"
|
||||
#include "../Entities/Player.h"
|
||||
#include "../World.h"
|
||||
#include "../BoundingBox.h"
|
||||
#include "../Mobs/Monster.h"
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "BlockHandler.h"
|
||||
#include "Chunk.h"
|
||||
#include "../Chunk.h"
|
||||
#include "MetaRotator.h"
|
||||
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
#include "BlockHandler.h"
|
||||
#include "../FastRandom.h"
|
||||
#include "Root.h"
|
||||
#include "Bindings/PluginManager.h"
|
||||
#include "../Root.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#include "BlockHandler.h"
|
||||
#include "../Entities/Player.h"
|
||||
#include "Chunk.h"
|
||||
#include "../Chunk.h"
|
||||
#include "MetaRotator.h"
|
||||
#include "ChunkInterface.h"
|
||||
#include "BlockSlab.h"
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include "BlockHandler.h"
|
||||
#include "../BoundingBox.h"
|
||||
#include "../EffectID.h"
|
||||
#include "Entities/LeashKnot.h"
|
||||
#include "BoundingBox.h"
|
||||
#include "../Entities/LeashKnot.h"
|
||||
#include "../BoundingBox.h"
|
||||
#include "../Mobs/PassiveMonster.h"
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "../Item.h"
|
||||
#include "../World.h"
|
||||
#include "../Entities/Player.h"
|
||||
#include "BlockInServerPluginInterface.h"
|
||||
#include "../BlockInServerPluginInterface.h"
|
||||
#include "ChunkInterface.h"
|
||||
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "BlockHandler.h"
|
||||
#include "Chunk.h"
|
||||
#include "MetaRotator.h"
|
||||
#include "ChunkInterface.h"
|
||||
#include "BlockSlab.h"
|
||||
#include "../Chunk.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "BlockHandler.h"
|
||||
#include "Chunk.h"
|
||||
#include "../Chunk.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "BlockHandler.h"
|
||||
#include "Chunk.h"
|
||||
#include "../Chunk.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Defines.h"
|
||||
#include "Scoreboard.h"
|
||||
#include "../Defines.h"
|
||||
#include "../Scoreboard.h"
|
||||
|
||||
// fwd:
|
||||
class cClientHandle;
|
||||
|
@ -2,9 +2,9 @@
|
||||
#include "Globals.h"
|
||||
|
||||
#include "ChunkInterface.h"
|
||||
#include "ChunkMap.h"
|
||||
#include "BlockHandler.h"
|
||||
#include "WorldInterface.h"
|
||||
#include "../ChunkMap.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "FunctionRef.h"
|
||||
#include "../FunctionRef.h"
|
||||
#include "../Mobs/MonsterTypes.h"
|
||||
|
||||
class cBedEntity;
|
||||
@ -13,6 +13,7 @@ class cPlayer;
|
||||
using cBedCallback = cFunctionRef<bool(cBedEntity &)>;
|
||||
using cBlockEntityCallback = cFunctionRef<bool(cBlockEntity &)>;
|
||||
using cPlayerListCallback = cFunctionRef<bool(cPlayer &)>;
|
||||
using cEntityCallback = cFunctionRef<bool(cEntity &)>;
|
||||
|
||||
|
||||
|
||||
|
@ -159,7 +159,10 @@ SET (HDRS
|
||||
XMLParser.h
|
||||
)
|
||||
|
||||
include_directories(".")
|
||||
file(WRITE "${CMAKE_BINARY_DIR}/include/Globals.h"
|
||||
"/* This file allows Globals.h to be included with an absolute path */\n#include \"${PROJECT_SOURCE_DIR}/Globals.h\"\n")
|
||||
|
||||
include_directories("${CMAKE_BINARY_DIR}/include")
|
||||
include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/../lib/sqlite")
|
||||
include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/../lib/SQLiteCpp/include")
|
||||
include_directories (SYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/../lib/TCLAP/include")
|
||||
@ -245,8 +248,6 @@ else ()
|
||||
includefolder("Resources")
|
||||
source_group("" FILES ${SOURCE})
|
||||
|
||||
include_directories("${PROJECT_SOURCE_DIR}")
|
||||
|
||||
# Precompiled headers (1st part)
|
||||
SET_SOURCE_FILES_PROPERTIES(
|
||||
Globals.cpp PROPERTIES COMPILE_FLAGS "/Yc\"Globals.h\""
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
ArrowEntity.cpp
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "EnderCrystal.h"
|
||||
#include "ClientHandle.h"
|
||||
#include "../ClientHandle.h"
|
||||
#include "../Chunk.h"
|
||||
#include "../World.h"
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "Entity.h"
|
||||
#include "Player.h"
|
||||
#include "../World.h"
|
||||
#include "../Root.h"
|
||||
#include "../Matrix4.h"
|
||||
@ -10,8 +11,7 @@
|
||||
#include "../Simulator/FluidSimulator.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
#include "../LineBlockTracer.h"
|
||||
#include "Player.h"
|
||||
#include "Items/ItemHandler.h"
|
||||
#include "../Items/ItemHandler.h"
|
||||
#include "../FastRandom.h"
|
||||
#include "../NetherPortalScanner.h"
|
||||
#include "../BoundingBox.h"
|
||||
|
@ -2,8 +2,8 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "HangingEntity.h"
|
||||
#include "ClientHandle.h"
|
||||
#include "Player.h"
|
||||
#include "../ClientHandle.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "ItemFrame.h"
|
||||
#include "ClientHandle.h"
|
||||
#include "Player.h"
|
||||
#include "../ClientHandle.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "LeashKnot.h"
|
||||
#include "ClientHandle.h"
|
||||
#include "Player.h"
|
||||
#include "Mobs/Monster.h"
|
||||
#include "BoundingBox.h"
|
||||
#include "../Mobs/Monster.h"
|
||||
#include "../BoundingBox.h"
|
||||
#include "../ClientHandle.h"
|
||||
|
||||
// Ticks to wait in Tick function to optimize calculations
|
||||
#define TICK_STEP 10
|
||||
|
@ -10,7 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Entity.h"
|
||||
#include "World.h"
|
||||
#include "../World.h"
|
||||
#include "../UI/WindowOwner.h"
|
||||
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "Painting.h"
|
||||
#include "ClientHandle.h"
|
||||
#include "Player.h"
|
||||
#include "../ClientHandle.h"
|
||||
#include "../Chunk.h"
|
||||
|
||||
|
||||
|
@ -5,9 +5,9 @@
|
||||
#include "Player.h"
|
||||
#include "../World.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
#include "BoundingBox.h"
|
||||
#include "../BoundingBox.h"
|
||||
#include "../Blocks/BlockHandler.h"
|
||||
#include "EffectID.h"
|
||||
#include "../EffectID.h"
|
||||
#include "../Mobs/Monster.h"
|
||||
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <unordered_map>
|
||||
|
||||
#include "Player.h"
|
||||
#include "Mobs/Wolf.h"
|
||||
#include "Mobs/Horse.h"
|
||||
#include "../Mobs/Wolf.h"
|
||||
#include "../Mobs/Horse.h"
|
||||
#include "../BoundingBox.h"
|
||||
#include "../ChatColor.h"
|
||||
#include "../Server.h"
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
BioGen.cpp
|
||||
|
@ -2,11 +2,11 @@
|
||||
#include "Globals.h"
|
||||
|
||||
#include "ChunkGenerator.h"
|
||||
#include "../IniFile.h"
|
||||
#include "ChunkDesc.h"
|
||||
#include "ComposableGenerator.h"
|
||||
#include "Noise3DGenerator.h"
|
||||
#include "FastRandom.h"
|
||||
#include "../IniFile.h"
|
||||
#include "../FastRandom.h"
|
||||
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "PieceStructuresGen.h"
|
||||
#include "PrefabStructure.h"
|
||||
#include "PieceGeneratorBFSTree.h"
|
||||
#include "IniFile.h"
|
||||
#include "../IniFile.h"
|
||||
#include "../Stopwatch.h"
|
||||
|
||||
|
||||
|
@ -5,9 +5,9 @@
|
||||
|
||||
#include "Globals.h"
|
||||
#include "PrefabPiecePool.h"
|
||||
#include "../Bindings/LuaState.h"
|
||||
#include "WorldStorage/SchematicFileSerializer.h"
|
||||
#include "VerticalStrategy.h"
|
||||
#include "../Bindings/LuaState.h"
|
||||
#include "../WorldStorage/SchematicFileSerializer.h"
|
||||
#include "../StringCompression.h"
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
EnvelopeParser.cpp
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "HTTPServerConnection.h"
|
||||
#include "HTTPFormParser.h"
|
||||
#include "SslHTTPServerConnection.h"
|
||||
#include "mbedTLS++/SslConfig.h"
|
||||
#include "../mbedTLS++/SslConfig.h"
|
||||
|
||||
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
|
||||
#include "../OSSupport/Network.h"
|
||||
#include "../IniFile.h"
|
||||
#include "mbedTLS++/CryptoKey.h"
|
||||
#include "mbedTLS++/X509Cert.h"
|
||||
#include "../mbedTLS++/CryptoKey.h"
|
||||
#include "../mbedTLS++/X509Cert.h"
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "HTTPServerConnection.h"
|
||||
#include "mbedTLS++/BufferedSslContext.h"
|
||||
#include "../mbedTLS++/BufferedSslContext.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
ItemHandler.cpp
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "ItemHandler.h"
|
||||
#include "Entities/ItemFrame.h"
|
||||
#include "../Entities/ItemFrame.h"
|
||||
#include "../Entities/Player.h"
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
AggressiveMonster.cpp
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "../World.h"
|
||||
#include "../EffectID.h"
|
||||
#include "../Entities/Player.h"
|
||||
#include "UI/HorseWindow.h"
|
||||
#include "../UI/HorseWindow.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "PassiveMonster.h"
|
||||
#include "UI/WindowOwner.h"
|
||||
#include "../UI/WindowOwner.h"
|
||||
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "../Entities/Player.h"
|
||||
#include "../Entities/ExpOrb.h"
|
||||
#include "../MonsterConfig.h"
|
||||
#include "BoundingBox.h"
|
||||
#include "../BoundingBox.h"
|
||||
|
||||
#include "../Chunk.h"
|
||||
#include "../FastRandom.h"
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "PassiveMonster.h"
|
||||
#include "../World.h"
|
||||
#include "../Entities/Player.h"
|
||||
#include "BoundingBox.h"
|
||||
#include "../BoundingBox.h"
|
||||
#include "../Items/ItemSpawnEgg.h"
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "../Entities/Player.h"
|
||||
#include "../World.h"
|
||||
#include "../EffectID.h"
|
||||
#include "FastRandom.h"
|
||||
#include "../FastRandom.h"
|
||||
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "Skeleton.h"
|
||||
#include "../World.h"
|
||||
#include "../Entities/ArrowEntity.h"
|
||||
#include "ClientHandle.h"
|
||||
#include "../ClientHandle.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "Slime.h"
|
||||
#include "FastRandom.h"
|
||||
#include "World.h"
|
||||
#include "../FastRandom.h"
|
||||
#include "../World.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "PassiveMonster.h"
|
||||
#include "Blocks/ChunkInterface.h"
|
||||
#include "../Blocks/ChunkInterface.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "Witch.h"
|
||||
#include "FastRandom.h"
|
||||
#include "../FastRandom.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "ZombiePigman.h"
|
||||
#include "../World.h"
|
||||
#include "ClientHandle.h"
|
||||
#include "../ClientHandle.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
Noise.cpp
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
CriticalSection.cpp
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include "Globals.h"
|
||||
#include "NetworkSingleton.h"
|
||||
#include "OSSupport/Network.h"
|
||||
#include "Network.h"
|
||||
#include <event2/thread.h>
|
||||
#include <event2/bufferevent.h>
|
||||
#include <event2/listener.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "Globals.h"
|
||||
#include "TCPLinkImpl.h"
|
||||
#include "mbedTLS++/SslConfig.h"
|
||||
#include "../mbedTLS++/SslConfig.h"
|
||||
#include "NetworkSingleton.h"
|
||||
#include "ServerHandleImpl.h"
|
||||
#include "event2/buffer.h"
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "../IniFile.h"
|
||||
#include "json/json.h"
|
||||
|
||||
#include "mbedTLS++/BlockingSslClientSocket.h"
|
||||
#include "../mbedTLS++/BlockingSslClientSocket.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
Authenticator.cpp
|
||||
|
@ -8,9 +8,9 @@
|
||||
#include "Globals.h"
|
||||
#include "ChunkDataSerializer.h"
|
||||
#include "zlib/zlib.h"
|
||||
#include "ByteBuffer.h"
|
||||
#include "Protocol_1_8.h"
|
||||
#include "Protocol_1_9.h"
|
||||
#include "../ByteBuffer.h"
|
||||
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// - serialize chunk data to different protocol versions
|
||||
// - cache such serialized data for multiple clients
|
||||
|
||||
#include "ChunkData.h"
|
||||
#include "../ChunkData.h"
|
||||
|
||||
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include "UUID.h"
|
||||
#include "../UUID.h"
|
||||
#include "json/json.h"
|
||||
|
||||
// fwd:
|
||||
|
@ -9,8 +9,8 @@
|
||||
#include "SQLiteCpp/Statement.h"
|
||||
#include "../IniFile.h"
|
||||
#include "json/json.h"
|
||||
#include "mbedTLS++/BlockingSslClientSocket.h"
|
||||
#include "mbedTLS++/SslConfig.h"
|
||||
#include "../mbedTLS++/BlockingSslClientSocket.h"
|
||||
#include "../mbedTLS++/SslConfig.h"
|
||||
#include "../RankManager.h"
|
||||
#include "../OSSupport/IsThread.h"
|
||||
#include "../Root.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#include "Globals.h"
|
||||
#include "Packetizer.h"
|
||||
#include "UUID.h"
|
||||
#include "../UUID.h"
|
||||
|
||||
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "../Server.h"
|
||||
#include "../World.h"
|
||||
#include "../ChatColor.h"
|
||||
#include "Bindings/PluginManager.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
|
||||
|
||||
|
||||
|
@ -39,7 +39,7 @@ Implements the 1.10 protocol classes:
|
||||
#include "../BlockEntities/MobSpawnerEntity.h"
|
||||
#include "../BlockEntities/FlowerPotEntity.h"
|
||||
|
||||
#include "Bindings/PluginManager.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@ Implements the 1.8 protocol classes:
|
||||
#include "json/json.h"
|
||||
#include "Protocol_1_8.h"
|
||||
#include "ChunkDataSerializer.h"
|
||||
#include "mbedTLS++/Sha1Checksum.h"
|
||||
#include "../mbedTLS++/Sha1Checksum.h"
|
||||
#include "Packetizer.h"
|
||||
|
||||
#include "../ClientHandle.h"
|
||||
@ -46,7 +46,7 @@ Implements the 1.8 protocol classes:
|
||||
#include "../BlockEntities/MobHeadEntity.h"
|
||||
#include "../BlockEntities/MobSpawnerEntity.h"
|
||||
#include "../BlockEntities/FlowerPotEntity.h"
|
||||
#include "Bindings/PluginManager.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
|
||||
|
||||
|
||||
|
@ -16,21 +16,8 @@ Declares the 1.8 protocol classes:
|
||||
#include "Protocol.h"
|
||||
#include "../ByteBuffer.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127)
|
||||
#pragma warning(disable:4244)
|
||||
#pragma warning(disable:4231)
|
||||
#pragma warning(disable:4189)
|
||||
#pragma warning(disable:4702)
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#include "mbedTLS++/AesCfb128Decryptor.h"
|
||||
#include "mbedTLS++/AesCfb128Encryptor.h"
|
||||
#include "../mbedTLS++/AesCfb128Decryptor.h"
|
||||
#include "../mbedTLS++/AesCfb128Encryptor.h"
|
||||
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@ Implements the 1.9 protocol classes:
|
||||
#include "json/json.h"
|
||||
#include "Protocol_1_9.h"
|
||||
#include "ChunkDataSerializer.h"
|
||||
#include "mbedTLS++/Sha1Checksum.h"
|
||||
#include "../mbedTLS++/Sha1Checksum.h"
|
||||
#include "Packetizer.h"
|
||||
|
||||
#include "../ClientHandle.h"
|
||||
@ -55,7 +55,7 @@ Implements the 1.9 protocol classes:
|
||||
#include "../BlockEntities/MobHeadEntity.h"
|
||||
#include "../BlockEntities/MobSpawnerEntity.h"
|
||||
#include "../BlockEntities/FlowerPotEntity.h"
|
||||
#include "Bindings/PluginManager.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
|
||||
|
||||
|
||||
|
@ -22,21 +22,8 @@ Declares the 1.9 protocol classes:
|
||||
#include "Protocol.h"
|
||||
#include "../ByteBuffer.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127)
|
||||
#pragma warning(disable:4244)
|
||||
#pragma warning(disable:4231)
|
||||
#pragma warning(disable:4189)
|
||||
#pragma warning(disable:4702)
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#include "mbedTLS++/AesCfb128Decryptor.h"
|
||||
#include "mbedTLS++/AesCfb128Encryptor.h"
|
||||
#include "../mbedTLS++/AesCfb128Decryptor.h"
|
||||
#include "../mbedTLS++/AesCfb128Encryptor.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
DelayedFluidSimulator.cpp
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "../World.h"
|
||||
#include "../Defines.h"
|
||||
#include "../Chunk.h"
|
||||
#include "Root.h"
|
||||
#include "../Root.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
set (SRCS
|
||||
IncrementalRedstoneSimulator.cpp
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "BlockEntities/CommandBlockEntity.h"
|
||||
#include "../../BlockEntities/CommandBlockEntity.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "Blocks/BlockDoor.h"
|
||||
#include "../../Blocks/BlockDoor.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "BlockEntities/DropSpenserEntity.h"
|
||||
#include "../../BlockEntities/DropSpenserEntity.h"
|
||||
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "Globals.h"
|
||||
|
||||
#include "IncrementalRedstoneSimulator.h"
|
||||
#include "Chunk.h"
|
||||
#include "../../Chunk.h"
|
||||
|
||||
#include "CommandBlockHandler.h"
|
||||
#include "DoorHandler.h"
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "BlockEntities/NoteEntity.h"
|
||||
#include "../../BlockEntities/NoteEntity.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "Blocks/BlockPiston.h"
|
||||
#include "../../Blocks/BlockPiston.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "BoundingBox.h"
|
||||
#include "../../BoundingBox.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "Blocks/BlockComparator.h"
|
||||
#include "../../Blocks/BlockComparator.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "World.h"
|
||||
#include "../../World.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "Blocks/BlockRedstoneRepeater.h"
|
||||
#include "../../Blocks/BlockRedstoneRepeater.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "Blocks/BlockButton.h"
|
||||
#include "Blocks/BlockLever.h"
|
||||
#include "../../Blocks/BlockButton.h"
|
||||
#include "../../Blocks/BlockLever.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "BlockEntities/ChestEntity.h"
|
||||
#include "../../BlockEntities/ChestEntity.h"
|
||||
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RedstoneHandler.h"
|
||||
#include "Blocks/BlockTripwireHook.h"
|
||||
#include "../../Blocks/BlockTripwireHook.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Simulator/Simulator.h"
|
||||
#include "Simulator.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
SlotArea.cpp
|
||||
|
@ -4,9 +4,9 @@
|
||||
// Representing the UI window for a horse entity
|
||||
|
||||
#include "Globals.h"
|
||||
#include "Mobs/Horse.h"
|
||||
#include "UI/HorseWindow.h"
|
||||
#include "UI/SlotArea.h"
|
||||
#include "../Mobs/Horse.h"
|
||||
#include "../UI/HorseWindow.h"
|
||||
#include "../UI/SlotArea.h"
|
||||
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "../BlockArea.h"
|
||||
#include "../EffectID.h"
|
||||
#include "../ClientHandle.h"
|
||||
#include "Mobs/Horse.h"
|
||||
#include "../Mobs/Horse.h"
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
SET (SRCS
|
||||
EnchantmentSerializer.cpp
|
||||
|
@ -2,8 +2,8 @@
|
||||
#include "Globals.h"
|
||||
|
||||
#include "EnchantmentSerializer.h"
|
||||
#include "Enchantments.h"
|
||||
#include "FastNBT.h"
|
||||
#include "../Enchantments.h"
|
||||
|
||||
void EnchantmentSerializer::WriteToNBTCompound(const cEnchantments & a_Enchantments, cFastNBTWriter & a_Writer, const AString & a_ListTagName)
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
#include "Globals.h"
|
||||
#include "FireworksSerializer.h"
|
||||
#include "WorldStorage/FastNBT.h"
|
||||
#include "../WorldStorage/FastNBT.h"
|
||||
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ChunkDataCallback.h"
|
||||
#include "../ChunkDataCallback.h"
|
||||
|
||||
|
||||
|
||||
|
@ -5,10 +5,10 @@
|
||||
|
||||
#include "Globals.h"
|
||||
|
||||
#include "OSSupport/GZipFile.h"
|
||||
#include "FastNBT.h"
|
||||
#include "SchematicFileSerializer.h"
|
||||
#include "../StringCompression.h"
|
||||
#include "../OSSupport/GZipFile.h"
|
||||
|
||||
|
||||
|
||||
|
@ -54,8 +54,8 @@
|
||||
#include "../Entities/Painting.h"
|
||||
|
||||
#include "../Protocol/MojangAPI.h"
|
||||
#include "Server.h"
|
||||
#include "BoundingBox.h"
|
||||
#include "../Server.h"
|
||||
#include "../BoundingBox.h"
|
||||
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "OSSupport/Network.h"
|
||||
#include "../OSSupport/Network.h"
|
||||
#include "CallbackSslContext.h"
|
||||
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
project (Cuberite)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||
|
||||
set(SRCS
|
||||
AesCfb128Decryptor.cpp
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user