Commit Graph

290 Commits

Author SHA1 Message Date
Peter Keresztes Schmidt
cbd6fb2315 Build: Enable -Wimplicit-fallthrough on clang (#25056)
* 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
# Conflicts:
#	src/server/game/Entities/Player/Player.cpp
#	src/server/game/Spells/SpellInfo.cpp
#	src/server/scripts/Battlefield/BattlefieldWG.cpp
#	src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockSpire/instance_blackrock_spire.cpp
#	src/server/scripts/EasternKingdoms/ScarletMonastery/boss_high_inquisitor_fairbanks.cpp
#	src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp
#	src/server/scripts/Northrend/Naxxramas/boss_thaddius.cpp
#	src/server/shared/DataStores/DBCDatabaseLoader.cpp
2020-07-18 22:47:52 +02:00
Shauren
78e7687a05 Fix warnings related to Vector3::operator= and remove -Wno-deprecated-copy suppression
# Conflicts:
#	cmake/compiler/clang/settings.cmake
2020-07-13 20:37:26 +02:00
Carbenium
70e84c3e48 CMake: Use target_precompile_headers instead of cotire with CMake >= 3.16.0
# Conflicts:
#	cmake/macros/FindPCHSupport.cmake
2020-06-16 10:53:42 +02:00
Giacomo Pozzoni
9fdf598792 Cherry-pick some cmake commits (#24720)
* Build system: Support  new in cmake 3.17 Ninja Multi-Config generator

(cherry picked from commit 369b618d4f)

* Build system: Fixed PCH with MSVC & Ninja generator

(cherry picked from commit d669f46b6d)

* Core: Fix clang 10 warnings

(cherry picked from commit 7272508cb4)

* Build system: Set -Wno-deprecated-copy only for clang 10

(cherry picked from commit 7fdeb259ba)

* Core/Misc: GCC build and warning fixes

(cherry picked from commit 4d69cc1c56)

* Build system: Print found git version when warning about it being too old

(cherry picked from commit 1ae72db201)

* 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 161944b764)

* Remove some code that was already removed from 335 and then cherry-picked into master

Co-authored-by: Shauren <shauren.trinity@gmail.com>
(cherry picked from commit 8c09b6e58b)
2020-06-11 20:24:00 +02:00
Shauren
8e65367d0c Build system: Print found git version when warning about it being too old 2020-06-11 00:36:41 +02:00
Shauren
9d0bfc0c56 Build/Misc: Removed -DDEBUG from clang compile options
(cherry picked from commit b0609757d3)
2020-05-06 00:01:13 +02:00
Giacomo Pozzoni
2e9f4285d9 Build: Add support to MariaDB 10.4 on Windows
MariaDB 10.4 (latest stable) is the only supported version.
2020-05-05 16:27:07 +02:00
Ovahlord
6d769330b0 CMake: deprecated all MySQL versions below 5.7 2020-04-15 10:23:03 +02:00
Shauren
5653d4e2de Core/DBLayer: Support using mysql 8 2020-04-15 10:19:24 +02:00
Shauren
0d84daa39c Build: Delete FindBoost.cmake and rely on the one that ships with cmake instead
# Conflicts:
#	cmake/macros/FindBoost.cmake
2020-04-05 21:06:09 +02:00
Giacomo Pozzoni
e69cd41669 Require Visual Studio 2019 16.4 or greater (#24214)
* 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-04-04 18:42:10 +02:00
Giacomo Pozzoni
c2913e608f Build: Enable and require c++17 2020-03-16 14:14:46 +01:00
Ovahlord
10dc04b2f2 CMake: added boost 1.72 to findboost macro 2020-02-27 15:25:12 +01:00
Ovahlord
f4ec104998 Cmake: added latest boost versions to FindBoost cmake 2019-10-04 15:51:35 +02:00
Ovahlord
0299e10945 Core/Servers: nuke authserver 2019-09-30 07:26:54 +02:00
Ovahlord
a723be6a64 Core/Dep: fixed build with boost 1.71 2019-09-14 02:59:19 +02:00
jackpoz
0b79415e59 Buildsystem: Fix finding VS 2019 compiled boost libs 2019-09-12 01:09:04 +02:00
Aokromes
14bb3131eb Cmake: Update outdated string 2018-09-12 10:59:18 +02:00
vincent-michael
404ad18608 Build: Added Boost version 1.67 to FindBoost
https://www.boost.org/users/history/version_1_67_0.html
2018-04-15 12:03:27 +02:00
ariel-
5ff847159c Core: header cleanup, split realmlist, boost compatibility, cotire, remove stormlib/zlib and stormlib/bzip2 and instead use dep sources 2018-03-28 04:41:59 -03:00
ariel-
7fff6c424f Compile zmq locally 2018-03-28 03:20:25 -03:00
Aokromes
19fa11cfa6 Increase gcc and clang to c++14 2018-03-08 23:55:48 +01:00
Shauren
dde0239200 Buildsystem: Fixed finding openssl 1.1 libs 2018-03-06 21:06:58 +01:00
Warlockbugs
6a8c0df9a8 Core/Crypto: Transitional Cryptography update for OpenSSL 1.1 (#21534)
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: e1b0048f05
2018-03-05 14:54:35 +01:00
jackpoz
bb70a60ba7 Core/Misc: Add PERFORMANCE_PROFILING CMake option
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.
2018-02-18 18:36:32 +01:00
Aokromes
4bd0525edd Update copyright note for 2018 2018-01-01 01:06:19 +01:00
ariel-
99044aaa3a Build: fixed finding Boost 1.66 named libraries... somewhat 2017-12-26 16:59:33 +01:00
ariel-
bbeb109135 Build: fix typo in FindBoost 2017-12-26 16:59:23 +01:00
ariel-
649be219fc Build/Misc: added Boost 1.66 to FindBoost.cmake 2017-12-26 16:59:12 +01:00
Shauren
f7fd109066 Buildsystem: Fixed windows pch build with ninja
(cherry picked from commit a6e46c1c2e)
2017-12-14 09:49:56 +01:00
jackpoz
41469a4161 Dep/Jemalloc: Update to Jemalloc 5.0.1 2017-11-25 14:03:02 +01:00
Aokromes
e21d1ca968 Setup/Misc: add a note abbout ZMQ 2017-11-10 20:18:58 +01:00
vincent-michael
2fffd5d7ad Build: Added 1.65.1 Boost version to FindBoost 2017-09-10 15:43:04 +02:00
vincent-michael
c60c237465 Build: Added 1.65 Boost version to FindBoost
http://www.boost.org/users/history/version_1_65_0.html

(cherry picked from commit cc6ca733d8)
2017-09-10 15:26:26 +02:00
Aokromes
3b324bcb11 Buildsystem: Enforce Visual Studio 2015 Update 1 in CMake
Even if it's for few days, it looks it's absolute minimum needed to compile 3.3.5a for now
2017-06-28 17:48:04 +02:00
Shauren
1808fdd7b2 Buildsystem: Minor PCH building changes
* *PCH.cpp are now only compiled with MSVC, other compilers use custom helper commands to generate the precompiled header
* Don't call the linker for pch helpertargets

(cherry picked from commit 137f5e7887)
2017-06-25 14:16:31 +02:00
Aokromes
25892c603d Fix description default 2017-05-17 08:11:10 +02:00
Aokromes
e50f95092c Build: fix finding VS 2017 compiled boost libs 2017-05-07 09:22:45 +02:00
Aokromes
6871bb1729 Build: Added 1.64 Boost version to FindBoost 2017-04-20 22:25:46 +02:00
Aokromes
df1730a734 Core/ScriptReloadMgr: Fixed scripts hot swapping on OS X 2017-04-01 07:20:43 +02:00
Aokromes
3eebbfc97d Tools: Enable tools compilation by default
(the time diff is small and it will help starters, advanced users can disable it at any time on cmake guy/compilation script)
2017-02-10 05:26:56 +01:00
Aokromes
34042dceb5 Update FindOpenSSL.cmake 2017-02-10 05:25:38 +01:00
Aokromes
719a317a67 Update copyright note for 2017 2017-01-02 07:26:38 +01:00
ariel-
16995799c9 Build: Added 1.62 Boost version to FindBoost 2016-10-03 14:58:55 +02:00
Aokromes
41683c1b7c Cmake: Limit OpenSSL version to 1.0.x client needs RC4 and 1.1.x removes the support 2016-09-11 16:36:23 +02:00
Aokromes
fb7060992b Buildsystem/MSVC: Drop support to VS2013
Upgrade to VS2015 following the steps explained in the wiki
2016-08-18 14:41:19 +02:00
Naios
b64cddabaf Build: Throw a fatal error when the SCRIPTS variable isn't a valid option.
* Catches issues early that are caused through a wrong configuration.

(cherry picked from commit 2b97b32d81)
2016-08-10 09:04:13 +02:00
Aokromes
9078085595 Core/Scripts: Split script subdirectories into independent modules
* Makes it possible to define the linkage for every module
* Move the ScriptPCH into the root directory
* Changes the SCRIPTS cmake variable to a string type:
  -> -DSCRIPTS=0 is -DSCRIPTS="minimal-static" now
     (builds commands and spells statically)
  -> -DSCRIPTS=1 is -DSCRIPTS="static" now
     (builds all modules statically)
  -> -DSCRIPTS="dynamic"
     (builds all modules dynamically)
  -> Also the default value which is provided by the SCRIPTS
     variable is overwriteable through the SCRIPTS_COMMANDS,
     SCRIPTS_SPELLS... variable.
2016-08-10 05:14:53 +02:00
Aokromes
4905073101 Buildsystem: Initial changes to support building with vs clang toolset 2016-08-10 04:43:29 +02:00
Naios
3d25c14e74 Core/Build: Enable /bigobj for most MSVC builds.
* exluding 32 bit when dyynamic linking is disabled.

(cherry picked from commit 183f970055)
2016-08-10 01:34:43 +02:00