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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8800cc90
Commit
8800cc90
authored
Nov 28, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
ac8dd6be
835d8b62
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
77 additions
and
19 deletions
+77
-19
CMakeLists.txt
CMakeLists.txt
+6
-1
client/CMakeLists.txt
client/CMakeLists.txt
+1
-1
cmake/os/Windows.cmake
cmake/os/Windows.cmake
+2
-0
cmake/os/WindowsCache.cmake
cmake/os/WindowsCache.cmake
+4
-0
extra/CMakeLists.txt
extra/CMakeLists.txt
+3
-1
plugin/feedback/CMakeLists.txt
plugin/feedback/CMakeLists.txt
+1
-1
plugin/feedback/feedback.cc
plugin/feedback/feedback.cc
+1
-1
scripts/CMakeLists.txt
scripts/CMakeLists.txt
+2
-8
sql/CMakeLists.txt
sql/CMakeLists.txt
+40
-0
sql/sql_profile.cc
sql/sql_profile.cc
+4
-0
sql/winservice.c
sql/winservice.c
+1
-1
storage/maria/unittest/ma_maria_log_cleanup.c
storage/maria/unittest/ma_maria_log_cleanup.c
+3
-0
storage/maria/unittest/test_file.h
storage/maria/unittest/test_file.h
+3
-1
storage/sphinx/CMakeLists.txt
storage/sphinx/CMakeLists.txt
+1
-1
win/packaging/CPackWixConfig.cmake
win/packaging/CPackWixConfig.cmake
+1
-1
win/packaging/ca/CustomAction.cpp
win/packaging/ca/CustomAction.cpp
+3
-1
win/packaging/create_msi.cmake.in
win/packaging/create_msi.cmake.in
+1
-1
No files found.
CMakeLists.txt
View file @
8800cc90
...
...
@@ -318,6 +318,11 @@ ENDIF()
INCLUDE
(
cmake/abi_check.cmake
)
INCLUDE
(
cmake/tags.cmake
)
IF
(
WIN32
)
ADD_SUBDIRECTORY
(
win/packaging
)
ADD_SUBDIRECTORY
(
win/upgrade_wizard
)
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
...
...
@@ -349,7 +354,7 @@ IF(WIN32)
ELSE
()
SET
(
CPACK_GENERATOR
"TGZ"
)
ENDIF
()
ADD_SUBDIRECTORY
(
packaging/WiX
)
# Create a single package with "make package"
# (see http://public.kitware.com/Bug/view.php?id=11452)
...
...
client/CMakeLists.txt
View file @
8800cc90
...
...
@@ -70,7 +70,7 @@ TARGET_LINK_LIBRARIES(mysqlslap mysqlclient)
# "WIN32" also covers 64 bit. "echo" is used in some files below "mysql-test/".
IF
(
WIN32
)
MYSQL_ADD_EXECUTABLE
(
echo echo.c
)
MYSQL_ADD_EXECUTABLE
(
echo echo.c
COMPONENT Junk
)
ENDIF
(
WIN32
)
SET_TARGET_PROPERTIES
(
mysqlcheck mysqldump mysqlimport mysql_upgrade mysqlshow mysqlslap mysql_plugin
...
...
cmake/os/Windows.cmake
View file @
8800cc90
...
...
@@ -89,6 +89,8 @@ IF(MSVC)
FOREACH
(
type EXE SHARED MODULE
)
STRING
(
REGEX REPLACE
"/STACK:([^ ]+)"
""
CMAKE_
${
type
}
_LINKER_FLAGS
"
${
CMAKE_
${
type
}
_LINKER_FLAGS
}
"
)
STRING
(
REGEX REPLACE
"/INCREMENTAL:([^ ]+)"
"/INCREMENTAL:NO"
CMAKE_
${
type
}
_LINKER_FLAGS_RELWITHDEBINFO
"
${
CMAKE_
${
type
}
_LINKER_FLAGS_RELWITHDEBINFO
}
"
)
STRING
(
REGEX REPLACE
"/INCREMENTAL$"
"/INCREMENTAL:NO"
CMAKE_
${
type
}
_LINKER_FLAGS_RELWITHDEBINFO
"
${
CMAKE_
${
type
}
_LINKER_FLAGS_RELWITHDEBINFO
}
"
)
SET
(
CMAKE_
${
type
}
_LINKER_FLAGS_RELWITHDEBINFO
"
${
CMAKE_
${
type
}
_LINKER_FLAGS_RELWITHDEBINFO
}
/OPT:REF /release"
)
ENDFOREACH
()
# Mark 32 bit executables large address aware so they can
...
...
cmake/os/WindowsCache.cmake
View file @
8800cc90
...
...
@@ -58,6 +58,7 @@ SET(HAVE_FCNTL_NONBLOCK CACHE INTERNAL "")
SET
(
HAVE_FCONVERT CACHE INTERNAL
""
)
SET
(
HAVE_FDATASYNC CACHE INTERNAL
""
)
SET
(
HAVE_DECL_FDATASYNC CACHE INTERNAL
""
)
SET
(
HAVE_FEDISABLEEXCEPT CACHE INTERNAL
""
)
SET
(
HAVE_FENV_H CACHE INTERNAL
""
)
SET
(
HAVE_FESETROUND CACHE INTERNAL
""
)
SET
(
HAVE_FGETLN CACHE INTERNAL
""
)
...
...
@@ -126,6 +127,7 @@ SET(HAVE_MLOCK CACHE INTERNAL "")
SET
(
HAVE_MLOCKALL CACHE INTERNAL
""
)
SET
(
HAVE_MMAP CACHE INTERNAL
""
)
SET
(
HAVE_MMAP64 CACHE INTERNAL
""
)
SET
(
HAVE_NETDB_H CACHE INTERNAL
""
)
SET
(
HAVE_NETINET_IN6_H CACHE INTERNAL
""
)
SET
(
HAVE_NETINET_IN_H CACHE INTERNAL
""
)
SET
(
HAVE_NL_LANGINFO CACHE INTERNAL
""
)
...
...
@@ -276,6 +278,7 @@ SET(HAVE_SYS_PTE_H CACHE INTERNAL "")
SET
(
HAVE_SYS_RESOURCE_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_SELECT_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_SHM_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_SOCKIO_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_SOCKET_H CACHE INTERNAL
""
)
SET
(
HAVE_SYS_STAT_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_SYS_STREAM_H CACHE INTERNAL
""
)
...
...
@@ -333,6 +336,7 @@ SET(STRUCT_DIRENT_HAS_D_INO CACHE INTERNAL "")
SET
(
STRUCT_DIRENT_HAS_D_INO CACHE INTERNAL
""
)
SET
(
STRUCT_DIRENT_HAS_D_NAMLEN CACHE INTERNAL
""
)
SET
(
TIME_WITH_SYS_TIME CACHE INTERNAL
""
)
SET
(
TIME_T_UNSIGNED 1 CACHE INTERNAL
""
)
SET
(
TIOCSTAT_IN_SYS_IOCTL CACHE INTERNAL
""
)
SET
(
HAVE_S_IROTH CACHE INTERNAL
""
)
SET
(
HAVE_S_IFIFO CACHE INTERNAL
""
)
...
...
extra/CMakeLists.txt
View file @
8800cc90
...
...
@@ -61,6 +61,7 @@ MYSQL_ADD_EXECUTABLE(perror perror.c)
ADD_DEPENDENCIES
(
perror GenError
)
TARGET_LINK_LIBRARIES
(
perror mysys
)
IF
(
UNIX
)
MYSQL_ADD_EXECUTABLE
(
resolveip resolveip.c
)
TARGET_LINK_LIBRARIES
(
resolveip mysys
)
IF
(
CMAKE_SYSTEM_NAME STREQUAL
"SunOS"
)
...
...
@@ -69,8 +70,9 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
MY_SEARCH_LIBS
(
inet_aton
"nsl;socket;resolv"
SOLARIS_NSL
)
TARGET_LINK_LIBRARIES
(
resolveip
${
SOLARIS_NSL
}
)
ENDIF
()
ENDIF
()
MYSQL_ADD_EXECUTABLE
(
replace replace.c
)
MYSQL_ADD_EXECUTABLE
(
replace replace.c
COMPONENT Junk
)
TARGET_LINK_LIBRARIES
(
replace mysys
)
IF
(
UNIX
)
MYSQL_ADD_EXECUTABLE
(
innochecksum innochecksum.c
)
...
...
plugin/feedback/CMakeLists.txt
View file @
8800cc90
...
...
@@ -12,7 +12,7 @@ ENDIF(HAVE_NETDB_H)
IF
(
WIN32
)
#SET(FEEDBACK_LIBS Ws2_32)
MYSQL_ADD_PLUGIN
(
FEEDBACK
${
FEEDBACK_SOURCES
}
STATIC_ONLY
)
MYSQL_ADD_PLUGIN
(
FEEDBACK
${
FEEDBACK_SOURCES
}
STATIC_ONLY
DEFAULT
)
ELSE
(
WIN32
)
MYSQL_ADD_PLUGIN
(
FEEDBACK
${
FEEDBACK_SOURCES
}
)
ENDIF
(
WIN32
)
plugin/feedback/feedback.cc
View file @
8800cc90
...
...
@@ -231,7 +231,7 @@ static int init(void *p)
i_s_feedback
->
idx_field1
=
0
;
///< virtual index on the 1st col
#define PSI_register(X) \
PSI_server->register_ ## X("feedback", X ## _list, array_elements(X ## _list))
if(PSI_server)
PSI_server->register_ ## X("feedback", X ## _list, array_elements(X ## _list))
PSI_register
(
mutex
);
PSI_register
(
cond
);
...
...
scripts/CMakeLists.txt
View file @
8800cc90
...
...
@@ -203,18 +203,12 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.sh
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_install_db ESCAPE_QUOTES @ONLY
)
SET
(
DEST
${
INSTALL_SCRIPTDIR
}
)
SET
(
EXT
)
ELSE
()
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_install_db.pl.in
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_install_db.pl ESCAPE_QUOTES @ONLY
)
SET
(
DEST
${
INSTALL_SCRIPTDIR
}
)
SET
(
EXT
".pl"
)
ENDIF
()
INSTALL_SCRIPT
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_install_db
${
EXT
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_install_db"
DESTINATION
${
DEST
}
COMPONENT Server
)
ENDIF
()
SET
(
prefix
"
${
CMAKE_INSTALL_PREFIX
}
"
)
...
...
sql/CMakeLists.txt
View file @
8800cc90
...
...
@@ -303,6 +303,46 @@ ELSE()
ENDIF
()
ENDIF
()
IF
(
WIN32
)
SET
(
my_bootstrap_sql
${
CMAKE_CURRENT_BINARY_DIR
}
/my_bootstrap.sql
)
FILE
(
TO_NATIVE_PATH
${
my_bootstrap_sql
}
native_outfile
)
# Create bootstrapper SQL script
ADD_CUSTOM_COMMAND
(
OUTPUT
${
my_bootstrap_sql
}
COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
CMAKE_SOURCE_DIR
}
/scripts
cmd /c copy mysql_system_tables.sql+mysql_system_tables_data.sql+fill_help_tables.sql
${
native_outfile
}
DEPENDS
${
CMAKE_SOURCE_DIR
}
/scripts/mysql_system_tables.sql
${
CMAKE_SOURCE_DIR
}
/scripts/mysql_system_tables_data.sql
${
CMAKE_SOURCE_DIR
}
/scripts/fill_help_tables.sql
)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_bootstrap_sql.c
COMMAND comp_sql
mysql_bootstrap_sql
${
CMAKE_CURRENT_BINARY_DIR
}
/my_bootstrap.sql
mysql_bootstrap_sql.c
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
DEPENDS comp_sql
${
my_bootstrap_sql
}
)
MYSQL_ADD_EXECUTABLE
(
mysql_install_db
mysql_install_db.cc
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_bootstrap_sql.c
COMPONENT Server
)
TARGET_LINK_LIBRARIES
(
mysql_install_db mysys
)
ADD_LIBRARY
(
winservice STATIC winservice.c
)
TARGET_LINK_LIBRARIES
(
winservice shell32
)
MYSQL_ADD_EXECUTABLE
(
mysql_upgrade_service
mysql_upgrade_service.cc
COMPONENT Server
)
TARGET_LINK_LIBRARIES
(
mysql_upgrade_service mysys winservice
)
ENDIF
()
ADD_CUSTOM_TARGET
(
show-dist-name
COMMAND
${
CMAKE_COMMAND
}
-E echo
"
${
CPACK_PACKAGE_FILE_NAME
}
"
)
...
...
sql/sql_profile.cc
View file @
8800cc90
...
...
@@ -36,6 +36,10 @@
#include "sql_show.h" // schema_table_store_record
#include "sql_class.h" // THD
#ifdef _WIN32
#pragma comment(lib,"psapi.lib")
#endif
#define TIME_FLOAT_DIGITS 9
/** two vals encoded: (len*100)+dec */
#define TIME_I_S_DECIMAL_SIZE (TIME_FLOAT_DIGITS*100)+(TIME_FLOAT_DIGITS-3)
...
...
sql/winservice.c
View file @
8800cc90
...
...
@@ -8,7 +8,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <shellapi.h>
/*
Get version from an executable file
...
...
storage/maria/unittest/ma_maria_log_cleanup.c
View file @
8800cc90
...
...
@@ -15,6 +15,9 @@
#include "../maria_def.h"
#include <my_dir.h>
#ifdef _WIN32
#include <direct.h>
/* rmdir */
#endif
my_bool
maria_log_remove
(
const
char
*
testdir
)
{
...
...
storage/maria/unittest/test_file.h
View file @
8800cc90
...
...
@@ -15,7 +15,9 @@
#include <m_string.h>
#include "../ma_pagecache.h"
#ifdef _WIN32
#include <direct.h>
#endif
/*
File content descriptor
*/
...
...
storage/sphinx/CMakeLists.txt
View file @
8800cc90
ADD_DEFINITIONS
(
-DMYSQL_SERVER
)
IF
(
MSVC
)
TARGET_
LINK_LIBRARIES
(
ws2_32
)
LINK_LIBRARIES
(
ws2_32
)
ENDIF
(
MSVC
)
MYSQL_ADD_PLUGIN
(
sphinx ha_sphinx.cc STORAGE_ENGINE
)
win/packaging/CPackWixConfig.cmake
View file @
8800cc90
...
...
@@ -9,7 +9,7 @@ IF(ESSENTIALS)
ENDIF
()
ELSE
()
SET
(
CPACK_COMPONENTS_USED
"Server;Client;Development;SharedLibraries;Embedded;D
ebuginfo;Documentation;IniFiles;Readme;Server_Scripts;scripts;DebugBinaries
"
)
"Server;Client;Development;SharedLibraries;Embedded;D
ocumentation;IniFiles;Readme;Debuginfo
"
)
ENDIF
()
SET
(
WIX_FEATURE_MySQLServer_EXTRA_FEATURES
"DBInstance;SharedClientServerComponents"
)
...
...
win/packaging/ca/CustomAction.cpp
View file @
8800cc90
...
...
@@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#define UNICODE
#endif
#include <winsock2.h>
#include <windows.h>
#include <winreg.h>
#include <msi.h>
...
...
@@ -26,7 +27,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <string.h>
#include <strsafe.h>
#include <assert.h>
#include <shellapi.h>
#include <stdlib.h>
#include <winservice.h>
#define ONE_MB 1048576
...
...
win/packaging/create_msi.cmake.in
View file @
8800cc90
...
...
@@ -7,7 +7,7 @@ SET(CMAKE_CFG_INTDIR "@CMAKE_CFG_INTDIR@")
SET(VERSION "@VERSION@")
SET(MAJOR_VERSION "@MAJOR_VERSION@")
SET(MINOR_VERSION "@MINOR_VERSION@")
SET(PATCH_VERSION "@PATCH@")
SET(PATCH_VERSION "@PATCH
_VERSION
@")
SET(CMAKE_SIZEOF_VOID_P @CMAKE_SIZEOF_VOID_P@)
SET(MANUFACTURER "@MANUFACTURER@")
SET(WIXCA_LOCATION "@WIXCA_LOCATION@")
...
...
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