forked from mysql/mysql-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WL#10328 - mysql-trunk-meb-wl10183 changes in Server Trunk
First push of MySQL Enterprise Backup (MEB). (cherry picked from commit d2d5cc33e6d370b5df943e42ec0558cf3510bbd4)
- Loading branch information
Ingo Struewing
authored and
Ingo Struewing
committed
Oct 20, 2017
1 parent
dd53a7c
commit 8ee4e8d
Showing
318 changed files
with
62,244 additions
and
1,086 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; version 2 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
# cmake -DWITH_LZMA=system|bundled | ||
# bundled is the default | ||
|
||
MACRO (FIND_SYSTEM_LZMA) | ||
FIND_PATH(PATH_TO_LZMA NAMES lzma/lzma.h) | ||
FIND_LIBRARY(LZMA_SYSTEM_LIBRARY NAMES lzma) | ||
IF (PATH_TO_LZMA AND LZMA_SYSTEM_LIBRARY) | ||
SET(SYSTEM_LZMA_FOUND 1) | ||
SET(LZMA_INCLUDE_DIR ${PATH_TO_LZMA}) | ||
SET(LZMA_LIBRARY ${LZMA_SYSTEM_LIBRARY}) | ||
MESSAGE(STATUS "LZMA_INCLUDE_DIR ${LZMA_INCLUDE_DIR}") | ||
MESSAGE(STATUS "LZMA_LIBRARY ${LZMA_LIBRARY}") | ||
ENDIF() | ||
ENDMACRO() | ||
|
||
MACRO (MYSQL_USE_BUNDLED_LZMA) | ||
SET(BUILD_BUNDLED_LZMA 1) | ||
SET(LZMA_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/extra/lzma) | ||
SET(LZMA_LIBRARY lzma_lib) | ||
MESSAGE(STATUS "LZMA_INCLUDE_DIR ${LZMA_INCLUDE_DIR}") | ||
MESSAGE(STATUS "LZMA_LIBRARY ${LZMA_LIBRARY}") | ||
ENDMACRO() | ||
|
||
IF (NOT WITH_LZMA) | ||
SET(WITH_LZMA "bundled" CACHE STRING "By default use bundled lzma library") | ||
ENDIF() | ||
|
||
MACRO (MYSQL_CHECK_LZMA) | ||
IF (WITH_LZMA STREQUAL "bundled") | ||
MYSQL_USE_BUNDLED_LZMA() | ||
ELSEIF(WITH_LZMA STREQUAL "system") | ||
FIND_SYSTEM_LZMA() | ||
IF (NOT SYSTEM_LZMA_FOUND) | ||
MESSAGE(FATAL_ERROR "Cannot find system lzma libraries.") | ||
ENDIF() | ||
ELSE() | ||
MESSAGE(FATAL_ERROR "WITH_LZMA must be bundled or system") | ||
ENDIF() | ||
ENDMACRO() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; version 2 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
# cmake -DWITH_RE2=system|bundled | ||
# bundled is the default | ||
|
||
MACRO (FIND_SYSTEM_RE2) | ||
FIND_PATH(PATH_TO_RE2 NAMES re2/re2.h) | ||
FIND_LIBRARY(RE2_SYSTEM_LIBRARY NAMES re2) | ||
IF (PATH_TO_RE2 AND RE2_SYSTEM_LIBRARY) | ||
SET(SYSTEM_RE2_FOUND 1) | ||
SET(RE2_INCLUDE_DIR ${PATH_TO_RE2}) | ||
SET(RE2_LIBRARY ${RE2_SYSTEM_LIBRARY}) | ||
MESSAGE(STATUS "RE2_INCLUDE_DIR ${RE2_INCLUDE_DIR}") | ||
MESSAGE(STATUS "RE2_LIBRARY ${RE2_LIBRARY}") | ||
ENDIF() | ||
ENDMACRO() | ||
|
||
MACRO (MYSQL_USE_BUNDLED_RE2) | ||
SET(BUILD_BUNDLED_RE2 1) | ||
SET(RE2_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/extra/re2) | ||
SET(RE2_LIBRARY re2_lib) | ||
ENDMACRO() | ||
|
||
IF (NOT WITH_RE2) | ||
SET(WITH_RE2 "bundled" CACHE STRING "By default use bundled re2 library") | ||
ENDIF() | ||
|
||
MACRO (MYSQL_CHECK_RE2) | ||
IF (WITH_RE2 STREQUAL "bundled") | ||
MYSQL_USE_BUNDLED_RE2() | ||
ELSEIF(WITH_RE2 STREQUAL "system") | ||
FIND_SYSTEM_RE2() | ||
IF (NOT SYSTEM_RE2_FOUND) | ||
MESSAGE(FATAL_ERROR "Cannot find system re2 libraries.") | ||
ENDIF() | ||
ELSE() | ||
MESSAGE(FATAL_ERROR "WITH_RE2 must be bundled or system") | ||
ENDIF() | ||
ENDMACRO() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; version 2 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
# cmake -DWITH_SASL=system|path | ||
# system is the default | ||
# | ||
# Sets SASL_LIBRARY. If not found, SASL_LIBRARY="". | ||
|
||
MACRO (FIND_SYSTEM_SASL) | ||
FIND_LIBRARY(SASL_SYSTEM_LIBRARY NAMES "sasl2" "sasl") | ||
IF (SASL_SYSTEM_LIBRARY) | ||
SET(SYSTEM_SASL_FOUND 1) | ||
SET(SASL_LIBRARY ${SASL_SYSTEM_LIBRARY}) | ||
MESSAGE(STATUS "SASL_LIBRARY ${SASL_LIBRARY}") | ||
ENDIF() | ||
ENDMACRO() | ||
|
||
IF (NOT WITH_SASL) | ||
SET(WITH_SASL "system" CACHE STRING "By default use system sasl library") | ||
ENDIF() | ||
|
||
MACRO (MYSQL_CHECK_SASL) | ||
IF (NOT WITH_SASL OR WITH_SASL STREQUAL "system") | ||
FIND_SYSTEM_SASL() | ||
IF (NOT SYSTEM_SASL_FOUND) | ||
MESSAGE(STATUS "Cannot find system sasl libraries.") | ||
SET(SASL_LIBRARY "") | ||
ENDIF() | ||
ELSE() | ||
FIND_LIBRARY(SASL_LIBRARY | ||
NAMES "sasl2" "sasl" | ||
PATHS ${WITH_SASL} ${WITH_SASL}/lib | ||
NO_DEFAULT_PATH | ||
NO_CMAKE_ENVIRONMENT_PATH | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
IF (NOT SASL_LIBRARY) | ||
MESSAGE(STATUS "Cannot find sasl libraries in ${WITH_SASL}.") | ||
SET(SASL_LIBRARY "") | ||
ELSE() | ||
MESSAGE(STATUS "SASL_LIBRARY ${SASL_LIBRARY}") | ||
ENDIF() | ||
ENDIF() | ||
ENDMACRO() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.