summaryrefslogtreecommitdiffstats
path: root/src/Bindings/CMakeLists.txt (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to C++17 [CMake] (#4717)Tiger Wang2020-05-161-133/+2
| | | * Make our CMake slightly less insane
* Update submodules (#4727)peterbell102020-05-091-1/+1
| | | | | | | | | | | | | Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
* Removed the obsolete cTracer class. (#4594)Mattes D2020-04-031-1/+0
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-1/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Stabilise MoveToWorld (#4004)Mat2020-03-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Stabilise MoveToWorld * Fix comments and deprecate ScheduleMoveToWorld * Enhanced thread safety for m_WorldChangeInfo * Return unique_ptr from cAtomicUniquePtr::exchange * cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld. Allows broadcasting entities added to the world from the world's tick thread. This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize. As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible. This isn't used anywhere in Cuberite so it's now deprecated. * Update entity position after removing it from the world. Fixes broadcasts being sent to the wrong chunk. * Fix style * cEntity: Update LastSentPosition when sending spawn packet * Add Wno-deprecated-declarations to the lua bindings * Kill uses of ScheduleMoveToWorld
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-4/+0
| | | | | | | 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.
* tolua++ bindings use nullptr. (#4219)peterbell102018-04-271-4/+1
| | | Fixes compilation with -Wzero-as-null-pointer-constant.
* Add the fmt library (#4065)peterbell102018-01-031-1/+1
| | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style.
* Fix Travis build (#4101)peterbell102017-12-221-1/+1
| | | | | | | | | Stop using gdb on osx - was breaking the build Add clang 3.5 build as travis now defaults to 5.0 Fix unknown-warning-option errors on AppleClang ProtoProxy: Use nullptr UrlClientTest: add override to callback destructor Update jsoncpp to use nullptr
* Fixed Clang 5.0 compile errors (#4085)bibo382017-12-211-2/+5
| | | | | | | | | | | | * Fixed Clang 5.0 compile errors * Fixed wrong comment * Only disable warnings in Clang 5 or higher * Added a CMake condition for the Clang 5 no-zero-as-null-pointer-constant warning * Now using the use_nullptr branch of the Cuberite specific SQLiteCpp fork
* Fix switch warnings (#4013)peterbell102017-09-141-1/+0
| | | | | | | | | | | | | | | * Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
* Add cUUID class (#3871)peterbell102017-08-251-0/+1
|
* Fully implemented leashes (#3798)Pablo Beltrán2017-08-211-0/+1
|
* Lua plugin cColor (#3833)Lane Kolbly2017-07-121-0/+1
|
* Added bed entity (#3823)Lukas Pioch2017-07-071-0/+1
| | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
* Update tolua and export EffectIDpeterbell102017-06-291-0/+1
|
* cBlockArea supports block entities. (#3795)Mattes D2017-06-241-0/+1
|
* Exported boatLukas Pioch2017-05-241-0/+1
| | | | | | | - NBT: Added saving / loading of material - Added the material in the item handler of the boat - Drop the correct boat if destroyed - APIDoc: Added desc and functions
* Exported cFallingBlock and cExpOrb (#3700)Lukas Pioch2017-05-091-0/+2
|
* Removed binary ToLua++ from build.Mattes D2017-05-041-2/+2
| | | | A local Lua executable is used instead.
* Use CMake's Android generators to crosscompileTiger Wang2016-12-121-1/+1
|
* CMake: Fix system Lua usage for non-5.1 versions. (#3271)Mattes D2016-07-211-1/+1
|
* CMake: Remove needless minimum version specifications.Mattes D2016-07-181-1/+0
|
* Use system Lua, if available, to generate bindings.Mattes D2016-07-181-12/+15
| | | | Closes #1031.
* Bindings: Added missing dependencies.Mattes D2016-07-021-0/+12
| | | | Fixes #3245
* Removed cWebPlugin, WebAdmin uses cLuaState::cCallback.Mattes D2016-06-271-3/+0
|
* Revert "Lua callback"Mattes D2016-03-211-0/+3
|
* Removed cWebPlugin, WebAdmin uses cLuaState::cCallback.Mattes D2016-03-171-3/+0
|
* Renamed leftover strings to Cuberite / Server, as needed.Mattes D2016-01-011-1/+1
| | | | Also upgraded the user setting file for MSVC to 2013.
* Added the cUrlParser class, exported to Lua API.Mattes D2015-12-251-1/+1
|
* Added a Json parser and serializer to Lua API.Mattes D2015-12-241-0/+2
|
* Fix old style casts and implicit conversionsMatti Hänninen2015-08-121-0/+1
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-6/+0
|
* Fix commentstycho2015-05-281-5/+5
|
* Made -Weverything an error.tycho2015-05-241-0/+5
|
* Make -Werror disabling file onlytycho2015-05-191-0/+4
| | | | Ad fix a load of warnings
* Moved cWorld manual bindings out into a separate file.Mattes D2015-05-131-0/+1
|
* ToLua now generates cLuaState::Push() and GetStackValue()Mattes D2015-05-121-4/+9
| | | | | For classes exported through ToLua it generates the cLuaState::Push() and cLuaState::GetStackValue() functions, as well as the supporting forward declarations and typedefs. Renamed virtual_method_hooks.lua to BindingsProcessor.lua since it no longer provides virtual method hooks and instead does additional processing when generating the bindings.
* Update submodulesTiger Wang2015-05-021-1/+1
|
* cNetwork: Added UDP API.Mattes D2015-02-201-0/+2
|
* Exported cServerHandle and cNetwork:Listen to Lua.Mattes D2015-02-041-0/+2
| | | | Also added an example to the NetworkTest plugin.
* cNetwork: Exported lookup functions to Lua API.Mattes D2015-02-041-0/+2
| | | | Also added an example in the NetworkTest plugin.
* cNetwork: Exported the Connect() method and cTCPLink class to Lua.Mattes D2015-02-041-0/+3
|
* Properly exported cItemFrame and cHangingEntity to Lua.Mattes D2014-10-211-0/+2
|
* Exported individual projectile classes to Lua API.Mattes D2014-10-211-103/+103
| | | | They used to be exported, but then they were moved to separate files and those werent' added to the ToLua processing list.
* Bindings: Removed obsolete codegen files.Mattes D2014-10-191-3/+0
| | | | LuaState_Call.inc is no longer needed, it was replaced with variadic templates.
* Added first test to show the object can be createdTycho2014-09-171-0/+2
|
* Removed Group.h from Bindings' dependencies.Mattes D2014-08-211-1/+0
|
* Merge remote-tracking branch 'origin/master' into Ranksmadmaxoft2014-08-121-1/+1
|\
| * Fixed circular dependecy luaState_Call.incTycho2014-08-101-1/+1
| |
* | Exported cRankManager to LuaAPI.madmaxoft2014-08-081-0/+1
|/
* Exported the beacon.Howaner2014-07-301-0/+1
|
* Fixed "Dependency" typosarchshift2014-07-301-2/+2
|
* Fixed Bindings generation in MSVC.madmaxoft2014-07-221-2/+2
| | | | The bindings weren't regenerated because of the typo in the dependencies cmake variable.
* Fixed MSVC bindings generation.madmaxoft2014-07-191-1/+1
|
* Moved Windows custom command to src/CMakeLists.txtarchshift2014-07-191-15/+1
|
* CMakeLists: Moved Bindings-specific code to subdirarchshift2014-07-191-0/+111
|
* CMake: Add Bindings library from subdirectoryarchshift2014-07-191-0/+6
|
* src/CMakeLists.txt: Replaced glob with list of filesarchshift2014-07-191-0/+32
| | | | On MSVC, CMake will traverse all the CMakeLists and add their source and header files to one conglomerate SOURCE list.
* BugfixesTycho2014-01-231-10/+0
|
* added dependecies for bindings regenTycho2014-01-231-14/+0
|
* Added support for out-of-source builds.madmaxoft2013-12-281-9/+14
|
* fixed include of math on windowstycho2013-12-201-1/+1
|
* added expat as lua bindings dependincyTycho Bickerstaff2013-12-191-1/+1
|
* added all cpp files to bindingsTycho Bickerstaff2013-12-191-1/+4
|
* fixed bindings generationTycho Bickerstaff2013-12-191-8/+2
|
* bindings regenration logicTycho Bickerstaff2013-12-191-2/+8
|
* added tolua++ command and removed stackwalker from buildTycho Bickerstaff2013-12-101-4/+6
|
* more cmake changesTycho Bickerstaff2013-12-101-0/+7
|
* more cmakeTycho Bickerstaff2013-12-101-1/+1
|
* started work on cmakeTycho Bickerstaff2013-12-101-0/+7