201 Commits

Author SHA1 Message Date
Markus Makela
081bacdc64 Switched to MySQL client library headers for MaxScale
The include directories previously used by MaxScale were from the embedded
library. All parts of MaxScale apart from the query classifier now use
the client libraries.
2016-02-02 14:04:59 +02:00
Johan Wikman
7e36e1cbb1 Link against Connector-C.
Now, qc_mysqlembedded is linked against MySQL's embedded library,
and MaxScale itself against Connector-C.

So, in order to build MaxScale, Connector-C must be installed.
This has been tested with Connector-C 2.2.1.

The build variable MYSQLCLIENT_LIBRARIES is no longer used.
2016-01-29 16:50:31 +02:00
Johan Wikman
5e5a522d27 Rename EMBEDDED_LIB to MYSQL_EMBEDDED_LIB
Makes it clearer what embedded lib we are talking about.
2016-01-29 16:32:01 +02:00
Markus Makela
59031adba6 MM monitor is built by default
Previously the mmmon module was not built unless -DBUILD_MMMON=Y was added to
the cmake command. The module is now a part of the default build.
2016-01-28 13:17:07 +02:00
Johan Wikman
608924beba Build pcre2 as PIC.
If pcre2 is to be included in a shared library, it needs to be PIC.
2016-01-22 15:09:50 +02:00
Johan Wikman
c1a906a60d Remove beta status.
Remove all references to beta. This is now 1.3.0.
2016-01-19 13:59:10 +02:00
Markus Makela
40cfe1a864 Merge branch 'release-1.3.0' into develop 2016-01-08 11:14:02 +02:00
Markus Makela
080a9ebc9d PCRE2 is now statically linked
Since the PCRE2 library was always going to be a part of MaxScale, there was
no real reason to have it as a shared library apart from smaller binaries.
2015-12-29 10:09:38 +02:00
Markus Makela
e305a88e0e Enabled CPACK_DEBIAN_PACKAGE_SHLIBDEPS again
The removal of this from the DEB packages caused no dependencies to be generated.
2015-12-29 10:09:38 +02:00
Johan Wikman
acf80832ce Merge branch 'release-1.3.0' into develop
To get all fixes made to release-1.3.0 also into develop.
2015-12-14 14:09:51 +02:00
Johan Wikman
24abdb36b4 Update MAXSCALE_VERSION 2015-12-11 11:27:18 +02:00
Markus Makela
dc64b12077 Fixed PCRE2 libraries missing symbolic link to library
The libpcre2-8.so was not a symbolic link but an actual library.
2015-12-11 06:43:16 +02:00
Markus Makela
03b0f87257 Added MaxScale version numbers into the CMake cache
This will allow custom version numbers without modifying the source code.
2015-12-03 16:16:56 +02:00
Markus Makela
5fc4f4913b Removed dpkg-shlibdeps part from DEB package building
The dpkg-shlibdebs was causing the Debian based systems to fail when the package
was being made. This makes the package builds work again.
2015-12-03 15:00:18 +02:00
Markus Makela
350584ee28 Removed dpkg-shlibdeps part from DEB package building
The dpkg-shlibdebs was causing the Debian based systems to fail when the package
was being made. This makes the package builds work again.
2015-12-02 18:58:06 +02:00
Markus Makela
ce20c638fc Cleaned up PCRE2 build process
Switched to ExternalProject CMake module to make the inclusion of external CMake
projects easier. This removes the rebuilding of the pcre2 libraries each time
the project is reconfigured.
2015-11-30 10:46:08 +02:00
Markus Makela
f441f72b75 Added support for librabbitmq-c 0.6.0 and newer
The 0.6.0 version of librabbitmq-c added two parameters to amqp_exchange_declare
which allow auto-deleted and internal exchanges. This change requires more
advanced version detection so that code could be conditionally compiled for
newer versions of the library.
2015-11-27 12:21:19 +02:00
Markus Makela
443bbe73d2 Mqfilter is built if possible
The mqfilter was not built by default even though it should have been. This has
been fixed but the filter is built only if librabbitmq is found. This was done
to avoid having the librabbitmq and its development headers as a hard
dependency.
2015-11-26 09:28:27 +02:00
Markus Makela
d7e685e2fe Increased version number.
MaxScale version number set to 1.3.0-1.
2015-11-23 13:06:39 +02:00
Markus Makela
23b2ce004b Added support for MariaDB 10.1 embedded library
The code used in the query classifier was not compatible with 10.1 version
of MariaDB and needed to be fine tuned in order for it to work with all
supported versions of MariaDB.
2015-11-23 11:41:05 +02:00
Markus Makela
069297f47e Added BUILD_MMMON to CMake cache. 2015-11-17 14:16:32 +02:00
Markus Makela
b22d40b06b Fixed PCRE2 beng built when CMake is configured
The bundled PCRE2 library will be built as a separate target and configuring
CMake no longer builds it. Instead, it will only be built when it is out of date.
This requires all targets to declare that they depend on the pcre2 target in
order for it to be built.
2015-11-16 13:59:47 +02:00
Markus Makela
ee29e85016 Added bundled PCRE2 library. 2015-10-27 09:24:34 +02:00
Markus Makela
0134fdc397 Merge branch 'release-1.2' into develop
Conflicts:
	server/core/dbusers.c
