Commit Graph

202 Commits

Author SHA1 Message Date
jackpoz
c0f56fbfd8 Core/Misc: Add valgrind support for jemalloc
Set CMake option VALGRIND to add valgrind support to jemalloc. Set CMake parameter VALGRIND_INCLUDE_DIR to the valgrind include directory.

(cherry picked from commit 60a29f7614)
2015-06-26 03:30:11 +01:00
jackpoz
a8e7bfe05b Core/Misc: Disable G3D buffer pools if jemalloc is enabled
(cherry picked from commit d78eae1eaf)
2015-06-26 03:23:21 +01:00
Duarte Duarte
fb4a9823c4 Merge pull request #14723 from TrinityCore/findmysql-update
Update FindMySQL.cmake
2015-06-02 14:13:56 +01:00
Shauren
1987d3187d Buildsystem: Removed handling for -DPREFIX shortcut for -DCMAKE_INSTALL_PREFIX cmake option, it an internal cmake variable since version 3.2 2015-05-29 22:29:16 +02:00
Duarte Duarte
0a2351ac44 Update FindMySQL.cmake
Replace hardcoded paths to C:/Program Files
2015-05-19 02:36:42 +01:00
Duarte Duarte
c31a6c0853 Update FindMySQL.cmake
Simplify path lookups of the MySQL installation on Windows
2015-05-19 02:32:23 +01:00
Jared Jones
af99d0a597 CMake OS X: Fixed Debug Mode for Xcode
On newer versions of Xcode, the preprocessor macro #DEBUG is not defined by default. In order to set the debug flag it has to be set manually. If this does not happen then in the "Common.h" file the preprocessor will assume that we are building under a release mode instead of the debug mode.
Ref: ad0cc83c84
2015-05-10 01:46:23 -05:00
Shauren
5acc4b14aa Buildsystem: Updated FindBoost macro, now finds versions 1.57 and 1.58 as well 2015-04-27 12:44:37 +02:00
Daniel M. Weeks
71ba35a6cd Fix indentation in unix cmake settings 2015-04-15 19:20:26 +02:00
Naios
ed4722b6e6 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

(cherry picked from commit c386711972)

Conflicts:
	src/server/authserver/CMakeLists.txt
2015-03-29 16:13:22 +02:00
Naios
352012e531 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 ,-)

Signed-off-by: Naios <naios-dev@live.de>
Signed-off-by: Nayd <dnpd.dd@gmail.com>
2015-03-21 14:09:38 +00:00
Guillaume Belz
9ffeb58d09 FindOpenSSL: fix detection of OpenSSL 1.0.2
Closes #14284
2015-03-08 05:23:45 +01:00
Shauren
4669f94018 Buildsystem/Genrev: Fixed revision generator not reading existing cmake cache variables 2015-02-22 20:51:25 +01:00
leak
f9e5f216b7 CMake: Allow specifying the mysql location by environment variable. 2015-02-19 10:23:37 +01:00
Nayd
a87442be68 Tools: Remove mesh_extractor
mesh_extractor is not ready for production and it will be developed
in a different branch
2015-01-25 15:19:11 +00:00
Nayd
08a98c6237 Line ending fix, sorry. 2015-01-19 00:07:10 +00:00
Shauren
b7f254db3d Buildsystem/MSVC: Disabled C4351: new behavior: elements of array 'x' will be default initialized for all builds, even when using WITH_WARNINGS 2015-01-06 14:25:23 +01:00
Vincent-Michael
ab90f74486 Update copyright note for 2015
Happy new year
2015-01-01 00:28:09 +01:00
Duarte Duarte
cd0372ce7b CMake: Fix typo in MSVC_EXPECTED_VERSION
Thanks @Aridev

Closes #13820
2014-12-30 16:50:30 +00:00
Nayd
56a665ccf3 CMake: Require VS 2013 Update 3
Update 4 (includes 3) can be downloaded at http://www.microsoft.com/en-us/download/details.aspx?id=44921

Closes #13813
2014-12-29 20:55:53 +00:00
Nayd
702f774a49 CMake: Ignore MSVC warning C4351
new behavior: elements of array 'array' will be default initialized

