aboutsummaryrefslogtreecommitdiff
path: root/cmake
AgeCommit message (Collapse)Author
2021-10-06Build: Modernize readline finding scriptShauren
(cherry picked from commit 203f1197b4ccf7d49212549817dd3b7f21ae8259)
2021-09-22Build: Update FindOpenSSL.cmake and remove custom FindGitShauren
2021-09-05Build: Fixed branch name displayed by appveyor binariesShauren
(cherry picked from commit 85671f20d866797a5a401d714b183d07c55f8d83)
2021-08-31Build: Replace git describe with more script friendly alternative, git ↵Shauren
rev-parse and git diff-index (cherry picked from commit 29659b4192dc114540379e92a5cc915a465821d8)
2021-07-21Added from_hex for OpenSSL version parsing (#26730)Trulsrock
2021-06-28Build: Remove fine-grained CXX feature checksCarbenium
With C++17 enabled these don't serve an purpose anymore. See https://cmake.org/cmake/help/latest/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html
2021-05-16Build: Set correct year in VER_LEGALCOPYRIGHT_STRShauren
2021-04-17CONF_DIR (#26360)Jan Van Buggenhout
2021-02-21CMake: Add WITH_BOOST_STACKTRACE option to use libbacktrace (#26119)Giacomo Pozzoni
* CMake: Add WITH_BOOST_STACKTRACE option to use libbacktrace * Allow to specify where backtrace.h header is with cmake option -DBOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE="/usr/lib/gcc/x86_64-linux-gnu/10/include/backtrace.h" Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com>
2021-01-03Core: whitespace cleanup, reduce double blank line to single (#25795)Kargatum
* Core/Misc: fix double empty line * worldserver.conf
2020-12-06Improve multithreading of mmaps_generator (#25625)Giacomo Pozzoni
* Build/Misc: Add a few *San CMake flags Add the following flags for the related tools: - MSAN for Memory Sanitizer - UBSAN for Undefined Behavior Sanitizer - TSAN for Thread Sanitizer * Remove unused parameter * Fix UBSan reported issue * Disable G3D buffer pools when using Thread Sanitizer as it has its custom locking mechanisms * Code cleanup * Move threads from maps to tiles * Move tile building logic to TileBuilder class * Fix memory leak in TileBuilder * Fix build * Store TileBuilder as raw pointer for now, it will be changed later on to use modern C++ constructs * Fix crash on shutdown * Revert pvs-studio change * Fix generating 1 single tile not closing the program
2020-09-09Build: Fixed finding OpenSSL 1.1.1 installed from .msi packages instead of .exeShauren
Closes #24664
2020-08-30Core/Mysql: support MariaDB 10.5 (#25359)Kargatum
2020-08-26Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR ↵Treeston
#25335)
2020-08-24Build: Add Clang version guard to CMake (PR #25324)Treeston
2020-08-21Build/GCC: Raise required version to 8.3.0 (#25297)Giacomo Pozzoni
Even when building with Clang, make sure to have libstdc++ >= 8
2020-08-04Build: Enable /permissive- flag on msvcShauren
2020-07-27Core/Metric: Add new cmake option WITH_DETAILED_METRICS to enable more ↵Giacomo Pozzoni
metrics (#25136) * Core/Metric: Add new cmake option WITH_DETAILED_METRICS to enable more metrics Add more detailed metrics in World::UpdateSessions(). * Attempt using C++17 features * Fix cmake typo Co-authored-by: NoName <322016+Faq@users.noreply.github.com> * Fix build with WITHOUT_METRICS * Update Performance profiling dashboard with Update sessions panel * Add panel to show sessions with update time above 100 ms * Move legends on the right and add max update time diff in the legend of sessions Co-authored-by: NoName <322016+Faq@users.noreply.github.com>
2020-07-25Build: Add WITH_LD_GOLD option to use gold linker on unixCarbenium
gold is an ELF-only linker which has a better performance than the default ld.
2020-07-24dep: Add catch2 unit test framework and wire it upCarbenium
To enable the test suite, make sure to configure CMake with -DBUILD_TESTING=1 , since it is disabled by default. The catch2 dependency will be downloaded during configure time. Also add a new target "tests-common", which includes unit tests for the "common" project. To finally run the tests use the "test" target. CircleCI: Run unit tests
2020-07-24Core/Metric: Add more metrics about World::Update() loop (#25098)Giacomo Pozzoni
* Core/Metric: Add more metrics about World::Update() loop * Add new Performance profiling grafana dashboard * Add new cmake setting WITHOUT_METRICS that disables all metrics As new metrics are added, someone might want to disable them if unused. * Add more metrics about World::Update() loop * Remove old performance profiling features Remove "server set difftime" command, "-RecordUpdateTimeDiffInterval" and "MinRecordUpdateTimeDiff" worldserver config settings and their related code. The whole UpdateTime class could be removed too. * Update and rename 2020_07_99_99_world.sql to 2020_07_24_00_world.sql
2020-07-18Build: Enable -Wimplicit-fallthrough on clang (#25056)Peter Keresztes Schmidt
* Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs Related: #25006 * Misc: Add some missing breaks (no-ops) to satisfy clang Related: #25006 Closes #25055 * Build: Enable -Wimplicit-fallthrough on clang Closes #25006
2020-07-15Dep: Switch to boost process instead of old standalone versionShauren
2020-07-13Fix warnings related to Vector3::operator= and remove -Wno-deprecated-copy ↵Shauren
suppression
2020-06-24fixed indentation for cmake filesipriver
2020-06-19Additional cmake entry for configsipriver
Closes #24812 Co-authored-by: Carbenium <carbenium@outlook.com>
2020-06-16removed legacy cmake libsdir entry (#24813)Max Drosdo.www
2020-06-16CP of CMake: Prepare for target_precompile_headers (#24810) for 3.3.5 (#24816)Peter Keresztes Schmidt
* CMake: Remove guards around CMP0043 and CMP0054 We require CMake >= 3.8 which includes the policies. CMP0043 OLD behaviour is still required by cotire. (cherry picked from commit 18ad76722663c6e8cd462645b995080c67b5bff2) * CMake: Use target_precompile_headers instead of cotire with CMake >= 3.16.0 (cherry picked from commit f387673aa328f3ff5941437149ba369d3c9a2806)
2020-05-31Cherry-pick some cmake commits (#24720)Giacomo Pozzoni
* Build system: Support new in cmake 3.17 Ninja Multi-Config generator (cherry picked from commit 369b618d4f160816818681ed7e41063e2d9ba5b5) * Build system: Fixed PCH with MSVC & Ninja generator (cherry picked from commit d669f46b6d5190dabc686a35656e8b03f5ec325b) * Core: Fix clang 10 warnings (cherry picked from commit 7272508cb4b51ec5591b6f0e542ea29091db7546) # Conflicts: # src/common/Utilities/Util.h # src/server/bnetserver/REST/LoginRESTService.cpp # src/server/game/Entities/Object/Position.h # src/server/game/Entities/Player/Player.cpp # src/server/game/Guilds/GuildFinderMgr.h # src/server/game/Movement/Spline/MoveSplineFlag.h # src/server/shared/Dynamic/LinkedList.h * Build system: Set -Wno-deprecated-copy only for clang 10 (cherry picked from commit 7fdeb259ba398d5d9343a5dcd1a89562dfcbe981) * Core/Misc: GCC build and warning fixes (cherry picked from commit 4d69cc1c567180b408ddbadb9edf26859cf4c006) # Conflicts: # src/common/Utilities/Util.cpp # src/server/database/Database/MySQLConnection.cpp # src/server/game/Battlefield/Zones/BattlefieldTB.cpp # src/server/game/DataStores/M2Stores.cpp # src/server/game/DungeonFinding/LFGMgr.cpp # src/server/game/DungeonFinding/LFGPlayerData.cpp # src/server/game/Entities/GameObject/GameObject.cpp # src/server/game/Entities/Item/Item.cpp # src/server/game/Entities/Object/Updates/UpdateFields.h # src/server/game/Entities/Player/Player.cpp # src/server/game/Entities/Player/RestMgr.cpp # src/server/game/Entities/Unit/Unit.cpp # src/server/game/Handlers/PetHandler.cpp # src/server/game/Server/Packets/GuildPackets.h # src/server/game/Spells/Auras/SpellAuraEffects.cpp # src/server/game/Spells/Auras/SpellAuras.cpp # src/server/game/Spells/Spell.cpp # src/server/game/Spells/SpellInfo.cpp # src/server/game/Spells/SpellMgr.cpp # src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp # src/server/scripts/Kalimdor/HallsOfOrigination/instance_halls_of_origination.cpp # src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp # src/server/scripts/Northrend/Ulduar/Ulduar/boss_mimiron.cpp # src/server/scripts/Northrend/zone_sholazar_basin.cpp # src/server/scripts/Outland/BlackTemple/instance_black_temple.cpp # src/server/scripts/Outland/GruulsLair/instance_gruuls_lair.cpp # src/server/scripts/Outland/HellfireCitadel/BloodFurnace/instance_blood_furnace.cpp # src/server/scripts/Outland/HellfireCitadel/ShatteredHalls/shattered_halls.cpp # src/tools/vmap4_extractor/gameobject_extract.cpp # src/tools/vmap4_extractor/model.cpp # src/tools/vmap4_extractor/vec3d.h * Build system: Print found git version when warning about it being too old (cherry picked from commit 1ae72db201189877c1b863fac140eb4b0a45c5bb) * Build system: Removed hard requirement on BOOST_ROOT being set as environment variable, it can now be also passed as command line argument to cmake and fix compile warning with boost 1.73 (cherry picked from commit 161944b7643c62f9e7705c64e42d42e5d07f1959) # Conflicts: # dep/boost/CMakeLists.txt * Remove some code that was already removed from 335 and then cherry-picked into master Co-authored-by: Shauren <shauren.trinity@gmail.com>
2020-04-24Build: Add support to MariaDB 10.4 on WindowsGiacomo Pozzoni
MariaDB 10.4 (latest stable) is the only supported version.
2020-04-10Misc: Deprecate mysql 5.6Aokromes
2020-04-05Build: Delete FindBoost.cmake and rely on the one that ships with cmake insteadShauren
(cherry picked from commit e5b12a76dcd3348ff5ddc3e79da4d4a9f6837351) # Conflicts: # cmake/macros/FindBoost.cmake
2020-04-03Require Visual Studio 2019 16.4 or greater (#24214)Giacomo Pozzoni
* CI/AppVeyor: Add appveyor.yml file * Build: Require Visual Studio 2019 16.4 or greater * CI/AppVeyor: Upgrade to VS2019 image * Update cmake error message * CI/AppVeyor: Fix appveyor VS 2019 configuration
2020-03-01Core: build on aarch64 with gcc (#24216)daMaex
* build on aarch64 with gcc * Core/aarch64: readability on preprocessor macro * Core/aarch64: TC C++ codestyle adjustment
2020-02-08Build: Enable and require c++17 (#23868)Giacomo Pozzoni
* Build: Enable and require c++17 * Build: Raise Visual Studio version from 2017 15.2 to 2017 15.9 * Build: Raise GCC version from 6.3.0 to 7.1.0 * Reduce branch differences * Fix build after latest merge * Cleanup after latest merge
2020-01-02New yearAokromes
Say bye bye to every year changing dates
2019-12-20Build: Updated Find Boost versionsvincent-michael
2019-11-09Core/DBLayer: Support using mysql 8Shauren
(cherry picked from commit c3a9d56b56b665133707f587ecb1bd1c272f6911)
2019-10-19Build/Misc: Add ASan CMake flagjackpoz
Allow to enable/disable Address Sanitizer in Clang and GCC from CMake flag "ASAN" of type Boolean. It can be enabled passing -DASAN=TRUE to CMake.
2019-04-19Buildsystem: Fix finding VS 2019 compiled boost libsjackpoz
2019-01-18Build/Misc: Removed -DDEBUG from clang compile optionsShauren
(cherry picked from commit b0609757d32cfe256794e354d13f98d5a4c97020)
2019-01-01Happy New Year, folks. It's 2019!Treeston
2018-12-31Misc: Deprecate any mysql under 5.6Aokromes
Mysql 5.5 is deprecated on few hours. 5.5 December 3, 2010; 8 years ago[50] 5.5.61 2018-07-27 December 2018 https://en.wikipedia.org/wiki/MySQL#Release_history closes #22874
2018-10-04Build: Added Boost version 1.68 to FindBoostvincent-michael
2018-09-12Cmake: Update outdated stringAokromes
2018-04-15Build: Added Boost version 1.67 to FindBoostvincent-michael
https://www.boost.org/users/history/version_1_67_0.html
2018-03-20Buildsystem: Fixed finding openssl 1.1 libsShauren
(cherry picked from commit 413cf257cd8d0fc306fea0dcfa1a630d73b539c8)
2018-03-14Buildsystem: Separate strict database type checks from ↵Shauren
TRINITY_DEBUG/WITH_COREDEBUG option
2018-03-04Core/Crypto: Transitional Cryptography update for OpenSSL 1.1 (#21533)Warlockbugs
Support for both OpenSSL 1.0 LTS and OpenSSL 1.1 versions. Many Linux distributions are still on 1.0 and will stay on LTS for quite some time. Port of CMaNGOS commit: https://github.com/cmangos/mangos-wotlk/commit/e1b0048f052eda46bb27d20224d0339960816ac2
2018-02-17Core/Misc: Add PERFORMANCE_PROFILING CMake optionjackpoz
Add a new CMake option called PERFORMANCE_PROFILING that should be used only when profiling the performance. This option is unsupported, do not report any issue happening when enabling this option.