summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-03-15Re-enable -rdynamic so that Lua modules can load Lua API from exe.Mattes D1-0/+7
This fixes debugging Lua plugins from ZeroBraneStudio on Linux.
2023-05-26Anvil: Allow loading chunks without HeightMap.Mattes D1-0/+1
2021-09-15CMake MinGW bug - https://gitlab.kitware.com/cmake/cmake/-/issues/5939 (#5295)Ethan Jones1-3/+8
2021-05-04Rename files to match codeTiger Wang1-3/+2
2021-03-05Prepare ChunkData for BlockState storage (#5105)Tiger Wang1-2/+0
* Rename ChunkData Creatable test * Add missing Y-check in RedstoneWireHandler * Remove ChunkDef.h dependency in Scoreboard * Prepare ChunkData for BlockState storage + Split chunk block, meta, block & sky light storage + Load the height map from disk - Reduce duplicated code in ChunkData - Remove saving MCSBiomes, there aren't any - Remove the allocation pool, ref #4315, #3864 * fixed build * fixed test * fixed the debug compile Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
2021-02-11Fix march=native not being enabledTiger Wang1-2/+2
* LINUX doesn't exist apparently, use UNIX instead + Add some platform-specific logic to determine whether to use mcpu or march - Remove duplicated compile option comments + Add STATUS level to messages
2021-01-11zlib -> libdeflate (#5085)Tiger Wang1-0/+2
+ Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
2020-12-21Prepare for 1.15+ (#4856)Tiger Wang1-0/+1
+ Add type-safe container for states * Split registry Blocks into BlockTypes, BlockStates so the block types enumeration can be #included without too much penalty * Ensure Registry uses type-safe container
2020-12-21Remove unused Temporary namespaceTiger Wang1-8/+0
- Remove unused temporary mapping generation at startup
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-0/+1
* Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-12Use tracing for explosions (#4845)Tiger Wang1-2/+2
* TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-07-181.13 items supportTiger Wang1-3/+4
+ Add 1.16 block and item definitions
2020-05-16Upgrade to C++17 [CMake] (#4717)Tiger Wang1-197/+23
* Make our CMake slightly less insane
2020-05-10Cleanup some workarounds and warnings (#4735)peterbell101-7/+0
* Cleanup thread_local usage in FastRandom * Use constexpr to avoid clang warning * Fix more Wglobal-constructor warnings * Make MSVC happy?
2020-05-09Update submodules (#4727)peterbell101-3/+3
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.
2020-04-03Removed the obsolete cTracer class. (#4594)Mattes D1-2/+0
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-3/+4
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
2020-01-02Clean up server folder for Android (#4448)Mat1-6/+6
2019-12-30Include missing server files (#4446)Mat1-0/+2
2019-12-30Remove lang folder (#4445)Mat1-1/+0
2019-12-29CMake: Fix builds in folders with spacesMattes D1-6/+5
2019-12-28CMake: Don't create symlinks if link == orig.Mattes D1-15/+25
2019-12-28Output the binaries into a per-configuration Server subfolder. (#4440)Mattes D1-13/+74
Make links to the original Server subfolder's items from the per-configuration Server subfolder.
2019-09-06Separated chunk generator from world / plugin interfaces.Mattes D1-0/+2
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2019-08-28Added a basic PalettedBlockArea implementation (#4377)Mattes D1-0/+4
2019-08-24Added BlockState implementation for 1.13 support.Mattes D1-0/+2
2019-08-10Improved CMake generator (#4365)Mattes D1-2/+7
2019-08-05BlockTypeRegistry: Initial skeletonMattes D1-0/+2
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell101-3/+4
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.
2018-07-24Broadcast refactor (#4264)peterbell101-1/+1
* Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
2018-01-21cItemGrid: Allocate storage lazily (#4083)peterbell101-0/+1
* cItemGrid: Allocate storage lazily * cItemGrid: Fix spelling, Prioritary -> Priority
2018-01-03Add the fmt library (#4065)peterbell101-1/+2
* 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.
2017-09-14Fix switch warnings (#4013)peterbell101-5/+1
* 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
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell101-0/+1
2017-08-30Update mbedtls to 2.5.1 (#3964)peterbell101-5/+5
* Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
2017-08-25Add cUUID class (#3871)peterbell101-0/+2
2017-06-19Removed the LeakFinder for Windows. (#3777)Mattes D1-7/+0
2017-05-04Removed binary ToLua++ from build.Mattes D1-5/+2
A local Lua executable is used instead.
2016-12-18CMake: Output the binary to Server folder in all configurations. (#3486)Mattes D1-0/+3
2016-12-12Use CMake's Android generators to crosscompileTiger Wang1-14/+10
2016-08-24Fixed type-casting-related warnings.Mattes D1-20/+4
2016-07-21CMake: Fix system Lua usage for non-5.1 versions. (#3271)Mattes D1-1/+1
2016-07-18CMake: Remove needless minimum version specifications.Mattes D1-1/+0
2016-07-18Use system Lua, if available, to generate bindings.Mattes D1-11/+22
Closes #1031.
2016-07-18Added a Pure-Lua implementation for bindings generation.Mattes D1-0/+3
The BindingsProcessor.lua script can be opened in ZeroBraneStudio and debugged from there, it invokes the entire ToLua++ processing. Also added docs-generation to the ToLua++ processor.
2016-06-18SelfTests: Removed the unneeded cSelfTests class.Mattes D1-2/+0
2016-03-01Renamed HTTPServer folder to HTTP.Mattes D1-1/+1
It contains client code as well.
2016-01-01Renamed leftover strings to Cuberite / Server, as needed.Mattes D1-2/+2
Also upgraded the user setting file for MSVC to 2013.
2015-12-23Fixed builds on FreeBSD 32bitJulian Laubstein1-0/+1
2015-12-18Reorganised the redstone simulatorTiger Wang1-3/+4
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
2015-12-01Added PieceStructures generator.Mattes D1-2/+3
2015-11-24Add enum for Sound and Particle EffectsDave Tucker1-0/+1
Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-11-03Implemented brewingLukas Pioch1-0/+2
2015-09-17Added CircleCI for stylechecking.Mattes D1-0/+1
This will allow us to remove the stylecheck from Travis builds, making them a bit faster, and having fast style checks
2015-09-08Fixed Lua output folders for Windows builds.Mattes D1-2/+2
Fixes #2468.
2015-09-05Renamed output directory to ServerMattes D1-8/+8
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-13/+8
2015-07-15Leather Armor can now be dyed.Samuel Barney1-0/+1
* Created new color class to handle dye-related coloring
2015-07-12Added JsonCPP library location to search pathsTiger Wang1-2/+1
* Fixed '-dirty' submodule changes Probably fixes an issue somewhere too?
2015-07-10Updated and submodularised JsonCPPTiger Wang1-1/+2
Conflicts: lib/jsoncpp
2015-06-11SelfTests are registered and executed after logging framework init.Mattes D1-0/+2
Fixes #2228.
2015-06-10Implemented nether portal scanning code.Lane Kolbly1-0/+2
2015-06-05Provide some BuildInfo even for non-CI builds.Mattes D1-0/+1
Ref.: #2204
2015-05-30Clean up Spawn Preparetycho1-0/+2
Made cSpawnPrepare execute on the same thread since it is a syncronous operation, and most of the code happens on the lighting thread. Also moved cSpawnPrepare into its own file
2015-05-25Support building on FreeBSDlinnemannr1-0/+5
SetFlags.cmake Add -lexecinfo to linker flags for FreeBSD to resolve backtrace() lib/sqlite/CMakeLists.txt Define _XOPEN_SOURCE to 600 instead of __POSIX_VISIBLE to 200112 for POSIX 1-2001 support. For POSIX standards, the _XOPEN_SOURCE define controls the eventual value of __POSIX_VISIBLE. _XOPEN_SOURCE is defined to 500 in sqlite.c if not already defined, which sets up _POSIX_C_SOURCE and __POSIX_VISIBLE to the 199506 for POSIX.1c lib/tolua++/CMakeLists.txt src/CMakeLists.txt Add /usr/local/lib to the library search path for FreeBSD builds src/OSSupport/Errors.cpp Correct the strerror_r() implementation determination to check whether _GNU_SOURCE is defined, not what it evaluates to
2015-05-24Disable -Werror for warnings in tests.tycho1-1/+3
2015-05-24Made -Weverything an error.tycho1-10/+15
2015-05-19Make -Werror disabling file onlytycho1-0/+25
Ad fix a load of warnings
2015-05-16Initial implementation of IniFile overloadingtycho1-0/+6
2015-05-12ToLua now generates cLuaState::Push() and GetStackValue()Mattes D1-1/+1
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.
2015-05-07Added support for additional data in the ParticleEffect Packettycho1-0/+2
Also started refactoring how broadcasts are handled
2015-05-02Update submodulesTiger Wang1-1/+1
2015-03-10Moved window code into cpp filesHowaner1-2/+2
2015-01-22Implemented LibEvent-based client connections.Mattes D1-0/+1
2015-01-22Added the libevent library.Mattes D1-1/+1
2014-11-26CMake: Fixed linux builds.Mattes D1-5/+4
2014-11-26Windows: Fixed builds with LeakFinder enabled.Mattes D1-1/+3
2014-11-18Moved all Noise-related files into a separate folder.Mattes D1-7/+6
2014-11-18Refactored cRidgedNoise into a separate template.Mattes D1-0/+1
This allows us to make the ridges out of any noise and to combine the cRidgedNoise with cOctavedNoise.
2014-11-18OctavedNoise: linux compilation fixes.Mattes D1-0/+1
2014-10-23Merged IniFile into main MCS sources.Mattes D1-1/+3
2014-10-23Added FastRandom.* back to CMakeLists.txt.Mattes D1-0/+2
2014-10-21Compile fix?Tiger Wang1-2/+0
2014-10-20Migrated cSleep and cTimer to std::chronoTiger Wang1-1/+0
2014-09-10Added abilty to set build infoTycho1-0/+3
build info is displayed at startup Fixes #1410
2014-09-01Fixed Bindings regeneration under MSVC.madmaxoft1-1/+6
2014-08-21Removed cGroup and cGroupManager.Mattes D1-4/+0
2014-08-14CheckBasicStyle checks the src folder as well.madmaxoft1-1/+1
2014-08-12Renamed LoggersTycho1-3/+4
2014-08-10Fixed Tools to work with new logging frameworkTycho1-2/+0
2014-08-10First Implementatation of new Loggin frameworkTycho1-2/+4
2014-08-05RankMgr: Initial interface declaration.madmaxoft1-0/+2
2014-07-30Added a cMojangAPI class for PlayerName -> UUID lookups, with cache.madmaxoft1-1/+3
The cache is persisted into a SQLite DB file on server shutdown.
2014-07-30Fixed "Dependency" typosarchshift1-4/+4
2014-07-24Added a queue for setting chunk data.madmaxoft1-0/+2
Fixes #1196.
2014-07-22Fixed MSVC bindings regeneration.madmaxoft1-1/+1
Still one typo had been left in the cmake file.
2014-07-21CMake: generates a list of all source files.madmaxoft1-0/+20
This will be used for the style-checking script.
2014-07-19Fixed MSVC bindings generation.madmaxoft1-3/+3
2014-07-19Moved Windows custom command to src/CMakeLists.txtarchshift1-0/+19
2014-07-19CMakeLists: Moved Bindings-specific code to subdirarchshift1-115/+7
2014-07-19Blocks/CMakeLists.txt: Fixed header list after merge of masterarchshift1-9/+4
2014-07-19CMake: Add Bindings library from subdirectoryarchshift1-23/+6
2014-07-19src/CMakeLists.txt: Replaced glob with list of filesarchshift1-20/+148
On MSVC, CMake will traverse all the CMakeLists and add their source and header files to one conglomerate SOURCE list.
2014-07-19src/CMakeLists: Small changes for increased readabilityarchshift1-5/+9
2014-07-03CMake: Changed slash format to support MSYS.madmaxoft1-1/+1
Ref.: #1044
2014-07-02CMake: Use cmake for file-copying.madmaxoft1-1/+1
This should enable MSYS builds.
2014-07-01Tolua generates LuaState_Call.inc file.madmaxoft1-2/+9
2014-07-01Fixed linking order under MinGW.Mattes D1-1/+1
Ref.: #1044
2014-06-28CMake: Added polarssl include dir as non-system.Mattes D1-1/+2
2014-06-28Changed include folders to work for Bindings, too.Mattes D1-3/+3
2014-06-27Added PolarSSL dependency to Bindings.Mattes D1-1/+1
2014-06-27Removed the md5 library, obsoleted by PolarSSL.Mattes D1-1/+1
Fixes #1130.
2014-06-19EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift1-1/+1
Changed effect map to take a pointer of the effect as a result.
2014-06-17Moved Effects.h to EntityEffects.h, added initial implarchshift1-1/+1
2014-06-14Fixed bindings generation for Win64 builds.Mattes D1-9/+28
Fixes #1092.
2014-06-14Fixed MSVC Bindings generation.Mattes D1-0/+3
2014-06-14Remove windows bindings crutchworktycho1-10/+0
2014-06-12automaticlly build tolua and generate bindings as part of build.tycho1-84/+85
2014-04-28Fixed projectile source filenames, indentationsarchshift1-8/+8
2014-04-27Fixed ToLua issuesarchshift1-0/+8
2014-04-25Cmake generated projects for IDEs include headers in project files.archshift1-0/+1
2014-04-24Attempted CMake inclusion for PolarSSL++.madmaxoft1-2/+2
2014-03-28Added Prefabs to *nix builds.madmaxoft1-1/+1
2014-03-28Initial NetherFortGen import.madmaxoft1-13/+14
Simple fortresses of 2 different rooms will generate.
2014-03-15Patched tolua to emit range checks for enumsTycho1-0/+1
2014-03-15Add item frame saving.Howaner1-0/+2
2014-03-15Add health and age load to pickup's.Howaner1-0/+1
2014-03-11Unified Matrix4 codeandrew1-1/+0
2014-03-11Unified Vector classesandrew1-3/+1
2014-03-07Move env code part 1worktycho1-10/+0
2014-03-07Added support to overide CMake build type with env varsTycho1-0/+8
2014-03-07Add Lua Bindings for FlowerPotEntity.h and add documentation.Howaner1-0/+1
2014-03-02Manually exported g_Block tablesandrew1-0/+1
2014-02-23Rename SkullEntity to MobHeadEntityHowaner1-1/+1
2014-02-23Add Skulls/HeadsHowaner1-0/+1
2014-02-19Rename SkullEntity to MobHeadEntityHowaner1-1/+1
2014-02-18Properly exported and documented paintingsTiger Wang1-0/+1
2014-02-17Add Skulls/HeadsHowaner1-0/+1
2014-02-10Added LuaChunkStay to Bindings sources.madmaxoft1-36/+47
This should fix *nix compilation. Also alpha-sorted the lists.
2014-02-09Added AllToLua.pkg to MSVC project files.madmaxoft1-0/+2
MSVC ignores the file when compiling and it makes it easier to open it up for editing.
2014-01-25Added dependecy output to Bindings/BindingsDependencies.txtTycho1-0/+7
2014-01-25Reformatted Bindings DependeciesTycho1-28/+58
2014-01-24Fixed Win nightbuilds not producing PDBs.madmaxoft1-0/+7
2014-01-23PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft1-0/+1
2014-01-23Make clean now effects BindingsTycho1-0/+2
2014-01-23Removed Bindings folder subcmake on *nixTycho1-1/+2
2014-01-23BugfixesTycho1-2/+9
2014-01-23added dependecies for bindings regenTycho1-0/+46
2014-01-22Replacing CryptoPP with PolarSSL.madmaxoft1-1/+1
This is only the CMake modification to build with PolarSSL, the actual MCS code doesn't compile at all yet.
2014-01-17Changed std to c++11 in clang to fix va_copy issuesTycho1-4/+0
2014-01-16CMake: Fixed output paths for all MSVC versions.madmaxoft1-7/+9
2014-01-14CMake: Added postfix for profiled exemadmaxoft1-0/+4
2014-01-13CMake: Removed leftover debugging output.madmaxoft1-1/+0
2014-01-13CMake: Added resources to windows projects.madmaxoft1-1/+14
2014-01-12CMake generates Bindings when not existant (win)madmaxoft1-0/+10
2014-01-06Output dir set to $/MCServer.madmaxoft1-1/+1
Ref.: #510.
2013-12-28Added support for out-of-source builds.madmaxoft1-9/+16
2013-12-27Made cmake compilation possible on Windows.madmaxoft1-5/+15
2013-12-26Added proper precompiled headers for MSVC.madmaxoft1-48/+47
2013-12-20added precompiled headerstycho1-13/+24
2013-12-20fixed include of math on windowstycho1-0/+9
2013-12-20fixed include paths on windows and added build dir to gitignoretycho1-0/+2
2013-12-20fixed compile errors with headers and math librarytycho1-6/+15
2013-12-20fixed multiprocessing on windows and removed redundend compile of headerstycho1-1/+0
2013-12-19fixed a number of windows issuestycho1-13/+28
2013-12-19added md5 as a dependency for bindingsTycho Bickerstaff1-1/+2
2013-12-19added expat as lua bindings dependincyTycho Bickerstaff1-1/+1
2013-12-19added blocks and blockentitiesTycho Bickerstaff1-1/+2
2013-12-19linked in luaTycho Bickerstaff1-1/+1
2013-12-11added zlibTycho Bickerstaff1-1/+1
2013-12-11added UI folderTycho Bickerstaff1-1/+3
2013-12-11removed leakfinder form buildTycho Bickerstaff1-1/+1
2013-12-10added tolua++ command and removed stackwalker from buildTycho Bickerstaff1-1/+2
2013-12-10more cmake changesTycho Bickerstaff1-4/+4
2013-12-10more cmakeTycho Bickerstaff1-3/+19
2013-12-10more cmake stuffTycho Bickerstaff1-2/+4
2013-12-10started work on cmakeTycho Bickerstaff1-0/+15