Commit Graph
400 Commits
Author SHA1 Message Date
jackpoz 10e3016e85 Dep/Boost: Set boost msvc version on Windows to 14.2
14.2 is the only supported one (Visual Studio 2019)

(cherry picked from commit 2ea511b9f45d2e8ad33824fd76e848dace264469)
2022-01-24 13:02:52 +01:00
Carbenium f837f28171 dep: Add catch2 unit test framework and wire it up
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-23 22:48:35 +01:00
Giacomo Pozzoni 8735c5f511 Dep/Boost: Remove unused thread library (#25076)
(cherry picked from commit cf5babc302d43f903b444b97bfdb934545356da2)
2022-01-23 22:17:02 +01:00
Giacomo Pozzoni 196a62c031 Dep/Boost: Set boost version to 1.67 on *nix and 1.70 on Windows (#25069)
(cherry picked from commit c54dc3ef9273378c55e0c17acef18de731a7f8eb)
2022-01-23 21:37:33 +01:00
Shauren 2b312c7bd2 Dep: Switch to boost process instead of old standalone version
(cherry picked from commit 524d16739861d0b2279e2270e319b0c77ec9b03b)
2022-01-23 20:39:15 +01:00
Peter Keresztes Schmidt 770fbcca0c Core/Misc: Replace boost::optional with std::optional (#25047)
C++17 is already mandatory, so it's a safe thing to do

(cherry picked from commit 202fd41389973322f63186fd8e5a368fce3e1b04)
2022-01-23 18:05:59 +01:00
Shauren a55801e35e Correct g3d patch naming conflicts with 3.3.5 branch 2022-01-23 00:34:44 +01:00
Shauren aed8e1c3b4 Fixed -Wdeprecated-copy warning in G3D
(cherry picked from commit a650bd631a4681d09e3ff66f79b73b99299565f3)
2022-01-23 00:19:57 +01:00
Shauren d4568a90b1 Fix warnings related to Vector3::operator= and remove -Wno-deprecated-copy suppression
(cherry picked from commit 042b1abfd747160085e5acc24a842a076b20ea01)
2022-01-23 00:18:39 +01:00
lee aa742c8752 Dep/rapidjson: fix wrong arm/aarch64 flags compile error (#27650) 2022-01-20 10:18:14 +01:00
leeandShauren 845b807c84 Core: Configure rapidjson to support arm builds (remove SSE flag for them) (#27618)
Co-authored-by: Shauren <[email protected]>
2022-01-16 11:48:58 +01:00
ipriver bde36062b7 fixed indentation for cmake files
(cherry picked from commit a46d047f9466c6f16597755bb7c771a9d1a147f2)
2022-01-06 23:40:39 +01:00
Giacomo Pozzoni d58d0e895c Handle different slopes in mmaps (#24765)
* Tools/MMAPs: Remove input argument --maxAngle

Remove input argument --maxAngle . This should be just hardcoded in MapBuilder::GetMapSpecificConfig() so all settings are easily found in the same place instead of being spread around.

* Tools/MMAPs: Add new area type NAV_AREA_GROUND_STEEP

Add new area type NAV_AREA_GROUND_STEEP for ground with slope in the range (55, 70] .
NAV_AREA_GROUND is used for ground with range [0, 55] .
NAV_AREA_GROUND_STEEP takes priority over NAV_AREA_GROUND.

* Tools/MMAPs: Fix NAV_GROUND_STEEP flag not being saved in the mmtile

* Core/PathFinding: Implement NAV_GROUND_STEEP flag

Implement NAV_GROUND_STEEP flag, used only by Creatures that are in combat or evading.

* Distinguish between RC_WALKABLE_AREA and NAV_AREA_GROUND.

* Allow mobs in combat to walk on steeps up to 80°

* Allow mobs in combat to walk on steeps up to 85°.
Disable rcFilterLedgeSpans() filter as it removed long steep spans.

* Increase cost of steep spans to try making creatures walk around obstacles instead of walking on them

* Revert last commit

(cherry picked from commit 995a443da219ec773febd7dd29d18f3cefaa1f3b)
2022-01-04 20:44:02 +01:00
Shauren f83dbb254a Core/Misc: Fix invalid utf-8 comments
(cherry picked from commit 6259763469826526fc26b07ff20885d5b04a791f)
2021-12-30 20:46:34 +01:00
Shauren ff9816ef38 Core/Misc: Fixed outdated cherry-picked file headers 2021-12-26 22:05:54 +01:00
daMaex 8181177aea Core: Build on ARM64 - Raspberry Pi (preferable 4) (#23885)
* build again on aarch64

* include mm_malloc header instead of defining self

(cherry picked from commit cbe765df7a75f61941583ab95ecaa153e198d3de)
2021-12-22 12:30:00 +01:00
Shauren 38bca4eeb6 Dep/G3D: Add more of our modifications as separate patches 2021-12-22 12:28:49 +01:00
Shauren 172e5c3577 Dep/gSOAP: Upgrade to 2.8.117 2021-12-21 01:15:58 +01:00
jackpoz 9c154074ed Dep: Inherit C++ language version from CMake
(cherry picked from commit 92b25070b9d91b050bd1f3fb28b93c07a9b6ba04)
2021-12-19 00:33:43 +01:00
Giacomo Pozzoni 490c05080c Core/Build: Fix tools-only build
(cherry picked from commit c152e0f4158ca159b9617461ac6c254ff4868d2e)
2021-12-19 00:32:59 +01:00
daMaex 08b40733a5 Dep/SFMT: updated to newest upstream version from https://github.com/MersenneTwister-Lab/SFMT
* only needed files added
* used CMake and SFMTRand from https://github.com/TrinityCore/TrinityCore/pull/23240 (Thank you Artox)

(cherry picked from commit 4e0279b0e48c9992842010b9f3f132e54a460128)
2021-12-19 00:12:41 +01:00
daMaex 97d48751b0 Dep/efsw: updated efsw to newest version (#23894)
(cherry picked from commit ed2c2941a74ec720c5e4db3cb33367235e6c3655)
2021-12-19 00:01:13 +01:00
daMaex 67696322ea Core: updated argon2 to latest release (#23893)
* - updated argon2 to latest release from https://github.com/P-H-C/phc-winner-argon2

- modified CMakeLists.txt to use the reference implementation on aarch64

* fixed indentation

* added ARGON2_NO_THREADS definition to argon2 library

* better indentation

(cherry picked from commit ce916165e2f47446593d2e83a23434702397918f)
2021-12-18 23:45:05 +01:00
daMaex 657fab8cb9 added jemalloc configuration to CMake for CPU_SINWAIT (#23898)
(cherry picked from commit 4bf80e2f18eabc91519526591be48bca6947a9b1)
2021-12-18 23:44:42 +01:00
jackpoz fa4830af80 Dep/Jemalloc: Update to Jemalloc 5.2.1
(cherry picked from commit 89cb584780aa936f9353fc8a2acd009c49461134)
2021-12-18 23:39:50 +01:00
Treeston 0b61c3b7b1 [3.3.5] Core/Authserver: TOTP rewrite: (PR #23633)
- Proper management commands (.account 2fa)
- Secrets can now be encrypted (set TOTPTokenSecret in .conf)
- Secret now stored in binary
- Argon2 and AES primitives
- Base32/64 support

(cherry picked from commit 4211645834c467a03c60248e80818d3607be9ea7)
2021-12-18 20:24:50 +01:00
jackpoz 8dd1f39153 Dep/Jemalloc: Update to Jemalloc 5.2.0
(cherry picked from commit 5d986f0be46bf439caf227f3c228ac1c8efddfde)
2021-12-03 22:02:24 +01:00
jackpoz aeaca00d76 Buildsystem: Fix finding VS 2019 compiled boost libs
(cherry picked from commit 3d3b7f438c6638aed998f4233b809826a3cf0f54)
2021-12-01 00:28:13 +01:00
jackpoz ad06ab5436 Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/54bb0943e5174a71eeeca11919920f685760a4f0
(cherry picked from commit e061663508191f7782dd62c7e13b5ea804f58f67)
2021-11-26 22:44:37 +01:00
jackpoz bd0e9e7aa8 Core/MMaps: Fix infinite loop in Detour
Fix another infinite loop in Detour caused by degenerated triangles.
Check the result of some previously ignored Detour calls.
Update recastnavigation to 3a619d773deb7e3a15ee215217c825995fe71312 and apply some more custom changes

(cherry picked from commit c602220e02bed1ad76c9e60064eeec5fd97bfe80)
2021-11-24 20:34:56 +01:00
jackpoz 291ee6416c Dep/Recast: Validate input values more consistently and completely, including that points are finite
Merge https://github.com/recastnavigation/recastnavigation/pull/374 .
This should fix infinite loops happening with degenerated triangles with 0 area.
Fix #23028

(cherry picked from commit a75fbe527a9c35fd0cb2e0710a3ebed1223d5c61)
2021-11-23 23:44:00 +01:00
jackpoz b0703f943c Core/MMaps: Change infinite loop fix in Detour
Change the infinite loop fix in Detour to allow looping through all the m_nodePool nodes max once, otherwise it most likely means that we entered an infinite loop. This is currently set to 1024.

(cherry picked from commit 12e6faa0fa0cf389bcebd4a6f2220e71c697250c)
2021-11-23 22:29:58 +01:00
jackpoz 23489568db Core/MMaps: Fix infinite loop in Detour
Fix an infinite loop in Detour happening in Dalaran Sewers.
This is more of an emergency patch until we figure out why dtNodes have a circular reference (A -> B -> C -> A) happening quite often in this place

(cherry picked from commit c8ec2dd95d07e3eec00027cdb9605529a49d6475)
2021-11-23 22:28:28 +01:00
jackpoz cb8b637061 Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/14b2631527c4792e95b2c78ebfa8ac4cd3413363
Rebuilding mmaps IS required

(cherry picked from commit 5ff88ea04aec4677f1c1d669674e5442288a25e3)
2021-11-22 00:17:11 +01:00
Shauren ae84dd2a65 Buildsystem: Configure boost to return error messages encoded using utf8 instead of whatever current system code page is on windows
(cherry picked from commit 5b4eefb6d8231db95c4ff9cb4090a27683ff3a48)
2021-11-21 15:03:48 +01:00
Treeston c977087d58 Core/Misc: Partial merge of 3.3.5-dbedit:
- Added SmartEnum.h for enum iteration, stringification, and more, courtesy of krabicezpapundeklu/smart_enum
- Moved a bunch of enums in SharedDefines.h to the new system
- Miscellaneous utility methods ported

Core/Util: Redesign SmartEnum to properly work for large
 enums (>64 entries) and play nice with IDEs (PR #22768)

(cherry picked from commit 338e8ba0fea8b4b15120c96fff15a6c4b1a52593)
(cherry picked from commit f7ca0877a3736000a6e3b4ed09ac5f08b4d8e3f0)
(cherry picked from commit 207093475a177e9fd29696e80fdd06a11324782d)
(cherry picked from commit ee68cf33921944fd3f8c188044906998cf10ff2a)
(cherry picked from commit c16d461e16f0704bb11040faff30953d33ba2188)
(cherry picked from commit f6b0d99e2c0bc22b44d6f3cfdae50cbba7d51de8)
(cherry picked from commit bc1f456125c1b6c90617a514152d69c40ce64886)
2021-11-15 21:34:03 +01:00
Aokromes d59f557523 Core/Mmaps: Revert a bad change
Closes #22470 by xvwyh

this doesn't needs to re-extract mmaps.

(cherry picked from commit 58e297da1084599fd0b1db9d51b41f45759ee12d)
2021-11-11 20:22:30 +01:00
Shauren 50381ed741 Dep/protobuf: Backport https://github.com/protocolbuffers/protobuf/pull/2337 to our embedded version 2021-10-01 18:57:17 +02:00
Shauren 203f1197b4 Build: Modernize readline finding script 2021-10-01 18:54:52 +02:00
Shauren 4e71c5b685 Dep/CascLib: Update to ladislav-zezula/CascLib@4fc4c18bd5 2021-10-01 13:47:03 +02:00
Shauren 4d153b6cb9 Build: Update FindOpenSSL.cmake and remove custom FindGit
(cherry picked from commit 77596dba67483c8050c3d3ea1c4299360fde6beb)
2021-10-01 13:02:03 +02:00
jackpoz 501bb9dc67 Dep/Jemalloc: Update to Jemalloc 5.1.0
(cherry picked from commit 8fe74bf0f90aab0b23d5ff21079cba4201bb4fdf)
2021-09-26 20:50:35 +02:00
Shauren b70f34b696 Dep/CascLib: Update to ladislav-zezula/CascLib@37a948bdb5 2021-06-27 20:20:51 +02:00
Shauren fb6c1dc295 Dep/bzip2: Remove dependency 2021-05-15 02:14:37 +02:00
jackpoz e9e59e0861 Dep/Jemalloc: Enable MADV_FREE if available
(cherry picked from commit 10ad43916fb67eaf59c5a676c83b36ec8506beec)
2021-02-25 18:50:55 +01:00
jackpoz ba953eb6ac Dep/Jemalloc: Temporarily disable MADV_FREE
Temporarily disable MADV_FREE until CMake file is modified to check if MADV_FREE is available on the current system.
This fixes the build on older systems.

(cherry picked from commit 0f6feb828baf17522a001eddb51495f5ad397444)
2021-02-25 18:50:55 +01:00
jackpoz 65f4666063 Dep/Jemalloc: Update to Jemalloc 5.0.1
(cherry picked from commit 92cd9bd70db460fdce4af0596cf9d8ee3c3abad5)
2021-02-15 19:13:25 +01:00
Shauren 0748d4443d Dep/jemalloc: Fixed valgrind intergration
(cherry picked from commit a422dad8702c779b5665891d9e651aef575f33f7)
2021-02-15 19:13:25 +01:00
jackpoz 367e9f210e Dep/Jemalloc: Update to Jemalloc 4.0.4
(cherry picked from commit cc6dec72863a771da0c0f3ab3d32f75d7ce863bd)
2021-02-15 19:13:25 +01:00
Aokromes a9edd9dc47 Update CMakeLists.txt
(cherry picked from commit 11beb4b6e1e63156774a42e5cfc63f17bdccc3ad)
2021-02-15 19:13:25 +01:00