Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Samuel Thibault
mariadb-10.1
Commits
112c88f1
Commit
112c88f1
authored
Aug 28, 2014
by
Otto Kekäläinen
Browse files
Imported Upstream version 10.0.13
parent
49840c71
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
BUILD/cleanup
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2003 MySQL AB
#
#
Use is subject to license terms
# 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.
...
...
BUILD/compile-alpha
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2000, 2002 MySQL AB
#
#
Use is subject to license terms
# 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.
...
...
BUILD/compile-amd64-debug-max-no-ndb
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2005, 2006 MySQL AB
#
#
Use is subject to license terms
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; version 2
...
...
BUILD/compile-amd64-gcov
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2007 MySQL AB
#
#
Use is subject to license terms
# 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.
...
...
BUILD/compile-amd64-gprof
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2007 MySQL AB
#
#
Use is subject to license terms
# 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.
...
...
BUILD/compile-amd64-max-sci
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2007 MySQL AB
#
#
Use is subject to license terms
# 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.
...
...
BUILD/compile-pentium-cybozu
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2005 MySQL AB
#
#
Use is subject to license terms
# 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.
...
...
BUILD/compile-pentium-gcov
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2000, 2007 MySQL AB
#
#
Use is subject to license terms
# 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.
...
...
BUILD/compile-pentium-gprof
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2001, 2007 MySQL AB
#
#
Use is subject to license terms
# 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.
...
...
BUILD/compile-pentium-icc
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2005 MySQL AB
#
# Use is subject to license terms
#
# 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.
...
...
BUILD/compile-pentium-icc-yassl
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2005 MySQL AB
#
# Use is subject to license terms
#
# 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.
...
...
BUILD/compile-pentium-myodbc
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2000 MySQL AB
#
# Use is subject to license terms
#
# 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.
...
...
BUILD/compile-pentium64-gcov
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2007 MySQL AB
# Use is subject to license terms
#
# 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
...
...
BUILD/compile-pentium64-gprof
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2007 MySQL AB
# Use is subject to license terms
#
# 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
...
...
BUILD/compile-pentium64-max
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2007 MySQL AB
# Use is subject to license terms
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
...
...
BUILD/compile-pentium64-max-sci
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2007 MySQL AB
#
# Use is subject to license terms
#
# 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.
...
...
BUILD/compile-ppc
View file @
112c88f1
#! /bin/sh
# Copyright (C) 2004 MySQL AB
#
# Use is subject to license terms
#
# 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.
...
...
BUILD/compile-solaris-amd64-debug
View file @
112c88f1
#!/bin/sh
# Copyright (C) 2007 MySQL AB
#
# Use is subject to license terms
#
# 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.
...
...
CMakeLists.txt
View file @
112c88f1
# Copyright (c) 2006, 201
3
, Oracle and/or its affiliates.
# Copyright (c) 2008, 201
3
, Monty Program Ab
# Copyright (c) 2006, 201
4
, Oracle and/or its affiliates.
# Copyright (c) 2008, 201
4
, Monty Program Ab
#
# 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
...
...
@@ -26,6 +26,14 @@ IF(POLICY CMP0022)
CMAKE_POLICY
(
SET CMP0022 OLD
)
ENDIF
()
# We use the LOCATION target property (CMP0026)
# and get_target_property() for non-existent targets (CMP0045)
IF
(
CMAKE_VERSION VERSION_EQUAL
"3.0.0"
OR
CMAKE_VERSION VERSION_GREATER
"3.0.0"
)
CMAKE_POLICY
(
SET CMP0026 OLD
)
CMAKE_POLICY
(
SET CMP0045 OLD
)
ENDIF
()
MESSAGE
(
STATUS
"Running cmake version
${
CMAKE_VERSION
}
"
)
SET
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
CMAKE_SOURCE_DIR
}
/cmake
)
...
...
@@ -61,6 +69,7 @@ IF(UNIX AND NOT APPLE)
# Compiling with PIC speeds up embedded build, on PIC sensitive systems
# Predefine it to OFF in release builds, because of the performance penalty
SET
(
WITH_PIC
${
WITH_PIC_DEFAULT
}
CACHE BOOL
"Compile with PIC."
)
MARK_AS_ADVANCED
(
WITH_PIC
)
ENDIF
()
# Optionally set project name, e.g.
...
...
@@ -265,6 +274,12 @@ IF (ENABLE_GCOV AND NOT WIN32 AND NOT APPLE)
SET
(
CMAKE_EXE_LINKER_FLAGS_DEBUG
"
${
CMAKE_EXE_LINKER_FLAGS_DEBUG
}
-fprofile-arcs -ftest-coverage -lgcov"
)
ENDIF
()
MY_CHECK_C_COMPILER_FLAG
(
-ggdb3 HAVE_GGDB3
)
IF
(
HAVE_GGDB3
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-ggdb3"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-ggdb3"
)
ENDIF
(
HAVE_GGDB3
)
OPTION
(
ENABLED_LOCAL_INFILE
"If we should should enable LOAD DATA LOCAL by default"
${
IF_WIN
}
)
MARK_AS_ADVANCED
(
ENABLED_LOCAL_INFILE
)
...
...
@@ -298,16 +313,11 @@ ENDIF()
# safemalloc can be enabled and disabled independently
SET
(
WITH_SAFEMALLOC
"AUTO"
CACHE STRING
"Use safemalloc memory debugger. Will result in slower execution. Options are: ON OFF AUTO."
)
# force -DUSE_MYSYS_NEW unless already done by HAVE_CXX_NEW
IF
(
HAVE_CXX_NEW
)
SET
(
DUSE_MYSYS_NEW
"-DUSE_MYSYS_NEW"
)
ENDIF
()
IF
(
WITH_SAFEMALLOC MATCHES
"ON"
)
ADD_DEFINITIONS
(
-DSAFEMALLOC
${
DUSE_MYSYS_NEW
}
)
ADD_DEFINITIONS
(
-DSAFEMALLOC
)
ELSEIF
(
WITH_SAFEMALLOC MATCHES
"AUTO"
AND NOT WIN32 AND NOT WITH_VALGRIND
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC
${
DUSE_MYSYS_NEW
}
"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC"
)
ENDIF
()
# Set commonly used variables
...
...
@@ -331,19 +341,25 @@ IF(INSTALL_SYSCONFDIR)
SET
(
DEFAULT_SYSCONFDIR
"
${
INSTALL_SYSCONFDIR
}
"
)
ENDIF
()
OPTION
(
TMPDIR
"PATH to MySQL TMP dir. If unspecified, defaults to P_tmpdir in <stdio.h>"
OFF
)
IF
(
TMPDIR
)
SET
(
TMPDIR
""
CACHE PATH
"PATH to MySQL TMP dir. Defaults to the P_tmpdir macro in <stdio.h>"
)
IF
(
TMPDIR STREQUAL
""
)
# Do not quote it, to refer to the P_tmpdir macro.
SET
(
DEFAULT_TMPDIR
"P_tmpdir"
)
ELSE
()
# Quote it, to make it a const char string.
SET
(
DEFAULT_TMPDIR
"
\"
${
TMPDIR
}
\"
"
)
ELSE
()
# Do not quote it, to refer to the P_tmpdir macro in <stdio.h>.
SET
(
DEFAULT_TMPDIR
"P_tmpdir"
)
ENDIF
()
# Run platform tests
INCLUDE
(
configure.cmake
)
# force -DUSE_MYSYS_NEW unless already done by HAVE_CXX_NEW
IF
(
NOT HAVE_CXX_NEW
)
ADD_DEFINITIONS
(
-DUSE_MYSYS_NEW
)
ENDIF
()
# Find header files from the bundled libraries
# (jemalloc, yassl, readline, pcre, etc)
# before the ones installed in the system
...
...
@@ -380,6 +396,11 @@ ELSEIF(MYSQL_MAINTAINER_MODE MATCHES "AUTO")
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
MY_MAINTAINER_CXX_WARNINGS
}
${
CMAKE_CXX_FLAGS_DEBUG
}
"
)
ENDIF
()
IF
(
CMAKE_CROSSCOMPILING
)
SET
(
IMPORT_EXECUTABLES
"IMPORTFILE-NOTFOUND"
CACHE FILEPATH
"Path to import_executables.cmake from a native build"
)
INCLUDE
(
${
IMPORT_EXECUTABLES
}
)
ENDIF
()
IF
(
WITH_UNIT_TESTS
)
ENABLE_TESTING
()
ADD_SUBDIRECTORY
(
unittest/mytap
)
...
...
@@ -387,11 +408,13 @@ IF(WITH_UNIT_TESTS)
ADD_SUBDIRECTORY
(
unittest/examples
)
ADD_SUBDIRECTORY
(
unittest/mysys
)
ADD_SUBDIRECTORY
(
unittest/my_decimal
)
ADD_SUBDIRECTORY
(
unittest/sql
)
IF
(
NOT WITHOUT_SERVER
)
ADD_SUBDIRECTORY
(
unittest/sql
)
ENDIF
()
ENDIF
()
IF
(
NOT WITHOUT_SERVER
)
SET
(
MYSQLD_STATIC_PLUGIN_LIBS
""
CACHE INTERNAL
""
)
SET
(
MYSQLD_STATIC_PLUGIN_LIBS
""
CACHE INTERNAL
""
)
# Add storage engines and plugins.
CONFIGURE_PLUGINS
()
ENDIF
()
...
...
@@ -426,7 +449,6 @@ IF(NOT WITHOUT_SERVER)
IF
(
EXISTS
${
CMAKE_SOURCE_DIR
}
/internal/CMakeLists.txt
)
ADD_SUBDIRECTORY
(
internal
)
ENDIF
()
ADD_SUBDIRECTORY
(
packaging/rpm-uln
)
ADD_SUBDIRECTORY
(
packaging/rpm-oel
)
ENDIF
()
...
...
@@ -443,6 +465,13 @@ IF(WIN32)
ENDIF
()
ADD_SUBDIRECTORY
(
packaging/solaris
)
IF
(
NOT CMAKE_CROSSCOMPILING
)
SET
(
EXPORTED comp_err comp_sql factorial gen_lex_hash
)
# minimal target to build only binaries for export
ADD_CUSTOM_TARGET
(
import_executables DEPENDS
${
EXPORTED
}
)
EXPORT
(
TARGETS
${
EXPORTED
}
FILE
${
CMAKE_BINARY_DIR
}
/import_executables.cmake
)
ENDIF
()
CONFIGURE_FILE
(
config.h.cmake
${
CMAKE_BINARY_DIR
}
/include/my_config.h
)
CONFIGURE_FILE
(
config.h.cmake
${
CMAKE_BINARY_DIR
}
/include/config.h
)
CONFIGURE_FILE
(
${
CMAKE_SOURCE_DIR
}
/include/mysql_version.h.in
...
...
@@ -474,7 +503,7 @@ ADD_CUSTOM_TARGET(INFO_BIN ALL
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
INSTALL_DOCUMENTATION
(
README
TODO
CREDITS COPYING COPYING.LESSER
INSTALL_DOCUMENTATION
(
README CREDITS COPYING COPYING.LESSER
EXCEPTIONS-CLIENT
COMPONENT Readme
)
INSTALL_DOCUMENTATION
(
${
CMAKE_BINARY_DIR
}
/Docs/INFO_SRC
${
CMAKE_BINARY_DIR
}
/Docs/INFO_BIN
)
...
...
Docs/INFO_SRC
View file @
112c88f1
revision-id: sergii@pisem.net-20140
329163246-mzfkzyodua370lx5
date: 2014-0
3-29
17:
32
:4
6
+0
1
00
build-date: 2014-0
3-30 19:56
:5
4
+0200
revno: 4
140
revision-id: sergii@pisem.net-20140
808155845-jiz321iz2o2bhn8e
date: 2014-0
8-08
17:
58
:4
5
+0
2
00
build-date: 2014-0
8-09 00:13
:5
0
+0200
revno: 4
346
branch-nick: 10.0
MySQL source 10.0.1
0
MySQL source 10.0.1
3
Prev
1
2
3
4
5
…
50
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment