Commit Graph

360 Commits

Author SHA1 Message Date
Shauren
3e23b8bcb7 Dep/MySQL: Ignore MySQL Workbench installations when searching for mysql.exe
(cherry picked from commit 31beaf0ba1)
2025-09-06 14:55:36 +02:00
Shauren
9c04a329f2 Dep/MySQL: Remove hardcoded mariadb search locations
Closes #31242

(cherry picked from commit ceb9aed4e2)
2025-08-30 22:59:47 +02:00
Shauren
521ec0b444 Dep/MySQL: Move required version checks to CMake, raise required version to 8.0.34 and remove strict compiled<->runtime version match requirement from non-Windows platforms
(cherry picked from commit b386971229)
2025-08-30 22:55:25 +02:00
Shauren
101b0e0741 Build: Enable more msvc standard conformance options
(cherry picked from commit c5425196fd)
2025-08-30 22:55:25 +02:00
Shauren
d03e90ef43 Core/Misc: Fix revision_data.h and boost/predef preprocessor macro conflict
(cherry picked from commit 1f5f245c02)
2025-08-30 22:55:25 +02:00
Shauren
da4bcad2d7 Build: Remove -fpch-instantiate-templates detection, it is enabled by default since CMake 3.19
(cherry picked from commit 55a19f15d0)
2025-08-30 22:55:25 +02:00
Ovahlord
dce2b90702 Build: enable MSVC warning C5038 - member initialization order to get closer to the warning behavior of the other compilers
(cherry picked from commit e36a66d632)
(cherry picked from commit 2b1ad96be1)
2025-08-30 22:55:25 +02:00
Shauren
92ac60c665 Build: Disable -Wmissing-field-initializers for clang, it now mirrors unwanted gcc behavior since version 18
(cherry picked from commit 93c8993314)
2025-08-30 22:55:25 +02:00
Shauren
29bc08175f Build: Handle localized "Microsoft" name returned from Get-CimInstance
(cherry picked from commit bfb6c95518)
2025-08-30 22:55:25 +02:00
Keramat Jokar
9dff954ca7 Build: Add more detailed windows release name to revision_data.h (#30310)
(cherry picked from commit 83ca87d39e)
2025-08-30 22:55:25 +02:00
Shauren
a3874ee4f9 Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings into compile errors
(cherry picked from commit 7ac0c685dd)
2025-08-30 22:55:25 +02:00
Shauren
58f9def30f Build: Automatically include WindowsSettings.manifest in all executables instead of listing it separately as source file in every target
(cherry picked from commit a21e7c738e)
2025-08-30 22:55:25 +02:00
Shauren
9350a0f561 Core/Misc: CompilerDefs/GitRevision improvements
* Removed INTEL as a separate platform (it does not belong there)
* Removed BORLAND from known compilers list (it was never supported)
* Simplified TRINITY_PLATFORM_WINDOWS detection (_WIN32 is always defined)
* Rename revision_data.h macros that begin with a underscore
* Added processor architecture to --version string
* Added Linux distribution name to .server debug
* Fixed some revision_data.h macros missing/wrong values when regenerated during compilation
* Removed manual adding of _WIN64 macro from cmake (it is predefined internally by compiler)

(cherry picked from commit e8740fb2e1)
2025-08-30 22:55:25 +02:00
Shauren
faef73f472 Build: Replace hardcoded mysql search paths with pattern based approach 2025-05-11 18:40:43 +02:00
Shauren
ca6aa74545 Build: Extract hardcoded list of mysql paths to shared cmake variable 2025-05-11 18:40:43 +02:00
Shauren
8719b30d57 Build: Disable maybe-uninitialized warning for GCC that incorrectly triggers with std::optional
(cherry picked from commit d93002f9a9)
2025-04-13 19:05:27 +02:00
Shauren
8cbb263c14 Build: CMake cleanup
* Migrate all add_definitions to target_compile_definitions
* Remove -D from preprocessor definitions added by target_compile_definitions (unneccessary, cmake strips it anyway)
* Fixed NO_BUFFERPOOL not being set on g3d if jemalloc is used
* Moved library/compiler specific compile flag settings spread all over various CMakeLists to their related library/compiler file
* Remove ancient manual link flag settings for worldserver

(cherry picked from commit 77fe2745fe)
2025-04-13 19:05:21 +02:00
Shauren
5269de5919 Build: Decouple compiler specific settings from os settings
(cherry picked from commit 12d1f4448c)
2025-04-13 18:23:15 +02:00
Shauren
3a2bb2fcfd Build: Normalize executable locations in build directory for all platforms
(cherry picked from commit a7c42f1ed5)
2025-04-13 18:22:53 +02:00
Shauren
857d0b2c27 Build: Unify setting _BUILD_DIRECTIVE preprocessor macro for all compilers
(cherry picked from commit 078bc6fe3f)
2025-04-13 18:17:40 +02:00
Shauren
b7783c9cfb Build: Remove unneccessary /MP compile option when using ninja
(cherry picked from commit 1083e89da3)
2025-04-13 18:17:04 +02:00
Shauren
4bc23a0753 Build: Silence cmake warning about newline in variable
(cherry picked from commit 0e01b72df8)
2025-04-13 18:08:37 +02:00
Shauren
9cfd55e931 Build: Replaced deprecated exec_program with execute_process
(cherry picked from commit 8eac6224c0)
2025-04-13 18:07:47 +02:00
Shauren
27b759ef6a Build: Perform CMake check_cxx_source_compiles checks using the same C++ standard as used in the project
(cherry picked from commit 34308dd6de)
2025-04-13 18:06:43 +02:00
Foe
6a5fa255fe Build: Allow efsw to be built independently of WITH_DYNAMIC_LINKING option (#30019) 2024-06-02 17:44:24 +02:00
Shauren
6817ad93d7 Build: Update required GCC version to 11.1
(cherry picked from commit 16853af7c8)
2024-04-10 16:16:38 +02:00
lee
370685457e Build: Fix Linux aarch64 GCC build (#29831) 2024-03-27 10:50:07 +01:00
Shauren
e48cedb3ed Core/Misc: Fixed windows nopch build
(cherry picked from commit 261a237cfa)
2024-03-13 22:12:16 +01:00
Shauren
45d7a44555 Build: Reuse PCH file between all script modules
(cherry picked from commit eac4bf825a)
2024-02-26 12:29:16 +01:00
Shauren
73d2e9d6d6 Build: Improve ARM target detection in cmake (needed by MSVC)
(cherry picked from commit 7e51d17a0a)
2024-02-26 12:29:16 +01:00
Ovahlord
11b6b476d6 CMake: added MySQL 8.3 to FindMySQL cmake macro
(cherry picked from commit 7199ccf156)
2024-02-26 12:29:16 +01:00
Ovahlord
b989e1701b CMake: added MySQL 8.2 to FindMySQL cmake macro
(cherry picked from commit b6a35c7920)
2024-02-26 12:29:16 +01:00
Shauren
26f7dfb197 Build: Fixed msvc version check
(cherry picked from commit eb847ff537)
2024-02-26 12:29:16 +01:00
Shauren
ebb4bdf2d1 Dep: Support mysql 8.1 on windows
(cherry picked from commit c489e26207)
2024-02-26 12:26:37 +01:00
Shauren
6a41b0dc06 Build/GCC: Disable useless warning
(cherry picked from commit 0aa644287c)
2024-02-26 12:26:37 +01:00
Shauren
0929d3dfdd Build: Increase required msvc version slightly
(cherry picked from commit 1ed8bfa080)
2024-02-26 12:26:37 +01:00
Ovahlord
e6069c14ab Build: moved MSVC warning C5054 from warning level 4 to 3
(cherry picked from commit d535977c6d)
2024-02-26 12:26:36 +01:00
Shauren
4d220221bf Build: Fixed copypaste mistake in appleclang version check
(cherry picked from commit 8d353f20fd)
2024-02-26 12:23:57 +01:00
Shauren
367c5db9f4 Core/Misc: Fix build with libc++
Closes #28909

(cherry picked from commit 083b8d6c84)
2024-02-26 12:23:57 +01:00
Shauren
f7a59ea707 Build: Update required cmake version to 3.18
* Remove cotire

(cherry picked from commit add53fb3ef)
2024-02-26 12:17:31 +01:00
Shauren
182cf7bc0e Build: Make genrev more resilient to invalid source code checkouts
(cherry picked from commit 03837b2525)
2024-02-26 12:17:31 +01:00
Shauren
acb43896f2 Build: Fixed finding mysql binary on first cmake run
Closes #28133

(cherry picked from commit e9152679d7)
2024-02-26 12:16:50 +01:00
Shauren
faa8c9b710 Build: Modernize mysql finding script
(cherry picked from commit ae6b9e6c41)
2024-02-26 12:16:50 +01:00
Shauren
c1f90390d9 Build: Improve automatic finding of libraries on mac
(cherry picked from commit 091e71502c)
2024-02-26 12:16:50 +01:00
Shauren
c703497655 Build: Partial support for clang-cl
(cherry picked from commit 0b846b2107)
2024-02-26 12:16:13 +01:00
Shauren
0ce6a573a6 Build: Enable some msvc warnings that are enabled for other compilers
(cherry picked from commit 73b4b1733a)
2024-02-26 12:16:13 +01:00
Shauren
5e7b8cebf3 Build: Fixed finding openssl 3.2 on windows
(cherry picked from commit 94aed68968)
2023-12-05 19:24:32 +01:00
Shauren
eb50b29ab3 Core/Misc: Added windows version checks during startup to avoid confusion about crashes when running on unsupported OS
(cherry picked from commit 333630b7de)
2023-12-02 15:57:09 +01:00
Shauren
ca03ecf3e6 Build: Support ASAN on msvc
(cherry picked from commit 0a0b420d86)
2023-08-23 14:23:56 +02:00
Shauren
24fc0dcb1e Core/DBLayer: Relaxed restrictions on which Field class member function can be used to access column value from "strict match" to "must not truncate"
(cherry picked from commit eadafb0347)
2023-08-15 22:00:22 +02:00