2015-07-13 15:52:36 +03:00
Markus Makela
38b5166543 fixed double definition of CMake variables. 2015-07-13 13:03:15 +03:00
Markus Makela
e03dcc07c3 Enabled C99 compiler options 2015-07-11 17:13:00 +03:00
Markus Makela
f095ec353c Fixed config file being installed into /usr/etc instead of /etc. 2015-07-10 21:31:33 +03:00
Markus Makela
b0e98bc420 Added template cnf file to /etc and renamed folders. 2015-07-09 14:41:23 +03:00
Markus Makela
309b8bba97 Added missing --piddir option to testall maxscale invokation. 2015-07-04 09:07:37 +03:00
Markus Makela
2c3c856ea1 Added option for C99 builds. 2015-06-29 16:01:56 +03:00
Markus Makela
22053cfafb Updated MaxScale version to 1.2.0. 2015-06-26 10:36:27 +03:00
Markus Makela
4cbcc4ecb6 Removed old unused cmake variables, updated documentation and fixed testall suite. 2015-05-26 15:12:29 +03:00
Markus Makela
5f076b81d4 Merge branch 'install_dir_change' into develop
Conflicts:
	CMakeLists.txt
	Documentation/Tutorials/Administration-Tutorial.md
	log_manager/CMakeLists.txt
	server/core/CMakeLists.txt
	server/core/gateway.c
	server/core/maxkeys.c
	server/core/maxpasswd.c
	server/modules/filter/test/CMakeLists.txt
	server/modules/routing/CMakeLists.txt
2015-05-26 13:34:39 +03:00
Markus Makela
2b457bf372 Updated init.d and systemd scripts. 2015-05-11 06:19:06 +03:00
Markus Makela
88da984ea3 Added even more clarification to the non-release warning in FindMySQL.cmake 2015-04-30 11:42:56 +03:00
Markus Makela
31be62774f Added a more descriptive warning when building MaxScale with source built MariaDB server. 2015-04-30 11:39:24 +03:00
Markus Makela
5394b4d0fa Changed standard installation directory from /usr/local/mariadb-maxscale to /usr/local. 2015-04-29 05:42:58 +03:00
Markus Makela
71531cde3e Updated package installation and started documentation update. 2015-04-28 11:09:49 +03:00
Markus Makela
e681d18fdd Split packaging to RPM and DEB cmake files. 2015-04-27 23:11:49 +03:00
Markus Makela
bbcecc0db5 Changed all MaxScale.cnf code references to maxscale.cnf 2015-04-27 13:44:36 +03:00
Markus Makela
9eeec2e9d3 Added FindJemalloc.cmake 2015-04-27 04:52:29 +03:00
Markus Makela
c500d23d04 Moved default file search paths to gwdirs.h which is configured by CMake from gwdirs.h.in. 2015-04-27 04:48:50 +03:00
Markus Makela
17a7b2addb Updated more variables. 2015-04-26 20:08:27 +03:00
Markus Makela
89b75cb510 Added FindJemalloc.cmake 2015-04-26 11:41:02 +03:00
Markus Makela
ed426ca30d Updated packaging install layout, moved some cmake files around. 2015-04-26 06:35:36 +03:00
Markus Makela
b2cfa674b9 Added support for tcmalloc usage. 2015-04-20 17:52:50 +03:00
Markus Makela
254b1bf05d Added FindPCRE.cmake which is used by the FindMySQL.cmake. 2015-04-16 18:11:29 +03:00
Markus Makela
e9aa692acd Added the platform check back and added linker flags for PCRE if the embedded library does not have them. 2015-04-03 22:14:51 +03:00
Markus Makela
15262f3fbf Added new Make target for testing MaxScale's core parts.
This target doesn't need a running MaxScale and only executes core, log_manager and query_classifier unit tests.
2015-03-19 11:56:40 +02:00
Markus Makela
bd10215a84 Added Make targets for PDF and HTML generation. 2015-02-09 19:52:11 +02:00