Merge pull request #586 from worktycho/BindingsMove
Implented xofts suggestions in #577
This commit is contained in:
commit
6b51c62d78
61
.gitignore
vendored
61
.gitignore
vendored
@ -57,6 +57,7 @@ install_mainfest.txt
|
|||||||
src/MCServer
|
src/MCServer
|
||||||
lib/tolua++/tolua
|
lib/tolua++/tolua
|
||||||
src/Bindings/Bindings.*
|
src/Bindings/Bindings.*
|
||||||
|
src/Bindings/BindingsDependecies.txt
|
||||||
MCServer.dir/
|
MCServer.dir/
|
||||||
|
|
||||||
#win32 cmake stuff
|
#win32 cmake stuff
|
||||||
@ -70,58 +71,8 @@ MCServer.dir/
|
|||||||
|
|
||||||
#cmake output folders
|
#cmake output folders
|
||||||
ZERO_CHECK.dir/
|
ZERO_CHECK.dir/
|
||||||
lib/cryptopp/Debug/
|
Debug/
|
||||||
lib/cryptopp/DebugProfile/
|
DebugProfile/
|
||||||
lib/cryptopp/Release/
|
Release/
|
||||||
lib/cryptopp/ReleaseProfile/
|
ReleaseProfile/
|
||||||
lib/cryptopp/cryptopp.dir/
|
*.dir/
|
||||||
lib/expat/Debug/
|
|
||||||
lib/expat/DebugProfile/
|
|
||||||
lib/expat/Release/
|
|
||||||
lib/expat/ReleaseProfile/
|
|
||||||
lib/expat/expat.dir/
|
|
||||||
lib/inifile/Debug/
|
|
||||||
lib/inifile/DebugProfile/
|
|
||||||
lib/inifile/Release/
|
|
||||||
lib/inifile/ReleaseProfile/
|
|
||||||
lib/inifile/inifile.dir/
|
|
||||||
lib/jsoncpp/Debug/
|
|
||||||
lib/jsoncpp/DebugProfile/
|
|
||||||
lib/jsoncpp/Release/
|
|
||||||
lib/jsoncpp/ReleaseProfile/
|
|
||||||
lib/jsoncpp/jsoncpp.dir/
|
|
||||||
lib/lua/Debug/
|
|
||||||
lib/lua/DebugProfile/
|
|
||||||
lib/lua/Release/
|
|
||||||
lib/lua/ReleaseProfile/
|
|
||||||
lib/lua/lua.dir/
|
|
||||||
lib/luaexpat/Debug/
|
|
||||||
lib/luaexpat/DebugProfile/
|
|
||||||
lib/luaexpat/Release/
|
|
||||||
lib/luaexpat/ReleaseProfile/
|
|
||||||
lib/luaexpat/luaexpat.dir/
|
|
||||||
lib/md5/Debug/
|
|
||||||
lib/md5/DebugProfile/
|
|
||||||
lib/md5/Release/
|
|
||||||
lib/md5/ReleaseProfile/
|
|
||||||
lib/md5/md5.dir/
|
|
||||||
lib/sqlite/Debug/
|
|
||||||
lib/sqlite/DebugProfile/
|
|
||||||
lib/sqlite/Release/
|
|
||||||
lib/sqlite/ReleaseProfile/
|
|
||||||
lib/sqlite/sqlite.dir/
|
|
||||||
lib/tolua++/Debug/
|
|
||||||
lib/tolua++/DebugProfile/
|
|
||||||
lib/tolua++/Release/
|
|
||||||
lib/tolua++/ReleaseProfile/
|
|
||||||
lib/tolua++/tolua.dir/
|
|
||||||
lib/tolua++/tolualib.dir/
|
|
||||||
lib/zlib/Debug/
|
|
||||||
lib/zlib/DebugProfile/
|
|
||||||
lib/zlib/Release/
|
|
||||||
lib/zlib/ReleaseProfile/
|
|
||||||
lib/zlib/zlib.dir/
|
|
||||||
src/Debug/
|
|
||||||
src/DebugProfile/
|
|
||||||
src/Release/
|
|
||||||
src/ReleaseProfile/
|
|
||||||
|
@ -16,34 +16,64 @@ if (NOT MSVC)
|
|||||||
|
|
||||||
#lib dependecies are not included
|
#lib dependecies are not included
|
||||||
|
|
||||||
set(BINDING_DEPENDECIES ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/virtual_method_hooks.lua)
|
set(BINDING_DEPENDECIES
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/AllToLua.pkg)
|
${CMAKE_CURRENT_SOURCE_DIR}/Bindings/virtual_method_hooks.lua
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} ChunkDef.h BiomeDef.h)
|
${CMAKE_CURRENT_SOURCE_DIR}/Bindings/AllToLua.pkg
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} OSSupport/File.h Bindings/LuaFunctions.h)
|
ChunkDef.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Bindings/PluginManager.h Bindings/Plugin.h)
|
BiomeDef.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Bindings/PluginLua.h Bindings/WebPlugin.h)
|
OSSupport/File.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Bindings/LuaWindow.h BlockID.h StringUtils.h)
|
Bindings/LuaFunctions.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Defines.h ChatColor.h ClientHandle.h)
|
Bindings/PluginManager.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Entities/Entity.h Entities/Floater.h )
|
Bindings/Plugin.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Entities/Pawn.h Entities/Player.h)
|
Bindings/PluginLua.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Entities/Pickup.h Entities/ProjectileEntity.h)
|
Bindings/WebPlugin.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Entities/TNTEntity.h Entities/Effects.h)
|
Bindings/LuaWindow.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Server.h World.h Inventory.h Enchantments.h)
|
BlockID.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Item.h ItemGrid.h BlockEntities/BlockEntity.h)
|
StringUtils.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/BlockEntityWithItems.h)
|
Defines.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/ChestEntity.h)
|
ChatColor.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/DropSpenserEntity.h)
|
ClientHandle.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/DispenserEntity.h)
|
Entities/Entity.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/DropperEntity.h)
|
Entities/Floater.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/FurnaceEntity.h)
|
Entities/Pawn.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/HopperEntity.h)
|
Entities/Player.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/JukeboxEntity.h)
|
Entities/Pickup.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/NoteEntity.h)
|
Entities/ProjectileEntity.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockEntities/SignEntity.h WebAdmin.h Root.h)
|
Entities/TNTEntity.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Vector3f.h Vector3d.h Vector3i.h Matrix4f.h)
|
Entities/Effects.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} Cuboid.h BoundingBox.h Tracer.h Group.h)
|
Server.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} BlockArea.h Generating/ChunkDesc.h)
|
World.h
|
||||||
set(BINDING_DEPENDECIES ${BINDING_DEPENDECIES} CraftingRecipes.h UI/Window.h Mobs/Monster.h)
|
Inventory.h
|
||||||
|
Enchantments.h
|
||||||
|
Item.h
|
||||||
|
ItemGrid.h
|
||||||
|
BlockEntities/BlockEntity.h
|
||||||
|
BlockEntities/BlockEntityWithItems.h
|
||||||
|
BlockEntities/ChestEntity.h
|
||||||
|
BlockEntities/DropSpenserEntity.h
|
||||||
|
BlockEntities/DispenserEntity.h
|
||||||
|
BlockEntities/DropperEntity.h
|
||||||
|
BlockEntities/FurnaceEntity.h
|
||||||
|
BlockEntities/HopperEntity.h
|
||||||
|
BlockEntities/JukeboxEntity.h
|
||||||
|
BlockEntities/NoteEntity.h
|
||||||
|
BlockEntities/SignEntity.h
|
||||||
|
WebAdmin.h
|
||||||
|
Root.h
|
||||||
|
Vector3f.h
|
||||||
|
Vector3d.h
|
||||||
|
Vector3i.h
|
||||||
|
Matrix4f.h
|
||||||
|
Cuboid.h
|
||||||
|
BoundingBox.h
|
||||||
|
Tracer.h
|
||||||
|
Group.h
|
||||||
|
BlockArea.h
|
||||||
|
Generating/ChunkDesc.h
|
||||||
|
CraftingRecipes.h
|
||||||
|
UI/Window.h
|
||||||
|
Mobs/Monster.h
|
||||||
|
)
|
||||||
|
|
||||||
include_directories(Bindings)
|
include_directories(Bindings)
|
||||||
include_directories(.)
|
include_directories(.)
|
||||||
@ -64,6 +94,13 @@ if (NOT MSVC)
|
|||||||
|
|
||||||
target_link_libraries(Bindings lua sqlite tolualib)
|
target_link_libraries(Bindings lua sqlite tolualib)
|
||||||
|
|
||||||
|
#clear file
|
||||||
|
file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/BindingDependecies.txt)
|
||||||
|
foreach(dependecy ${BINDING_DEPENDECIES})
|
||||||
|
#write each dependecy on a seperate line
|
||||||
|
file(APPEND ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/BindingDependecies.txt "${dependecy}\n")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "Bindings.cpp Bindings.h")
|
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "Bindings.cpp Bindings.h")
|
||||||
|
|
||||||
foreach(folder ${FOLDERS})
|
foreach(folder ${FOLDERS})
|
||||||
|
Loading…
Reference in New Issue
Block a user