"If you want the new behavior, which is likely, because the array was explicitly added to the constructor's member initialization list, use the warning pragma to disable the warning. The new behavior should be fine for most users."
2014-12-28 21:22:57 +00:00
Nayd
7e6dadfea6 CMake/FindBoost: Fix policy CMP0054 warning (added in 3.1) 2014-11-14 00:48:38 +00:00
DDuarte
1034b4d460 Build/CMake: Use BOOST_NO_SCOPED_ENUMS if Boost version is less than 1.51
http://www.boost.org/doc/libs/1_57_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.boost_deprecated_macros
2014-11-11 18:26:25 +00:00
DDuarte
90c53e8c84 Core: Nuke authserver
It has been replaced by bnetserver since grunt was deprecated
2014-11-10 20:57:39 +00:00
DDuarte
62759880a7 CMake: Improve FindZMQ on Windows
When ZMQ version is not found in the registry it will enumerate possible .lib names and try to find those
2014-11-04 14:19:51 +00:00
DDuarte
386b97c485 Build: Fixup 428d510f76. Use check_cxx_source_compiles instead of try_compile 2014-10-30 01:57:54 +00:00
Duarte Duarte
6156a541f5 Merge pull request #13478 from bloerwald/cmake/use_CMAKE_BUILD_TYPE_with_clang_as_well
cmake: use $CMAKE_BUILD_TYPE instead of $CONFIGURATION as BUILD_DIRECTIVE
2014-10-30 00:18:01 +00:00
bloerwald
428d510f76 Build: Support boost versions compiled in C++11 as well as C++03 mode
Issues related to boost::filesystem and scoped enums
2014-10-30 00:17:41 +00:00
Bernd Lörwald
06391e5e9d cmake: use CMAKE_BUILD_TYPE instead of CONFIGURATION as BUILD_DIRECTIVE 2014-10-29 23:59:28 +01:00
bloerwald
ff0f84e3aa Tools/connection_patcher: remove c# code, add c++ code with minor modification, move to tools, integrate into cmake
note: no longer downloads nonexistent modules
note: now throws on not finding patterns
new dependency: boost.filesystem

Closes #13471
2014-10-28 18:33:19 +00:00
Bernd Lörwald
dfe0bbd0e8 cmake: platform: also detect clang by C_COMPILER_ID: C_COMPILER may vary 2014-10-23 00:08:46 +02:00
jackpoz
ced4fc6347 Build/CMake: CMake options cleanup after febb26d4b7 2014-10-19 12:15:30 +02:00
Shauren
1d1b3269c1 Buildsystem/CMake: Fixed FindZMQ macro on x86 Windows 2014-10-18 14:57:49 +02:00
Shauren
55e7879aec Buildsystem/CMake: Fixed FindZMQ macro on x86 Windows 2014-10-18 14:05:55 +02:00
Shauren
f773a9e053 Core: Implemented IPC (Inter-process communication) between worldserver and bnetserver using ZeroMQ library.
* Implemented ToonReady and ToonLoggedOut battle.net packets
2014-10-17 22:48:06 +02:00
Shauren
48b7e0c60c Buildsystem/MSVC: Removed /SAFESEH linker option from x86 debug builds as it doesn't make sense in debug builds and interferes with Edit and Continue
Closes #13233
2014-09-28 12:03:34 +02:00
jackpoz
a209fc30ff Core/Misc: Avoid Helgrind reporting libstdc++ false positive race conditions 2014-09-20 22:35:13 +02:00
Vincent-Michael
bd522a3853 Core: Fix build for msvc14 2014-09-20 05:39:26 +02:00
Duarte Duarte
b5397a9748 CMake: Add a few more MySQL search paths to FindMySQL.cmake, including x86
Ref https://github.com/TrinityCore/TrinityCore/issues/12969#issuecomment-54322244
2014-09-03 17:38:11 +01:00
Vincent-Michael
a52135f276 Core: Remove whitespace 2014-08-27 23:22:16 +02:00
Shauren
febb26d4b7 Core/Deps: MySQL sources out.
Windows users are now required to download and install mysql server with headers and libraries
2014-08-26 18:45:54 +02:00
Jared P. Jones
11ecd851a1 Core/Misc: Silenced 500 OS X Warnings and removed deprecated finite() method.
*Mac OS X fires off over 200 warnings related to gsoap about the deprecated register method. CMake has been patched to remove this warning.
*Updated all occurences of finite() to std::isfinite. The method finite() is not standardized by anyone aside from BSD. std::isfinite() however is standarized by C++
*Removed -ncurses and -pthread from OS X compilation. Now that we use Boost and C++11 there is no longer a need for pthread in OS X. All it does is throw a warning. However, ncurses isn't needed either as it's built into the OS X SDK and linked by default.

Note: There are only 5 remaining warnings left when compiling on OS X. I did not attempt to fix these as they were related to 3rd party libraries statically linked into the code. The 5 warnings left are all related to unused variables.
2014-07-23 17:30:45 -05:00
Shauren
99dd35da14 Buildsystem/MSVC: Disable C4512 warning 2014-07-19 13:31:17 +02:00
Shauren
0a3d1a35cd Buildsystem: Removed debugging message from cmake output 2014-07-17 15:43:39 +02:00
leak
e2fed64550 Update related files to lowered Boost version requirement 2014-07-16 18:42:17 +02:00
Chaplain
68398a559e [Auth\Worldserver] Use boost to load console arguments. (Added a few style changes and cmake fix)
Conflicts:
	src/server/worldserver/Main.cpp
2014-07-15 18:15:55 +02:00
Subv
9ccce98661 Remove the need of manually declaring BOOST_ROOT in Linux systems if Boost was installed to the default locations 2014-07-12 16:27:55 -05:00
Shauren
302169fd12 Buildsystem: Lowered required boost version to 1.49 2014-07-11 22:28:28 +02:00
Subv
9872162835 Added a missing definition 2014-07-06 17:41:47 -05:00
Subv
77caf33deb Removed some unneeded boost dependencies.
Ensure that the correct packet sizes are read in the authserver.
Added some try catch to the authserver to deal with boost exceptions (this part is not finished)
2014-07-06 17:04:42 -05:00