Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9503a8e2
Commit
9503a8e2
authored
Jul 19, 2010
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge from mysql-trunk.
Conflicts: - scripts/CMakeLists.txt
parents
83c154dc
226852ea
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
260 additions
and
76 deletions
+260
-76
CMakeLists.txt
CMakeLists.txt
+2
-2
cmake/build_configurations/mysql_release.cmake
cmake/build_configurations/mysql_release.cmake
+96
-45
cmake/cpack_source_ignore_files.cmake
cmake/cpack_source_ignore_files.cmake
+1
-0
cmake/make_dist.cmake.in
cmake/make_dist.cmake.in
+2
-0
cmake/os/AIX.cmake
cmake/os/AIX.cmake
+2
-2
cmake/os/WindowsCache.cmake
cmake/os/WindowsCache.cmake
+0
-1
cmake/ssl.cmake
cmake/ssl.cmake
+2
-2
config.h.cmake
config.h.cmake
+39
-0
configure.cmake
configure.cmake
+42
-12
extra/yassl/CMakeLists.txt
extra/yassl/CMakeLists.txt
+1
-1
extra/yassl/taocrypt/CMakeLists.txt
extra/yassl/taocrypt/CMakeLists.txt
+1
-0
packaging/WiX/CPackWixConfig.cmake
packaging/WiX/CPackWixConfig.cmake
+5
-2
packaging/WiX/create_msi.cmake.in
packaging/WiX/create_msi.cmake.in
+1
-0
scripts/CMakeLists.txt
scripts/CMakeLists.txt
+41
-7
scripts/mysql_config.sh
scripts/mysql_config.sh
+2
-0
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+23
-2
No files found.
CMakeLists.txt
View file @
9503a8e2
...
@@ -165,9 +165,9 @@ IF(WITH_ERROR_INJECT)
...
@@ -165,9 +165,9 @@ IF(WITH_ERROR_INJECT)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DERROR_INJECT_SUPPORT"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DERROR_INJECT_SUPPORT"
)
ENDIF
()
ENDIF
()
OPTION
(
ENABLE_LOCAL_INFILE
OPTION
(
ENABLE
D
_LOCAL_INFILE
"If we should should enable LOAD DATA LOCAL by default"
${
IF_WIN
}
)
"If we should should enable LOAD DATA LOCAL by default"
${
IF_WIN
}
)
MARK_AS_ADVANCED
(
ENABLE_LOCAL_INFILE
)
MARK_AS_ADVANCED
(
ENABLE
D
_LOCAL_INFILE
)
OPTION
(
WITH_FAST_MUTEXES
"Compile with fast mutexes"
OFF
)
OPTION
(
WITH_FAST_MUTEXES
"Compile with fast mutexes"
OFF
)
MARK_AS_ADVANCED
(
WITH_FAST_MUTEXES
)
MARK_AS_ADVANCED
(
WITH_FAST_MUTEXES
)
...
...
cmake/build_configurations/mysql_release.cmake
View file @
9503a8e2
...
@@ -15,6 +15,18 @@
...
@@ -15,6 +15,18 @@
# This file includes build settings used for MySQL release
# This file includes build settings used for MySQL release
INCLUDE
(
CheckIncludeFiles
)
INCLUDE
(
CheckLibraryExists
)
INCLUDE
(
CheckTypeSize
)
# XXX package_name.cmake uses this too, move it somewhere global
CHECK_TYPE_SIZE
(
"void *"
SIZEOF_VOIDP
)
IF
(
SIZEOF_VOIDP EQUAL 4
)
SET
(
32BIT 1
)
ENDIF
()
IF
(
SIZEOF_VOIDP EQUAL 8
)
SET
(
64BIT 1
)
ENDIF
()
SET
(
FEATURE_SET
"community"
CACHE STRING
SET
(
FEATURE_SET
"community"
CACHE STRING
" Selection of features. Options are
" Selection of features. Options are
...
@@ -76,15 +88,14 @@ IF(FEATURE_SET)
...
@@ -76,15 +88,14 @@ IF(FEATURE_SET)
SET
(
WITH_
${
eng
}
_STORAGE_ENGINE OFF CACHE BOOL
""
)
SET
(
WITH_
${
eng
}
_STORAGE_ENGINE OFF CACHE BOOL
""
)
ELSE
()
ELSE
()
SET
(
WITH_
${
eng
}
_STORAGE_ENGINE ON CACHE BOOL
""
)
SET
(
WITH_
${
eng
}
_STORAGE_ENGINE ON CACHE BOOL
""
)
ENDIF
()
ENDIF
()
ENDFOREACH
()
ENDFOREACH
()
ENDIF
()
ENDIF
()
OPTION
(
ENABLE_LOCAL_INFILE
""
ON
)
OPTION
(
ENABLE
D
_LOCAL_INFILE
""
ON
)
SET
(
WITH_SSL bundled CACHE STRING
""
)
SET
(
WITH_SSL bundled CACHE STRING
""
)
SET
(
WITH_ZLIB bundled CACHE STRING
""
)
SET
(
WITH_ZLIB bundled CACHE STRING
""
)
IF
(
NOT COMPILATION_COMMENT
)
IF
(
NOT COMPILATION_COMMENT
)
SET
(
COMPILATION_COMMENT
"MySQL Community Server (GPL)"
)
SET
(
COMPILATION_COMMENT
"MySQL Community Server (GPL)"
)
ENDIF
()
ENDIF
()
...
@@ -103,46 +114,75 @@ IF(UNIX)
...
@@ -103,46 +114,75 @@ IF(UNIX)
ENDIF
()
ENDIF
()
OPTION
(
WITH_PIC
""
ON
)
# Why?
OPTION
(
WITH_PIC
""
ON
)
# Why?
ENDIF
()
# Ensure aio is available on Linux (required by InnoDB)
IF
(
CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
CHECK_INCLUDE_FILES
(
libaio.h HAVE_LIBAIO_H
)
CHECK_LIBRARY_EXISTS
(
aio io_queue_init
""
HAVE_LIBAIO
)
IF
(
NOT HAVE_LIBAIO_H OR NOT HAVE_LIBAIO
)
MESSAGE
(
FATAL_ERROR
"aio is required on Linux"
)
ENDIF
()
ENDIF
()
ENDIF
()
# Compiler options
# Compiler options
IF
(
UNIX
)
IF
(
UNIX
)
# Default GCC flags
# Default GCC flags
IF
(
CMAKE_COMPILER_IS_GNUCC
)
SET
(
COMMON_C_FLAGS
"-g -static-libgcc -fno-omit-frame-pointer"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"-O
${
COMMON_C_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-O3
${
COMMON_C_FLAGS
}
"
)
ENDIF
()
IF
(
CMAKE_COMPILER_IS_GNUCXX
)
IF
(
CMAKE_COMPILER_IS_GNUCXX
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-g -O3 -static-libgcc -fno-omit-frame-pointer"
)
SET
(
COMMON_CXX_FLAGS
"-g -static-libgcc -fno-omit-frame-pointer"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-g -O3 -static-libgcc -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"-O
${
COMMON_CXX_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-O3
${
COMMON_CXX_FLAGS
}
"
)
ENDIF
()
ENDIF
()
# HPUX flags
# HPUX flags
IF
(
CMAKE_SYSTEM_NAME MATCHES
"HP-UX"
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"HP-UX"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"HP"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"HP"
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ia64"
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ia64"
)
SET
(
CMAKE_C_FLAGS
SET
(
COMMON_C_FLAGS
"+DSitanium2 -mt -AC99"
)
"
${
CMAKE_C_FLAGS
}
+DD64 +DSitanium2 -mt -AC99"
)
SET
(
COMMON_CXX_FLAGS
"+DSitanium2 -mt -Aa"
)
SET
(
CMAKE_CXX_FLAGS
SET
(
CMAKE_C_FLAGS_DEBUG
"+O0 -g
${
COMMON_C_FLAGS
}
"
)
"
${
CMAKE_CXX_FLAGS
}
+DD64 +DSitanium2 -mt -Aa"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"+O0 -g
${
COMMON_CXX_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS
}
+O2"
)
# We have seen compiler bugs with optimisation and -g, so disabled for now
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS
}
+O2"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"+O2
${
COMMON_C_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"+O2
${
COMMON_CXX_FLAGS
}
"
)
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
SET
(
WITH_SSL
)
SET
(
WITH_SSL
no
)
ENDIF
()
ENDIF
()
# Linux flags
# Linux flags
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"Intel"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"Intel"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-static-intel -static-libgcc -g -O3 -unroll2 -ip -mp -restrict -no-ftz -no-prefetch"
)
SET
(
COMMON_C_FLAGS
"-static-intel -static-libgcc -g -mp -restrict"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-static-intel -static-libgcc -g -O3 -unroll2 -ip -mp -restrict -no-ftz -no-prefetch"
)
SET
(
COMMON_CXX_FLAGS
"-static-intel -static-libgcc -g -mp -restrict -fno-exceptions -fno-rtti"
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"ia64"
)
SET
(
COMMON_C_FLAGS
"
${
COMMON_C_FLAGS
}
-no-ftz -no-prefetch"
)
SET
(
COMMON_CXX_FLAGS
"
${
COMMON_CXX_FLAGS
}
-no-ftz -no-prefetch"
)
ENDIF
()
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
COMMON_C_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
COMMON_CXX_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-O3 -unroll2 -ip
${
COMMON_C_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-O3 -unroll2 -ip
${
COMMON_CXX_FLAGS
}
"
)
SET
(
WITH_SSL no
)
SET
(
WITH_SSL no
)
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
# OSX flags
# OSX flags
IF
(
APPLE
)
IF
(
APPLE
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-g -Os -fno-common"
)
SET
(
COMMON_C_FLAGS
"-g -fno-common"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-g -Os -felide-constructors -fno-common"
)
# XXX: why are we using -felide-constructors on OSX?
SET
(
COMMON_CXX_FLAGS
"-g -fno-common -felide-constructors"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"-O
${
COMMON_C_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"-O
${
COMMON_CXX_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-Os
${
COMMON_C_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-Os
${
COMMON_CXX_FLAGS
}
"
)
ENDIF
()
ENDIF
()
# Solaris flags
# Solaris flags
...
@@ -153,37 +193,48 @@ IF(UNIX)
...
@@ -153,37 +193,48 @@ IF(UNIX)
ENDIF
()
ENDIF
()
IF
(
CMAKE_C_COMPILER_ID MATCHES
"SunPro"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"SunPro"
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"i386"
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"i386"
)
IF
(
CMAKE_SIZEOF_VOID_P EQUAL 4
)
SET
(
COMMON_C_FLAGS
"-g -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic"
)
# Solaris x86
SET
(
COMMON_CXX_FLAGS
"-g0 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
COMMON_C_FLAGS
}
"
)
"-g -xO2 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic
"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
COMMON_CXX_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
IF
(
32BIT
)
"-g0 -xO2 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -features=no%except -xlibmil -xlibmopt -xtarget=generic
"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-xO2
${
COMMON_C_FLAGS
}
"
)
ELSE
(
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-xO2
${
COMMON_CXX_FLAGS
}
"
)
# Solaris x64
ELSEIF
(
64BIT
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-xO3
${
COMMON_C_FLAGS
}
"
)
"-g -xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil -xlibmopt -xtarget=generic
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-xO3
${
COMMON_CXX_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
ENDIF
()
"-g0 -xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -features=no%except -xlibmil -xlibmopt -xtarget=generic"
)
ELSE
()
ENDIF
()
# Assume !x86 is SPARC
ELSE
()
SET
(
COMMON_C_FLAGS
"-g -Xa -xstrconst -mt"
)
IF
(
CMAKE_SIZEOF_VOID_P EQUAL 4
)
SET
(
COMMON_CXX_FLAGS
"-g0 -noex -mt"
)
# Solaris sparc 32 bit
IF
(
32BIT
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-g -xO3 -Xa -xstrconst -mt
-xarch=sparc"
)
SET
(
COMMON_C_FLAGS
"
${
COMMON_C_FLAGS
}
-xarch=sparc"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-g0 -xO3 -noex -mt
-xarch=sparc"
)
SET
(
COMMON_CXX_FLAGS
"
${
COMMON_CXX_FLAGS
}
-xarch=sparc"
)
ELSE
()
ENDIF
()
# Solaris sparc 64 bit
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
COMMON_C_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-g -xO3 -Xa -xstrconst -mt
"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
COMMON_CXX_FLAGS
}
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-g0 -xO3 -noex -mt
"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-xO3
${
COMMON_C_FLAGS
}
"
)
ENDIF
(
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-xO3
${
COMMON_CXX_FLAGS
}
"
)
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
IF
(
CMAKE_C_FLAGS_DEBUG
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
"
CACHE STRING
"Debug C compile flags"
)
ENDIF
()
IF
(
CMAKE_CXX_FLAGS_DEBUG
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
"
CACHE STRING
"Debug C++ compile flags"
)
ENDIF
()
IF
(
CMAKE_C_FLAGS_RELWITHDEBINFO
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
"
CACHE STRING
"RelWithDebInfo C compile flags"
)
ENDIF
()
IF
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
)
IF
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
CACHE STRING
"Compile flags"
)
CACHE STRING
"RelWithDebInfo C++ compile flags"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
"
CACHE STRING
"Compile flags"
)
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
cmake/cpack_source_ignore_files.cmake
View file @
9503a8e2
...
@@ -36,5 +36,6 @@ include/config\\\\.h$
...
@@ -36,5 +36,6 @@ include/config\\\\.h$
include/my_config\\\\.h$
include/my_config\\\\.h$
/autom4te\\\\.cache/
/autom4te\\\\.cache/
errmsg\\\\.sys$
errmsg\\\\.sys$
storage/ndb/
#
#
)
)
cmake/make_dist.cmake.in
View file @
9503a8e2
...
@@ -53,6 +53,8 @@ IF(BZR_EXECUTABLE)
...
@@ -53,6 +53,8 @@ IF(BZR_EXECUTABLE)
RESULT_VARIABLE RESULT
RESULT_VARIABLE RESULT
)
)
FILE(REMOVE_RECURSE ${PACKAGE_DIR}/storage/ndb)
IF(NOT RESULT EQUAL 0)
IF(NOT RESULT EQUAL 0)
SET(BZR_EXECUTABLE)
SET(BZR_EXECUTABLE)
ENDIF()
ENDIF()
...
...
cmake/os/AIX.cmake
View file @
9503a8e2
...
@@ -28,6 +28,6 @@ INCLUDE(CheckCXXCompilerFlag)
...
@@ -28,6 +28,6 @@ INCLUDE(CheckCXXCompilerFlag)
# The following is required to export all symbols
# The following is required to export all symbols
# (also with leading underscore)
# (also with leading underscore)
STRING
(
REPLACE
"-bexpall"
"-bexpfull"
CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS
STRING
(
REPLACE
"-bexpall"
"-bexpfull"
CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS
${
CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS
}
")
"
${
CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS
}
"
)
STRING
(
REPLACE
"-bexpall"
"-bexpfull"
CMAKE_SHARED_LIBRARY_LINK_C_FLAGS
STRING
(
REPLACE
"-bexpall"
"-bexpfull"
CMAKE_SHARED_LIBRARY_LINK_C_FLAGS
"
${
CMAKE_SHARED_LIBRARY_LINK_C_FLAGS
}
")
"
${
CMAKE_SHARED_LIBRARY_LINK_C_FLAGS
}
"
)
\ No newline at end of file
cmake/os/WindowsCache.cmake
View file @
9503a8e2
...
@@ -262,7 +262,6 @@ SET(HAVE_SYS_DIR_H CACHE INTERNAL "")
...
@@ -262,7 +262,6 @@ SET(HAVE_SYS_DIR_H CACHE INTERNAL "")
SET
(
HAVE_SYS_ERRLIST CACHE INTERNAL
""
)
SET
(
HAVE_SYS_ERRLIST CACHE INTERNAL
""
)
SET
(
HAVE_SYS_FILE_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_FILE_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_FPU_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_FPU_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_IOCTL CACHE INTERNAL
""
)
SET
(
HAVE_SYS_IOCTL_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_IOCTL_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_IPC_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_IPC_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_MALLOC_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_MALLOC_H CACHE INTERNAL
""
)
...
...
cmake/ssl.cmake
View file @
9503a8e2
...
@@ -29,14 +29,14 @@ MACRO (MYSQL_USE_BUNDLED_SSL)
...
@@ -29,14 +29,14 @@ MACRO (MYSQL_USE_BUNDLED_SSL)
CHANGE_SSL_SETTINGS
(
"bundled"
)
CHANGE_SSL_SETTINGS
(
"bundled"
)
#Remove -fno-implicit-templates
#Remove -fno-implicit-templates
#(yassl sources cannot be compiled with it)
#(yassl sources cannot be compiled with it)
SET
(
SAVE_CXX_FLAGS
${
CXX_FLAGS
}
)
SET
(
SAVE_CXX_FLAGS
${
C
MAKE_C
XX_FLAGS
}
)
IF
(
CMAKE_CXX_FLAGS
)
IF
(
CMAKE_CXX_FLAGS
)
STRING
(
REPLACE
"-fno-implicit-templates"
""
CMAKE_CXX_FLAGS
STRING
(
REPLACE
"-fno-implicit-templates"
""
CMAKE_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
)
${
CMAKE_CXX_FLAGS
}
)
ENDIF
()
ENDIF
()
ADD_SUBDIRECTORY
(
extra/yassl
)
ADD_SUBDIRECTORY
(
extra/yassl
)
ADD_SUBDIRECTORY
(
extra/yassl/taocrypt
)
ADD_SUBDIRECTORY
(
extra/yassl/taocrypt
)
SET
(
CXX_FLAGS
${
SAVE_CXX_FLAGS
}
)
SET
(
C
MAKE_C
XX_FLAGS
${
SAVE_CXX_FLAGS
}
)
GET_TARGET_PROPERTY
(
src yassl SOURCES
)
GET_TARGET_PROPERTY
(
src yassl SOURCES
)
FOREACH
(
file
${
src
}
)
FOREACH
(
file
${
src
}
)
SET
(
SSL_SOURCES
${
SSL_SOURCES
}
${
CMAKE_SOURCE_DIR
}
/extra/yassl/
${
file
}
)
SET
(
SSL_SOURCES
${
SSL_SOURCES
}
${
CMAKE_SOURCE_DIR
}
/extra/yassl/
${
file
}
)
...
...
config.h.cmake
View file @
9503a8e2
...
@@ -22,11 +22,14 @@
...
@@ -22,11 +22,14 @@
#cmakedefine HAVE_ALLOCA_H 1
#cmakedefine HAVE_ALLOCA_H 1
#cmakedefine HAVE_AIO_H 1
#cmakedefine HAVE_AIO_H 1
#cmakedefine HAVE_ARPA_INET_H 1
#cmakedefine HAVE_ARPA_INET_H 1
#cmakedefine HAVE_ASM_MSR_H 1
#cmakedefine HAVE_ASM_TERMBITS_H 1
#cmakedefine HAVE_BSEARCH 1
#cmakedefine HAVE_BSEARCH 1
#cmakedefine HAVE_CRYPT_H 1
#cmakedefine HAVE_CRYPT_H 1
#cmakedefine HAVE_CURSES_H 1
#cmakedefine HAVE_CURSES_H 1
#cmakedefine HAVE_CXXABI_H 1
#cmakedefine HAVE_CXXABI_H 1
#cmakedefine HAVE_NCURSES_H 1
#cmakedefine HAVE_NCURSES_H 1
#cmakedefine HAVE_NDIR_H 1
#cmakedefine HAVE_DIRENT_H 1
#cmakedefine HAVE_DIRENT_H 1
#cmakedefine HAVE_DLFCN_H 1
#cmakedefine HAVE_DLFCN_H 1
#cmakedefine HAVE_EXECINFO_H 1
#cmakedefine HAVE_EXECINFO_H 1
...
@@ -70,6 +73,7 @@
...
@@ -70,6 +73,7 @@
#cmakedefine HAVE_SYS_IPC_H 1
#cmakedefine HAVE_SYS_IPC_H 1
#cmakedefine HAVE_SYS_MALLOC_H 1
#cmakedefine HAVE_SYS_MALLOC_H 1
#cmakedefine HAVE_SYS_MMAN_H 1
#cmakedefine HAVE_SYS_MMAN_H 1
#cmakedefine HAVE_SYS_NDIR_H 1
#cmakedefine HAVE_SYS_PTE_H 1
#cmakedefine HAVE_SYS_PTE_H 1
#cmakedefine HAVE_SYS_PTEM_H 1
#cmakedefine HAVE_SYS_PTEM_H 1
#cmakedefine HAVE_SYS_PRCTL_H 1
#cmakedefine HAVE_SYS_PRCTL_H 1
...
@@ -87,6 +91,7 @@
...
@@ -87,6 +91,7 @@
#cmakedefine HAVE_SYS_UN_H 1
#cmakedefine HAVE_SYS_UN_H 1
#cmakedefine HAVE_SYS_VADVISE_H 1
#cmakedefine HAVE_SYS_VADVISE_H 1
#cmakedefine HAVE_TERM_H 1
#cmakedefine HAVE_TERM_H 1
#cmakedefine HAVE_TERMBITS_H 1
#cmakedefine HAVE_TERMIOS_H 1
#cmakedefine HAVE_TERMIOS_H 1
#cmakedefine HAVE_TERMIO_H 1
#cmakedefine HAVE_TERMIO_H 1
#cmakedefine HAVE_TERMCAP_H 1
#cmakedefine HAVE_TERMCAP_H 1
...
@@ -98,6 +103,7 @@
...
@@ -98,6 +103,7 @@
#cmakedefine HAVE_SYS_UTIME_H 1
#cmakedefine HAVE_SYS_UTIME_H 1
#cmakedefine HAVE_SYS_WAIT_H 1
#cmakedefine HAVE_SYS_WAIT_H 1
#cmakedefine HAVE_SYS_PARAM_H 1
#cmakedefine HAVE_SYS_PARAM_H 1
#cmakedefine HAVE_XFS_XFS_H 1
/* Libraries */
/* Libraries */
#cmakedefine HAVE_LIBPTHREAD 1
#cmakedefine HAVE_LIBPTHREAD 1
...
@@ -129,9 +135,11 @@
...
@@ -129,9 +135,11 @@
#cmakedefine HAVE_BMOVE 1
#cmakedefine HAVE_BMOVE 1
#cmakedefine HAVE_BZERO 1
#cmakedefine HAVE_BZERO 1
#cmakedefine HAVE_INDEX 1
#cmakedefine HAVE_INDEX 1
#cmakedefine HAVE_CHOWN 1
#cmakedefine HAVE_CLOCK_GETTIME 1
#cmakedefine HAVE_CLOCK_GETTIME 1
#cmakedefine HAVE_CRYPT 1
#cmakedefine HAVE_CRYPT 1
#cmakedefine HAVE_CUSERID 1
#cmakedefine HAVE_CUSERID 1
#cmakedefine HAVE_CXX_NEW 1
#cmakedefine HAVE_DIRECTIO 1
#cmakedefine HAVE_DIRECTIO 1
#cmakedefine HAVE_DLERROR 1
#cmakedefine HAVE_DLERROR 1
#cmakedefine HAVE_DLOPEN 1
#cmakedefine HAVE_DLOPEN 1
...
@@ -146,6 +154,7 @@
...
@@ -146,6 +154,7 @@
#cmakedefine HAVE_FPSETMASK 1
#cmakedefine HAVE_FPSETMASK 1
#cmakedefine HAVE_FSEEKO 1
#cmakedefine HAVE_FSEEKO 1
#cmakedefine HAVE_FSYNC 1
#cmakedefine HAVE_FSYNC 1
#cmakedefine HAVE_FTIME 1
#cmakedefine HAVE_GETADDRINFO 1
#cmakedefine HAVE_GETADDRINFO 1
#cmakedefine HAVE_GETCWD 1
#cmakedefine HAVE_GETCWD 1
#cmakedefine HAVE_GETHOSTBYADDR_R 1
#cmakedefine HAVE_GETHOSTBYADDR_R 1
...
@@ -175,6 +184,8 @@
...
@@ -175,6 +184,8 @@
#cmakedefine HAVE_LOG2 1
#cmakedefine HAVE_LOG2 1
#cmakedefine HAVE_LONGJMP 1
#cmakedefine HAVE_LONGJMP 1
#cmakedefine HAVE_LSTAT 1
#cmakedefine HAVE_LSTAT 1
#cmakedefine HAVE_MEMALIGN 1
/*
#cmakedefine HAVE_MLOCK 1 see Bug#54662 */
#cmakedefine HAVE_NPTL 1
#cmakedefine HAVE_NPTL 1
#cmakedefine HAVE_NL_LANGINFO 1
#cmakedefine HAVE_NL_LANGINFO 1
#cmakedefine HAVE_MADVISE 1
#cmakedefine HAVE_MADVISE 1
...
@@ -195,6 +206,8 @@
...
@@ -195,6 +206,8 @@
#cmakedefine HAVE_PREAD 1
#cmakedefine HAVE_PREAD 1
#cmakedefine HAVE_PAUSE_INSTRUCTION 1
#cmakedefine HAVE_PAUSE_INSTRUCTION 1
#cmakedefine HAVE_FAKE_PAUSE_INSTRUCTION 1
#cmakedefine HAVE_FAKE_PAUSE_INSTRUCTION 1
#cmakedefine HAVE_RDTSCLL 1
#cmakedefine HAVE_READ_REAL_TIME 1
#cmakedefine HAVE_PTHREAD_ATTR_CREATE 1
#cmakedefine HAVE_PTHREAD_ATTR_CREATE 1
#cmakedefine HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
#cmakedefine HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
#cmakedefine HAVE_PTHREAD_ATTR_SETPRIO 1
#cmakedefine HAVE_PTHREAD_ATTR_SETPRIO 1
...
@@ -239,6 +252,15 @@
...
@@ -239,6 +252,15 @@
#cmakedefine HAVE_SIGWAIT 1
#cmakedefine HAVE_SIGWAIT 1
#cmakedefine HAVE_SLEEP 1
#cmakedefine HAVE_SLEEP 1
#cmakedefine HAVE_SNPRINTF 1
#cmakedefine HAVE_SNPRINTF 1
/* Some that currently are not real defines, internal to CMake setup */
/*
#cmakedefine HAVE_FCNTL_NONBLOCK 1 */
/*
#cmakedefine HAVE_FINITE_IN_MATH_H 1 */
/*
#cmakedefine HAVE_SOCKADDR_STORAGE_SS_FAMILY 1 */
/*
#cmakedefine HAVE_SOCKADDR_STORAGE___SS_FAMILY 1 */
/*
#cmakedefine HAVE_SOCKET_SIZE_T_AS_int 1 */
/*
#cmakedefine HAVE_SOCKET_SIZE_T_AS_size_t 1 */
/*
#cmakedefine HAVE_SOCKET_SIZE_T_AS_socklen_t */
/*
#cmakedefine HAVE_SOCKET_TIMEOUT */
#cmakedefine HAVE_STPCPY 1
#cmakedefine HAVE_STPCPY 1
#cmakedefine HAVE_STRERROR 1
#cmakedefine HAVE_STRERROR 1
#cmakedefine HAVE_STRCOLL 1
#cmakedefine HAVE_STRCOLL 1
...
@@ -559,6 +581,23 @@
...
@@ -559,6 +581,23 @@
#cmakedefine HAVE_UCA_COLLATIONS 1
#cmakedefine HAVE_UCA_COLLATIONS 1
#cmakedefine HAVE_COMPRESS 1
#cmakedefine HAVE_COMPRESS 1
/*
Hard coded platform settings
*/
/* This is ugly, but we need lots of tweaks for HP-UX */
#cmakedefine HPUX11 1
#cmakedefine DO_NOT_REMOVE_THREAD_WRAPPERS 1
#cmakedefine HAVE_BROKEN_PREAD 1
#cmakedefine HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT 1
#cmakedefine SNPRINTF_RETURN_TRUNC 1
#cmakedefine _INCLUDE_LONGLONG 1
/* Mac OS X */
#cmakedefine SIGNALS_DONT_BREAK_READ 1
#cmakedefine IGNORE_SIGHUP_SIGQUIT 1
#cmakedefine _P1003_1B_VISIBLE 1
#cmakedefine DONT_DECLARE_CXA_PURE_VIRTUAL 1
/*
/*
Stuff that always need to be
defined
(
compile breaks without it
)
Stuff that always need to be
defined
(
compile breaks without it
)
...
...
configure.cmake
View file @
9503a8e2
...
@@ -202,6 +202,7 @@ CHECK_INCLUDE_FILES (limits.h HAVE_LIMITS_H)
...
@@ -202,6 +202,7 @@ CHECK_INCLUDE_FILES (limits.h HAVE_LIMITS_H)
CHECK_INCLUDE_FILES
(
locale.h HAVE_LOCALE_H
)
CHECK_INCLUDE_FILES
(
locale.h HAVE_LOCALE_H
)
CHECK_INCLUDE_FILES
(
malloc.h HAVE_MALLOC_H
)
CHECK_INCLUDE_FILES
(
malloc.h HAVE_MALLOC_H
)
CHECK_INCLUDE_FILES
(
memory.h HAVE_MEMORY_H
)
CHECK_INCLUDE_FILES
(
memory.h HAVE_MEMORY_H
)
CHECK_INCLUDE_FILES
(
ndir.h HAVE_NDIR_H
)
CHECK_INCLUDE_FILES
(
netinet/in.h HAVE_NETINET_IN_H
)
CHECK_INCLUDE_FILES
(
netinet/in.h HAVE_NETINET_IN_H
)
CHECK_INCLUDE_FILES
(
paths.h HAVE_PATHS_H
)
CHECK_INCLUDE_FILES
(
paths.h HAVE_PATHS_H
)
CHECK_INCLUDE_FILES
(
port.h HAVE_PORT_H
)
CHECK_INCLUDE_FILES
(
port.h HAVE_PORT_H
)
...
@@ -210,7 +211,8 @@ CHECK_INCLUDE_FILES (pwd.h HAVE_PWD_H)
...
@@ -210,7 +211,8 @@ CHECK_INCLUDE_FILES (pwd.h HAVE_PWD_H)
CHECK_INCLUDE_FILES
(
sched.h HAVE_SCHED_H
)
CHECK_INCLUDE_FILES
(
sched.h HAVE_SCHED_H
)
CHECK_INCLUDE_FILES
(
select.h HAVE_SELECT_H
)
CHECK_INCLUDE_FILES
(
select.h HAVE_SELECT_H
)
CHECK_INCLUDE_FILES
(
semaphore.h HAVE_SEMAPHORE_H
)
CHECK_INCLUDE_FILES
(
semaphore.h HAVE_SEMAPHORE_H
)
CHECK_INCLUDE_FILES
(
sys/dir.h HAVE_SYS_DIR_H
)
CHECK_INCLUDE_FILES
(
"sys/types.h;sys/dir.h"
HAVE_SYS_DIR_H
)
CHECK_INCLUDE_FILES
(
sys/ndir.h HAVE_SYS_NDIR_H
)
CHECK_INCLUDE_FILES
(
sys/pte.h HAVE_SYS_PTE_H
)
CHECK_INCLUDE_FILES
(
sys/pte.h HAVE_SYS_PTE_H
)
CHECK_INCLUDE_FILES
(
stddef.h HAVE_STDDEF_H
)
CHECK_INCLUDE_FILES
(
stddef.h HAVE_STDDEF_H
)
CHECK_INCLUDE_FILES
(
stdint.h HAVE_STDINT_H
)
CHECK_INCLUDE_FILES
(
stdint.h HAVE_STDINT_H
)
...
@@ -236,6 +238,8 @@ CHECK_INCLUDE_FILES (sys/stream.h HAVE_SYS_STREAM_H)
...
@@ -236,6 +238,8 @@ CHECK_INCLUDE_FILES (sys/stream.h HAVE_SYS_STREAM_H)
CHECK_INCLUDE_FILES
(
sys/termcap.h HAVE_SYS_TERMCAP_H
)
CHECK_INCLUDE_FILES
(
sys/termcap.h HAVE_SYS_TERMCAP_H
)
CHECK_INCLUDE_FILES
(
"time.h;sys/timeb.h"
HAVE_SYS_TIMEB_H
)
CHECK_INCLUDE_FILES
(
"time.h;sys/timeb.h"
HAVE_SYS_TIMEB_H
)
CHECK_INCLUDE_FILES
(
"curses.h;term.h"
HAVE_TERM_H
)
CHECK_INCLUDE_FILES
(
"curses.h;term.h"
HAVE_TERM_H
)
CHECK_INCLUDE_FILES
(
asm/termbits.h HAVE_ASM_TERMBITS_H
)
CHECK_INCLUDE_FILES
(
termbits.h HAVE_TERMBITS_H
)
CHECK_INCLUDE_FILES
(
termios.h HAVE_TERMIOS_H
)
CHECK_INCLUDE_FILES
(
termios.h HAVE_TERMIOS_H
)
CHECK_INCLUDE_FILES
(
termio.h HAVE_TERMIO_H
)
CHECK_INCLUDE_FILES
(
termio.h HAVE_TERMIO_H
)
CHECK_INCLUDE_FILES
(
termcap.h HAVE_TERMCAP_H
)
CHECK_INCLUDE_FILES
(
termcap.h HAVE_TERMCAP_H
)
...
@@ -249,11 +253,15 @@ CHECK_INCLUDE_FILES (sys/param.h HAVE_SYS_PARAM_H)
...
@@ -249,11 +253,15 @@ CHECK_INCLUDE_FILES (sys/param.h HAVE_SYS_PARAM_H)
CHECK_INCLUDE_FILES
(
sys/vadvise.h HAVE_SYS_VADVISE_H
)
CHECK_INCLUDE_FILES
(
sys/vadvise.h HAVE_SYS_VADVISE_H
)
CHECK_INCLUDE_FILES
(
fnmatch.h HAVE_FNMATCH_H
)
CHECK_INCLUDE_FILES
(
fnmatch.h HAVE_FNMATCH_H
)
CHECK_INCLUDE_FILES
(
stdarg.h HAVE_STDARG_H
)
CHECK_INCLUDE_FILES
(
stdarg.h HAVE_STDARG_H
)
CHECK_INCLUDE_FILES
(
"stdlib.h;sys/un.h"
HAVE_SYS_UN_H
)
CHECK_INCLUDE_FILES
(
"stdlib.h;sys/un.h"
HAVE_SYS_UN_H
)
CHECK_INCLUDE_FILES
(
vis.h HAVE_VIS_H
)
CHECK_INCLUDE_FILES
(
wchar.h HAVE_WCHAR_H
)
CHECK_INCLUDE_FILES
(
wctype.h HAVE_WCTYPE_H
)
CHECK_INCLUDE_FILES
(
xfs/xfs.h HAVE_XFS_XFS_H
)
IF
(
HAVE_SYS_STREAM_H
)
IF
(
HAVE_SYS_STREAM_H
)
# Needs sys/stream.h on Solaris
# Needs sys/stream.h on Solaris
CHECK_INCLUDE_FILES
(
sys/stream.h sys/ptem.h
HAVE_SYS_PTEM_H
)
CHECK_INCLUDE_FILES
(
"sys/stream.h;sys/ptem.h"
HAVE_SYS_PTEM_H
)
ELSE
()
ELSE
()
CHECK_INCLUDE_FILES
(
sys/ptem.h HAVE_SYS_PTEM_H
)
CHECK_INCLUDE_FILES
(
sys/ptem.h HAVE_SYS_PTEM_H
)
ENDIF
()
ENDIF
()
...
@@ -494,14 +502,15 @@ IF(HAVE_STDINT_H)
...
@@ -494,14 +502,15 @@ IF(HAVE_STDINT_H)
SET
(
CMAKE_EXTRA_INCLUDE_FILES stdint.h
)
SET
(
CMAKE_EXTRA_INCLUDE_FILES stdint.h
)
ENDIF
(
HAVE_STDINT_H
)
ENDIF
(
HAVE_STDINT_H
)
IF
(
NOT APPLE
)
# These first four SIZE_* values are not really used on Mac OS X,
# Prevent some checks on OSX, they return ambigious results
# as we only know at comile time what architecture to build for,
# on universal 32/64 bit binariess
# see "config.h.cmake". But as same macro MY_CHECK_TYPE_SIZE also
MY_CHECK_TYPE_SIZE
(
"void *"
VOIDP
)
# sets HAVE_* macros, we run the check here, doesn't hurt.
MY_CHECK_TYPE_SIZE
(
"char *"
CHARP
)
MY_CHECK_TYPE_SIZE
(
"void *"
VOIDP
)
MY_CHECK_TYPE_SIZE
(
long LONG
)
MY_CHECK_TYPE_SIZE
(
"char *"
CHARP
)
MY_CHECK_TYPE_SIZE
(
size_t SIZE_T
)
MY_CHECK_TYPE_SIZE
(
long LONG
)
ENDIF
()
MY_CHECK_TYPE_SIZE
(
size_t SIZE_T
)
MY_CHECK_TYPE_SIZE
(
char CHAR
)
MY_CHECK_TYPE_SIZE
(
char CHAR
)
MY_CHECK_TYPE_SIZE
(
short SHORT
)
MY_CHECK_TYPE_SIZE
(
short SHORT
)
MY_CHECK_TYPE_SIZE
(
int INT
)
MY_CHECK_TYPE_SIZE
(
int INT
)
...
@@ -749,7 +758,6 @@ IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC)
...
@@ -749,7 +758,6 @@ IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC)
ENDIF
()
ENDIF
()
CHECK_SYMBOL_EXISTS
(
tcgetattr
"termios.h"
HAVE_TCGETATTR 1
)
CHECK_SYMBOL_EXISTS
(
tcgetattr
"termios.h"
HAVE_TCGETATTR 1
)
CHECK_INCLUDE_FILES
(
sys/ioctl.h HAVE_SYS_IOCTL 1
)
#
#
# Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7)
# Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7)
...
@@ -1039,3 +1047,25 @@ CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_IN
...
@@ -1039,3 +1047,25 @@ CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_IN
CHECK_STRUCT_HAS_MEMBER
(
"struct dirent"
d_namlen
"dirent.h"
STRUCT_DIRENT_HAS_D_NAMLEN
)
CHECK_STRUCT_HAS_MEMBER
(
"struct dirent"
d_namlen
"dirent.h"
STRUCT_DIRENT_HAS_D_NAMLEN
)
SET
(
SPRINTF_RETURNS_INT 1
)
SET
(
SPRINTF_RETURNS_INT 1
)
#--------------------------------------------------------------------
# Hard coded platform settings
#--------------------------------------------------------------------
# This is ugly, but we need lots of tweaks for HP-UX
IF
(
CMAKE_SYSTEM_NAME MATCHES
"HP-UX"
)
SET
(
HPUX11 1
)
SET
(
DO_NOT_REMOVE_THREAD_WRAPPERS 1
)
SET
(
HAVE_BROKEN_PREAD 1
)
SET
(
HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT 1
)
SET
(
NO_FCNTL_NONBLOCK 1
)
# Set conditionally in code above
SET
(
SNPRINTF_RETURN_TRUNC 1
)
SET
(
_INCLUDE_LONGLONG 1
)
ENDIF
()
IF
(
APPLE
)
SET
(
DONT_DECLARE_CXA_PURE_VIRTUAL 1
)
SET
(
IGNORE_SIGHUP_SIGQUIT 1
)
SET
(
SIGNALS_DONT_BREAK_READ 1
)
SET
(
SIGNAL_WITH_VIO_CLOSE 1
)
# FIXME better handled in mysql-trunk
SET
(
_P1003_1B_VISIBLE 1
)
ENDIF
()
extra/yassl/CMakeLists.txt
View file @
9503a8e2
...
@@ -28,7 +28,7 @@ ${CMAKE_CXX_FLAGS})
...
@@ -28,7 +28,7 @@ ${CMAKE_CXX_FLAGS})
ENDIF
()
ENDIF
()
SET
(
YASSL_SOURCES src/buffer.cpp src/cert_wrapper.cpp src/crypto_wrapper.cpp src/handshake.cpp src/lock.cpp
SET
(
YASSL_SOURCES src/buffer.cpp src/cert_wrapper.cpp src/crypto_wrapper.cpp src/handshake.cpp src/lock.cpp
src/log.cpp src/socket_wrapper.cpp src/ssl.cpp src/timer.cpp src/yassl_error.cpp
src/log.cpp src/socket_wrapper.cpp src/ssl.cpp src/timer.cpp src/yassl_error.cpp
src/yassl_imp.cpp src/yassl_int.cpp
)
src/yassl_imp.cpp src/yassl_int.cpp
src/template_instnt.cpp
)
ADD_CONVENIENCE_LIBRARY
(
yassl
${
YASSL_SOURCES
}
)
ADD_CONVENIENCE_LIBRARY
(
yassl
${
YASSL_SOURCES
}
)
RESTRICT_SYMBOL_EXPORTS
(
yassl
)
RESTRICT_SYMBOL_EXPORTS
(
yassl
)
...
...
extra/yassl/taocrypt/CMakeLists.txt
View file @
9503a8e2
...
@@ -21,6 +21,7 @@ ADD_DEFINITIONS(${SSL_DEFINES})
...
@@ -21,6 +21,7 @@ ADD_DEFINITIONS(${SSL_DEFINES})
SET
(
TAOCRYPT_SOURCES src/aes.cpp src/aestables.cpp src/algebra.cpp src/arc4.cpp src/asn.cpp src/coding.cpp
SET
(
TAOCRYPT_SOURCES src/aes.cpp src/aestables.cpp src/algebra.cpp src/arc4.cpp src/asn.cpp src/coding.cpp
src/des.cpp src/dh.cpp src/dsa.cpp src/file.cpp src/hash.cpp src/integer.cpp src/md2.cpp
src/des.cpp src/dh.cpp src/dsa.cpp src/file.cpp src/hash.cpp src/integer.cpp src/md2.cpp
src/md4.cpp src/md5.cpp src/misc.cpp src/random.cpp src/ripemd.cpp src/rsa.cpp src/sha.cpp
src/md4.cpp src/md5.cpp src/misc.cpp src/random.cpp src/ripemd.cpp src/rsa.cpp src/sha.cpp
src/template_instnt.cpp
include/aes.hpp include/algebra.hpp include/arc4.hpp include/asn.hpp include/block.hpp
include/aes.hpp include/algebra.hpp include/arc4.hpp include/asn.hpp include/block.hpp
include/coding.hpp include/des.hpp include/dh.hpp include/dsa.hpp include/dsa.hpp
include/coding.hpp include/des.hpp include/dh.hpp include/dsa.hpp include/dsa.hpp
include/error.hpp include/file.hpp include/hash.hpp include/hmac.hpp include/integer.hpp
include/error.hpp include/file.hpp include/hash.hpp include/hmac.hpp include/integer.hpp
...
...
packaging/WiX/CPackWixConfig.cmake
View file @
9503a8e2
...
@@ -3,8 +3,11 @@ IF(ESSENTIALS)
...
@@ -3,8 +3,11 @@ IF(ESSENTIALS)
MESSAGE
(
"Essentials!"
)
MESSAGE
(
"Essentials!"
)
SET
(
CPACK_COMPONENTS_USED
"Server;Client;DataFiles"
)
SET
(
CPACK_COMPONENTS_USED
"Server;Client;DataFiles"
)
SET
(
CPACK_WIX_UI
"WixUI_InstallDir"
)
SET
(
CPACK_WIX_UI
"WixUI_InstallDir"
)
MATH
(
EXPR bits
${
CMAKE_SIZEOF_VOID_P
}
*8
)
IF
(
CMAKE_SIZEOF_VOID_P MATCHES 8
)
SET
(
CPACK_PACKAGE_FILE_NAME
"mysql-essentials-
${
MAJOR_VERSION
}
.
${
MINOR_VERSION
}
.
${
PATCH
}
-win
${
bits
}
"
)
SET
(
CPACK_PACKAGE_FILE_NAME
"mysql-essential-
${
VERSION
}
-winx64"
)
ELSE
()
SET
(
CPACK_PACKAGE_FILE_NAME
"mysql-essential-
${
VERSION
}
-win32"
)
ENDIF
()
ELSE
()
ELSE
()
SET
(
CPACK_COMPONENTS_USED
SET
(
CPACK_COMPONENTS_USED
"Server;Client;DataFiles;Development;SharedLibraries;Embedded;Debuginfo;Documentation;IniFiles;Readme;Server_Scripts;DebugBinaries"
)
"Server;Client;DataFiles;Development;SharedLibraries;Embedded;Debuginfo;Documentation;IniFiles;Readme;Server_Scripts;DebugBinaries"
)
...
...
packaging/WiX/create_msi.cmake.in
View file @
9503a8e2
...
@@ -4,6 +4,7 @@ SET(CANDLE_EXECUTABLE "@CANDLE_EXECUTABLE@")
...
@@ -4,6 +4,7 @@ SET(CANDLE_EXECUTABLE "@CANDLE_EXECUTABLE@")
SET(LIGHT_EXECUTABLE "@LIGHT_EXECUTABLE@")
SET(LIGHT_EXECUTABLE "@LIGHT_EXECUTABLE@")
SET(CMAKE_COMMAND "@CMAKE_COMMAND@")
SET(CMAKE_COMMAND "@CMAKE_COMMAND@")
SET(CMAKE_CFG_INTDIR "@CMAKE_CFG_INTDIR@")
SET(CMAKE_CFG_INTDIR "@CMAKE_CFG_INTDIR@")
SET(VERSION "@VERSION@")
SET(MAJOR_VERSION "@MAJOR_VERSION@")
SET(MAJOR_VERSION "@MAJOR_VERSION@")
SET(MINOR_VERSION "@MINOR_VERSION@")
SET(MINOR_VERSION "@MINOR_VERSION@")
SET(PATCH "@PATCH@")
SET(PATCH "@PATCH@")
...
...
scripts/CMakeLists.txt
View file @
9503a8e2
...
@@ -90,16 +90,14 @@ IF(MALLOC_LIB)
...
@@ -90,16 +90,14 @@ IF(MALLOC_LIB)
ENDIF
()
ENDIF
()
IF
(
CMAKE_GENERATOR MATCHES
"Makefiles"
)
IF
(
CMAKE_GENERATOR MATCHES
"Makefiles"
)
# No multiconfig build - use CMAKE_C_FLAGS
# Strip maintainer mode options if necessary
# Strip maintainer mode options if necessary
STRING
(
REPLACE
"
${
MY_MAINTAINER_C_WARNINGS
}
"
""
CFLAGS
"
${
CMAKE_C_FLAGS
}
"
)
STRING
(
REPLACE
"
${
MY_MAINTAINER_C_WARNINGS
}
"
""
CFLAGS
"
${
CMAKE_C_FLAGS
}
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
"
)
STRING
(
REPLACE
"
${
MY_MAINTAINER_CXX_WARNINGS
}
"
""
CXXFLAGS
"
${
CMAKE_CXX_FLAGS
}
"
)
STRING
(
REPLACE
"
${
MY_MAINTAINER_CXX_WARNINGS
}
"
""
CXXFLAGS
"
${
CMAKE_CXX_FLAGS
}
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
)
FOREACH
(
ARCH
${
CMAKE_OSX_ARCHITECTURES
}
)
FOREACH
(
ARCH
${
CMAKE_OSX_ARCHITECTURES
}
)
SET
(
CFLAGS
"
${
CFLAGS
}
-arch
${
ARCH
}
"
)
SET
(
CFLAGS
"
${
CFLAGS
}
-arch
${
ARCH
}
"
)
SET
(
CXXFLAGS
"
${
CXXFLAGS
}
-arch
${
ARCH
}
"
)
SET
(
CXXFLAGS
"
${
CXXFLAGS
}
-arch
${
ARCH
}
"
)
ENDFOREACH
()
ENDFOREACH
()
ELSE
()
ELSE
()
# Multiconfig build - use CMAKE_C_FLAGS_RELWITHDEBINFO
# Strip maintainer mode options if necessary
# Strip maintainer mode options if necessary
STRING
(
REPLACE
"
${
MY_MAINTAINER_C_WARNINGS
}
"
""
CFLAGS
"
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
"
)
STRING
(
REPLACE
"
${
MY_MAINTAINER_C_WARNINGS
}
"
""
CFLAGS
"
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
"
)
STRING
(
REPLACE
"
${
MY_MAINTAINER_CXX_WARNINGS
}
"
""
CXXFLAGS
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
)
STRING
(
REPLACE
"
${
MY_MAINTAINER_CXX_WARNINGS
}
"
""
CXXFLAGS
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
)
...
@@ -142,6 +140,43 @@ ENDIF()
...
@@ -142,6 +140,43 @@ ENDIF()
SET
(
HOSTNAME
"hostname"
)
SET
(
HOSTNAME
"hostname"
)
# Required for mysqlbug until autotools are deprecated, once done remove these
# and expand default cmake variables
SET
(
CC
${
CMAKE_C_COMPILER
}
)
SET
(
CXX
${
CMAKE_CXX_COMPILER
}
)
SET
(
SAVE_CC
${
CMAKE_C_COMPILER
}
)
SET
(
SAVE_CXX
${
CMAKE_CXX_COMPILER
}
)
SET
(
SAVE_CFLAGS
${
CFLAGS
}
)
SET
(
SAVE_CXXFLAGS
${
CXXFLAGS
}
)
# XXX no cmake equivalent for this, just make one up
SET
(
CONFIGURE_LINE
"Built using CMake"
)
# Also required for mysqlbug, autoconf only supports --version so for now we
# just explicitly require GNU
IF
(
CMAKE_COMPILER_IS_GNUCC
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_C_COMPILER
}
${
CMAKE_C_COMPILER_ARG1
}
--version
COMMAND sed 1q
OUTPUT_VARIABLE CC_VERSION
)
ELSE
()
SET
(
CC_VERSION
""
)
ENDIF
()
IF
(
CMAKE_COMPILER_IS_GNUCXX
)
EXECUTE_PROCESS
(
COMMAND
${
CMAKE_CXX_COMPILER
}
${
CMAKE_CXX_COMPILER_ARG1
}
--version
COMMAND sed 1q
OUTPUT_VARIABLE CXX_VERSION
)
ELSE
()
SET
(
CXX_VERSION
""
)
ENDIF
()
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysqlbug.sh
${
CMAKE_CURRENT_BINARY_DIR
}
/mysqlbug ESCAPE_QUOTES @ONLY
)
INSTALL_SCRIPT
(
${
CMAKE_CURRENT_BINARY_DIR
}
/mysqlbug
DESTINATION
${
INSTALL_BINDIR
}
COMPONENT Server
)
ENDIF
(
UNIX
)
ENDIF
(
UNIX
)
# Really ugly, one script, "mysql_install_db", needs prefix set to ".",
# Really ugly, one script, "mysql_install_db", needs prefix set to ".",
...
@@ -198,9 +233,9 @@ SET(localstatedir ${MYSQL_DATADIR})
...
@@ -198,9 +233,9 @@ SET(localstatedir ${MYSQL_DATADIR})
# some scripts use @TARGET_LINUX@
# some scripts use @TARGET_LINUX@
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
SET
(
TARGET_LINUX
1
)
SET
(
TARGET_LINUX
"true"
)
ELSE
()
ELSE
()
SET
(
TARGET_LINUX
0
)
SET
(
TARGET_LINUX
"false"
)
ENDIF
()
ENDIF
()
# Use cmake variables to inspect dependencies for
# Use cmake variables to inspect dependencies for
...
@@ -294,7 +329,6 @@ ELSE()
...
@@ -294,7 +329,6 @@ ELSE()
mysql_zap
mysql_zap
mysqlaccess
mysqlaccess
mysqlaccess.conf
mysqlaccess.conf
mysqlbug
mysql_convert_table_format
mysql_convert_table_format
mysql_find_rows
mysql_find_rows
mysqlhotcopy
mysqlhotcopy
...
...
scripts/mysql_config.sh
View file @
9503a8e2
...
@@ -88,6 +88,8 @@ pkglibdir_rel=`echo $pkglibdir | sed -e "s;^$basedir/;;"`
...
@@ -88,6 +88,8 @@ pkglibdir_rel=`echo $pkglibdir | sed -e "s;^$basedir/;;"`
fix_path pkglibdir
$pkglibdir_rel
lib/mysql lib
fix_path pkglibdir
$pkglibdir_rel
lib/mysql lib
plugindir
=
'@pkgplugindir@'
plugindir
=
'@pkgplugindir@'
plugindir_rel
=
`
echo
$plugindir
|
sed
-e
"s;^
$basedir
/;;"
`
fix_path plugindir
$plugindir_rel
lib/mysql/plugin lib/plugin
pkgincludedir
=
'@pkgincludedir@'
pkgincludedir
=
'@pkgincludedir@'
fix_path pkgincludedir include/mysql include
fix_path pkgincludedir include/mysql include
...
...
scripts/mysqld_safe.sh
View file @
9503a8e2
...
@@ -413,6 +413,29 @@ else
...
@@ -413,6 +413,29 @@ else
DATADIR
=
@localstatedir@
DATADIR
=
@localstatedir@
fi
fi
#
# Try to find the plugin directory
#
# Use user-supplied argument
if
[
-n
"
${
PLUGIN_DIR
}
"
]
;
then
plugin_dir
=
"
${
PLUGIN_DIR
}
"
else
# Try to find plugin dir relative to basedir
for
dir
in
lib/mysql/plugin lib/plugin
do
if
[
-d
"
${
MY_BASEDIR_VERSION
}
/
${
dir
}
"
]
;
then
plugin_dir
=
"
${
MY_BASEDIR_VERSION
}
/
${
dir
}
"
break
fi
done
# Give up and use compiled-in default
if
[
-z
"
${
plugin_dir
}
"
]
;
then
plugin_dir
=
'@pkgplugindir@'
fi
fi
plugin_dir
=
"
${
plugin_dir
}${
PLUGIN_VARIANT
}
"
if
test
-z
"
$MYSQL_HOME
"
if
test
-z
"
$MYSQL_HOME
"
then
then
if
test
-r
"
$MY_BASEDIR_VERSION
/my.cnf"
&&
test
-r
"
$DATADIR
/my.cnf"
if
test
-r
"
$MY_BASEDIR_VERSION
/my.cnf"
&&
test
-r
"
$DATADIR
/my.cnf"
...
@@ -704,8 +727,6 @@ fi
...
@@ -704,8 +727,6 @@ fi
cmd
=
"
`
mysqld_ld_preload_text
`
$NOHUP_NICENESS
"
cmd
=
"
`
mysqld_ld_preload_text
`
$NOHUP_NICENESS
"
plugin_dir
=
"
${
PLUGIN_DIR
:-
$MY_BASEDIR_VERSION
/lib/mysql/plugin
}${
PLUGIN_VARIANT
}
"
for
i
in
"
$ledir
/
$MYSQLD
"
"
$defaults
"
"--basedir=
$MY_BASEDIR_VERSION
"
\
for
i
in
"
$ledir
/
$MYSQLD
"
"
$defaults
"
"--basedir=
$MY_BASEDIR_VERSION
"
\
"--datadir=
$DATADIR
"
"--plugin-dir=
$plugin_dir
"
"
$USER_OPTION
"
"--datadir=
$DATADIR
"
"--plugin-dir=
$plugin_dir
"
"
$USER_OPTION
"
do
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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