aboutsummaryrefslogtreecommitdiff
path: root/cmake
AgeCommit message (Collapse)Author
2022-01-26Build: Enable /permissive- flag on msvcShauren
(cherry picked from commit c8fed48b161cfff5fa90d8bf4342ede88086ada4)
2022-01-24Core/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> (cherry picked from commit 36ef487a90d0d14c4da8ce7e19b5916b8b15056c)
2022-01-23Build: 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. (cherry picked from commit 796e2b32e03e7b1a56e44bd4b8988f9156bbb026)
2022-01-23dep: 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 (cherry picked from commit 6a28ee7b2a4269aa7e43265d1cd0067537e3e883)
2022-01-23Core/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 (cherry picked from commit 3c0ac7302f902d1811d2c215217a3d701f8b5b19)
2022-01-23Build: 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
2022-01-23Dep: Switch to boost process instead of old standalone versionShauren
(cherry picked from commit 524d16739861d0b2279e2270e319b0c77ec9b03b)
2022-01-23Fix warnings related to Vector3::operator= and remove -Wno-deprecated-copy ↵Shauren
suppression (cherry picked from commit 042b1abfd747160085e5acc24a842a076b20ea01)
2022-01-21Build: Enable some msvc warnings that are enabled for other compilersShauren
2022-01-06fixed indentation for cmake filesipriver
(cherry picked from commit a46d047f9466c6f16597755bb7c771a9d1a147f2)
2022-01-06Additional cmake entry for configsipriver
Closes #24812 Co-authored-by: Carbenium <carbenium@outlook.com> (cherry picked from commit dc467ee0f6d0a49be4bd20b621f141228dfec736)
2022-01-06removed legacy cmake libsdir entry (#24813)Max Drosdo.www
(cherry picked from commit 60e813df6b7dfe599266cf36ddd52ba204917267)
2022-01-04Improve 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 (cherry picked from commit a4e93d779c9638bc0a61cb4405ef28cb935d1065)
2022-01-01Build: Add support to MariaDB 10.4 on WindowsGiacomo Pozzoni
MariaDB 10.4 (latest stable) is the only supported version. (cherry picked from commit 7c91c423d05aabc18d5c36af9ecc2a9c5f49970d)
2022-01-01Misc: Deprecate mysql 5.6Aokromes
(cherry picked from commit 0fa366cbda66b10584075286db348f0e5e6e8a32)
2021-12-22Core: build on aarch64 with gcc (#24216)daMaex
* build on aarch64 with gcc * Core/aarch64: readability on preprocessor macro * Core/aarch64: TC C++ codestyle adjustment (cherry picked from commit ce449f6b5332ab466d935de0077bccfdde716d1b)
2021-12-21Build: 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 (cherry picked from commit 726d5e91b55d4742dcbd6b0a82d84788dbb117b7)
2021-12-18Build/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. (cherry picked from commit 580f40769c6c446284dd1f5738f67fb3ee802956)
2021-10-01Build: Modernize readline finding scriptShauren
2021-10-01Build: Update FindOpenSSL.cmake and remove custom FindGitShauren
(cherry picked from commit 77596dba67483c8050c3d3ea1c4299360fde6beb)
2021-10-01Build: Check -Wno-deprecated-copy existence using check_cxx_source_compiles ↵Shauren
instead of hardcoding clang version number
2021-09-06Buildsystem: Separate strict database type checks from ↵Shauren
TRINITY_DEBUG/WITH_COREDEBUG option (cherry picked from commit ddd60a948c432aaac1d9a9ff05c9cf22ada35813)
2021-09-05Build: Fixed branch name displayed by appveyor binariesShauren
2021-08-31Build: Replace git describe with more script friendly alternative, git ↵Shauren
rev-parse and git diff-index
2021-08-08Core/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. (cherry picked from commit db5c9867e2ffde3657f53bc155b474c5d46884dd)
2021-02-15Dep/Jemalloc: Update to Jemalloc 5.0.1jackpoz
(cherry picked from commit 92cd9bd70db460fdce4af0596cf9d8ee3c3abad5)
2020-09-09Build: Fixed finding OpenSSL 1.1.1 installed from .msi packages instead of .exeShauren
Closes #24664 (cherry picked from commit aba07047a05fc46e5904f3084b6351850188f9b4)
2020-06-16CMake: Use target_precompile_headers instead of cotire with CMake >= 3.16.0Carbenium
2020-05-30Build system: Print found git version when warning about it being too oldShauren
2020-05-21Core/Misc: GCC build and warning fixesShauren
2020-04-26Build system: Set -Wno-deprecated-copy only for clang 10Shauren
2020-04-26Core: Fix clang 10 warningsShauren
2020-04-16Build system: Support new in cmake 3.17 Ninja Multi-Config generatorShauren
2020-04-05Build: Delete FindBoost.cmake and rely on the one that ships with cmake insteadShauren
2020-04-04Require 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 (cherry picked from commit 1df52da0b052654a9b42339fdd22028bfdbf9fc0)
2020-01-02New YearAokromes
2019-11-08Core/Misc: Suppress openssl random generator uninitialized variable errors ↵Shauren
under valgrind
2019-11-01Core/DBLayer: Support using mysql 8Shauren
2019-01-01Update copyright note for 2019vincent-michael
auto happy = new year(2019);
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-04-15Build: Added Boost version 1.67 to FindBoostvincent-michael
https://www.boost.org/users/history/version_1_67_0.html
2018-04-02Core/Misc: Removed obsolete NO_CORE_FUNCSShauren
2018-03-16Build/Misc: Removed -DDEBUG from clang compile optionsShauren
2018-03-06Buildsystem: Fixed finding openssl 1.1 libsShauren
2018-03-04Core/Crypto: Transitional Cryptography update for OpenSSL 1.1 (#21534)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-01-03Build: fixed finding Boost 1.66 named libraries... somewhatariel-
2018-01-03Build: fix typo in FindBoostariel-
2018-01-03Build/Misc: added Boost 1.66 to FindBoost.cmakeariel-
2018-01-01Update copyright note for 2018vincent-michael
auto happy = new year(2018);