Commit Graph

89 Commits

Author SHA1 Message Date
Shauren
1dd44207bd Buildsystem: Fixed finding openssl 1.1 libs
(cherry picked from commit 413cf257cd)
2018-03-20 17:55:22 +01:00
Warlockbugs
efef6b5e36 Core/Crypto: Transitional Cryptography update for OpenSSL 1.1 (#21533)
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-04 15:53:41 +01:00
tkrokli
f6b6f57a6d Update copyright note for 2018
Best wishes for the new year.
2018-01-01 01:55:29 +01:00
Naios
d3d003d69e Build: Re-enable the /Zm workaround for MSVC (cotire version)
* Thanks Spec for reporting this issue
* See https://community.trinitycore.org/topic/120-compile-or-cmake-problems/?do=findComment&comment=83912
* Ref 697b4dbef2
2017-12-23 02:14:05 +01:00
Naios
9d0400211d Build: Export a default interface which doesn't hide symbols in unix automatically
(cherry picked from commit db5d5a03be)
2017-12-21 23:31:11 +01:00
ariel-
b1ad5df1ee Build: fixed finding Boost 1.66 named libraries... somewhat 2017-12-21 03:24:08 -03:00
ariel-
d8faa089e4 Build: fix typo in FindBoost 2017-12-21 03:05:23 -03:00
ariel-
42cc93b940 Build/Misc: added Boost 1.66 to FindBoost.cmake 2017-12-21 02:46:47 -03:00
Naios
92f96fc10e Build: Use the cotire library for precompiled header handling
* Required for handling flags inherited by linked projects
  correctly in the corresponding precompiled header.
* Reduces the maintenance effort for precompiled headers
2017-12-17 20:22:34 +01:00
Naios
e60c1f84a7 Build: Use interface targets for inheriting flags and definitions
* Remove the usage of global flags and definitions
  set through the CMAKE_CXX_FLAGS variable.
* Use cmake target compile features for setting the
  CXX standard automatically.
* Make C++14 globally available in the project
* Closes #21033
2017-12-17 20:22:33 +01:00
Shauren
57c13c539b Buildsystem: Fixed windows pch build with ninja
(cherry picked from commit a6e46c1c2e)
2017-12-13 13:41:47 +01:00
vincent-michael
9e521fd77d Build: Added 1.65.1 Boost version to FindBoost 2017-09-10 15:20:31 +02:00
vincent-michael
c9437ba4cd 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-08-29 19:40:20 +02:00
Shauren
5024813fe3 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-22 02:33:12 -03:00
ariel-
3049d19b53 Build: fix finding VS 2017 compiled boost libs 2017-04-22 18:16:23 -03:00
ariel-
caf0b209d5 Build: Added support for boost 1.64
Build: Added 1.64 Boost version to FindBoost
(cherry-picked from commit 5233caf092)

Build: Fixed build with boost 1.64
(cherry-picked from commit a3dec5cb75)
2017-04-22 18:16:22 -03:00
S.V
f3d795d8dd Core/ScriptReloadMgr: Fixed scripts hot swapping on OS X (#19365) 2017-03-31 23:10:18 +02:00
Aokromes
00889ba009 Update FindOpenSSL.cmake 2017-02-07 10:46:52 +01:00
Aokromes
3bfaa0eac8 Build: Added 1.63 Boost version to FindBoost 2017-01-24 10:30:00 +01:00
tkrokli
6a51a88767 Update Copyright notice for 2017
Happy new year!
2017-01-02 19:52:45 +01:00
ariel-
7906bdc15e Build: Added 1.62 Boost version to FindBoost 2016-10-03 09:25:24 -03:00
Aokromes
12a6ade3ee Update FindOpenSSL.cmake 2016-09-11 16:28:51 +02:00
Aokromes
3772561ae4 Cmake: Clarify OpenSSL version required 2016-09-11 16:25:47 +02:00
Aokromes
5c92f5ba5e Cmake: Added OpenSSL version required
Cherry pick from 604a06eb36
2016-09-11 14:05:59 +02:00
Aokromes
9790cb5762 Update FindBoost.cmake 2016-07-08 01:11:37 +02:00
Vincent-Michael
f1468ff4b9 Build: Added 1.61 Boost version to FindBoost
(cherry picked from commit e43b871137)
2016-05-14 18:40:22 +02:00
Naios
42eeb28a8b Core/Scripting: Disallow the build directory to contain spaces
* I wasn't able to work arround a path which contains spaces,
  since it seems like a CMake specific issue.
* Closes #16947
2016-04-14 20:31:04 +02:00
Naios
81cee23775 Core/Build: Workarround for different path handling in CMake < 3.2
* Closes #16951
2016-04-12 23:08:27 +02:00
Naios
8660f90bdf 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.

(cherry picked from commit 848b8a4136)
2016-04-11 21:41:58 +02:00
Shauren
702cfefddb Buildsystem: Initial changes to support building with vs clang toolset
(cherry picked from commit 4a3a178d7f)
2016-04-09 12:38:20 +02:00
Naios
bf773ccc41 CMake: Remove the workaround for source groups below CMake 2.8.12
* Set the default option to hierarchical
* Add a new "hierarchical-folders" option which enables folders inside IDE's.
2016-03-18 14:28:01 +01:00
Naios
abda7a910a CMake: Use inherited dependencies in common and tools 2016-03-18 02:52:57 +01:00
Naios
2413a82b93 CMake: Add inherited include directories and definitions to precompiled headers 2016-03-18 02:52:55 +01:00
Naios
1a572d2425 CMake: Provide proper interface targets from dependencies
* to make use of cmakes inherited link dependencies which
  imports all include directories/ definitions from the link library
2016-03-18 02:52:54 +01:00
Naios
a974574d6e CMake: Add the possibility to pass an arbitrary count of targets to add_cxx_pch.
* A PCH is still generated for every target which was passed to the macro
* Resolves naming conflicts when using the same PCH header from multiple projects
* Ref #15671
2016-02-22 16:25:54 +01:00
Rushor
923a368ac7 Update copyright note for 2016 2016-01-01 12:02:33 +01:00
Vincent-Michael
347373264b Build: Added 1.60 Boost version to FindBoost 2015-12-25 17:09:39 +01:00
Shauren
11b3a60900 Buildsystem: Fixed building on windows 10 with cmake 3.4
(cherry picked from commit b5fbf773a5)
2015-11-12 17:55:04 +01:00
Shauren
1de03cf107 Core/Players: Implemented serverside validation of reserved/profane names
Closes #15357

New library dependency: Boost.Regex

(cherry picked from commit b564c10b13)
2015-10-31 17:27:45 +01:00
DDuarte
fa6a83b270 Build: Add 1.59 Boost version to FindBoost 2015-08-15 17:54:18 +01:00
jackpoz
ca940548bf Buildsystem: Fix Boost not found targeting VS2015 with pre-built binaries
Fix Boost libraries not being found by CMake when targeting Visual Studio 2015 with Boost installed using the binaries.
Fixes #15277
2015-08-14 20:23:34 +02:00
DDuarte
bc4baa4e05 Build/CMake: Partially revert recent changes to FindMySQL.cmake
Looking for folders like ".../MySQL/*/include" matches the MySQL Connector C libs which caused some problems.
Related #15072, #15068

P.S ".../MySQL/MySQL Server*/include" doesn't work

(cherry picked from commit e2fb3bbd46)
2015-07-27 01:13:38 +01:00
DDuarte
57091cc5f1 CRLF to LF
Seriously....
2015-07-10 20:16:55 +01:00
DDuarte
1b2a67a1b5 Build/CMake: Fix finding MySQL install
(cherry picked from commit d4deb17a2f)
2015-06-29 14:09:48 +01:00
Duarte Duarte
a8d8976e2c Merge pull request #14723 from TrinityCore/findmysql-update
Update FindMySQL.cmake
(cherry picked from commit fb4a9823c4)
2015-06-26 00:52:52 +01:00
Shauren
79dd72ae70 Buildsystem: Removed handling for -DPREFIX shortcut for -DCMAKE_INSTALL_PREFIX cmake option, it an internal cmake variable since version 3.2
(cherry picked from commit 1987d3187d)
2015-06-01 00:35:02 +01:00
Shauren
2268f07a5f Buildsystem: Updated FindBoost macro, now finds versions 1.57 and 1.58 as well
(cherry picked from commit 5acc4b14aa)

Conflicts:
	cmake/macros/FindBoost.cmake

Signed-off-by: Naios <naios-dev@live.de>
2015-04-27 16:45:18 +02:00
leak
3761d24119 Core/CMake: Fix line endings 2015-04-21 13:26:30 +02:00
Naios
c386711972 CMake: Use source_groups to represent the source tree
* It let ide's (like vs) display the source tree.
* Disabled by default.
* Soft requirement is cmake >= 2.8.12 .
* Offers 2 modes: flat & hierarchical.
* For detailed description see #14471
* Thanks @click for help and advises.
* Closes #14471
2015-03-29 16:08:28 +02:00
Naios
2bd1c8541d Core/Updates: Add an automatic database update system. Automatically detects new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp
Make sure you re-run cmake, because boost::iostreams was added as dependency.
Maybe you need to install libboost-iostreams1.55-dev on unix as well.

Import every update manual until (included) those INSERT IGNORE updates for each database.

Thanks DDuarte and Shauren for your amazing ideas, help and advises.

In hope that nobody gets a "Your database structure is not up to date..." anymore ,-)

(cherry picked from commit 352012e531)
(cherry picked from commit 1f7f9feafc)

For 3.3.5:
* Synchronized ConfigureBoost.cmake with 6.x, libboost-filesystem1.55-dev also added as dependency!

Signed-off-by: Naios <naios-dev@live.de>
Signed-off-by: Nayd <dnpd.dd@gmail.com>
2015-03-21 20:54:54 +00:00