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
7ef2f9fa
Commit
7ef2f9fa
authored
Mar 31, 2010
by
Jonathan Perkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply wlad fixes from mysql-next-mr-bugfixing
parent
089ff3df
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
13 deletions
+39
-13
cmake/install_layout.cmake
cmake/install_layout.cmake
+1
-1
cmake/install_macros.cmake
cmake/install_macros.cmake
+7
-8
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+25
-4
libmysqld/CMakeLists.txt
libmysqld/CMakeLists.txt
+5
-0
libservices/CMakeLists.txt
libservices/CMakeLists.txt
+1
-0
No files found.
cmake/install_layout.cmake
View file @
7ef2f9fa
...
@@ -171,7 +171,7 @@ SET(MYSQL_DATADIR "/var/lib/mysql")
...
@@ -171,7 +171,7 @@ SET(MYSQL_DATADIR "/var/lib/mysql")
# Clear cached variables if install layout was changed
# Clear cached variables if install layout was changed
IF
(
OLD_INSTALL_LAYOUT
)
IF
(
OLD_INSTALL_LAYOUT
)
IF
(
NOT OLD_INSTALL_LAYOUT STREQUAL INSTALL_LAYOU
R
)
IF
(
NOT OLD_INSTALL_LAYOUT STREQUAL INSTALL_LAYOU
T
)
SET
(
FORCE FORCE
)
SET
(
FORCE FORCE
)
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
...
...
cmake/install_macros.cmake
View file @
7ef2f9fa
...
@@ -43,27 +43,26 @@ ENDMACRO()
...
@@ -43,27 +43,26 @@ ENDMACRO()
# Install symbolic link to CMake target.
# Install symbolic link to CMake target.
# the link is created in the same directory as target
# the link is created in the same directory as target
# and extension will be the same as for target file.
# and extension will be the same as for target file.
MACRO
(
INSTALL_SYMLINK link
base
name target destination
)
MACRO
(
INSTALL_SYMLINK linkname target destination
)
IF
(
UNIX
)
IF
(
UNIX
)
GET_TARGET_PROPERTY
(
location
${
target
}
LOCATION
)
GET_TARGET_PROPERTY
(
location
${
target
}
LOCATION
)
GET_FILENAME_COMPONENT
(
path
${
location
}
PATH
)
GET_FILENAME_COMPONENT
(
path
${
location
}
PATH
)
GET_FILENAME_COMPONENT
(
name_we
${
location
}
NAME_WE
)
GET_FILENAME_COMPONENT
(
name
${
location
}
NAME
)
GET_FILENAME_COMPONENT
(
ext
${
location
}
EXT
)
SET
(
output
${
path
}
/
${
linkname
}
)
SET
(
output
${
path
}
/
${
linkbasename
}${
ext
}
)
ADD_CUSTOM_COMMAND
(
ADD_CUSTOM_COMMAND
(
OUTPUT
${
output
}
OUTPUT
${
output
}
COMMAND
${
CMAKE_COMMAND
}
ARGS -E remove -f
${
output
}
COMMAND
${
CMAKE_COMMAND
}
ARGS -E remove -f
${
output
}
COMMAND
${
CMAKE_COMMAND
}
ARGS -E create_symlink
COMMAND
${
CMAKE_COMMAND
}
ARGS -E create_symlink
${
name
_we
}${
ext
}
${
name
}
${
link
basename
}${
ext
}
${
link
name
}
WORKING_DIRECTORY
${
path
}
WORKING_DIRECTORY
${
path
}
DEPENDS
${
target
}
DEPENDS
${
target
}
)
)
ADD_CUSTOM_TARGET
(
symlink_
${
link
basename
}${
ext
}
ADD_CUSTOM_TARGET
(
symlink_
${
link
name
}
ALL
ALL
DEPENDS
${
output
}
)
DEPENDS
${
output
}
)
SET_TARGET_PROPERTIES
(
symlink_
${
link
basename
}${
ext
}
PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
SET_TARGET_PROPERTIES
(
symlink_
${
link
name
}
PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
IF
(
CMAKE_GENERATOR MATCHES
"Xcode"
)
IF
(
CMAKE_GENERATOR MATCHES
"Xcode"
)
# For Xcode, replace project config with install config
# For Xcode, replace project config with install config
STRING
(
REPLACE
"
${
CMAKE_CFG_INTDIR
}
"
STRING
(
REPLACE
"
${
CMAKE_CFG_INTDIR
}
"
...
...
libmysql/CMakeLists.txt
View file @
7ef2f9fa
...
@@ -153,15 +153,26 @@ SET(LIBS clientlib dbug strings vio mysys ${ZLIB_LIBRARY} ${SSL_LIBRARIES})
...
@@ -153,15 +153,26 @@ SET(LIBS clientlib dbug strings vio mysys ${ZLIB_LIBRARY} ${SSL_LIBRARIES})
# Merge several convenience libraries into one big mysqlclient
# Merge several convenience libraries into one big mysqlclient
# and link them together into shared library.
# and link them together into shared library.
MERGE_LIBRARIES
(
mysqlclient STATIC
${
LIBS
}
)
MERGE_LIBRARIES
(
mysqlclient STATIC
${
LIBS
}
)
IF
(
UNIX
)
INSTALL_SYMLINK
(
${
CMAKE_STATIC_LIBRARY_PREFIX
}
mysqlclient_r mysqlclient
${
INSTALL_LIBDIR
}
)
ENDIF
()
# Visual Studio users need debug static library for debug projects
# Visual Studio users need debug static library for debug projects
IF
(
MSVC
)
IF
(
MSVC
)
INSTALL_DEBUG_TARGET
(
mysqlclient DESTINATION
${
INSTALL_LIBDIR
}
/debug
)
INSTALL_DEBUG_TARGET
(
mysqlclient DESTINATION
${
INSTALL_LIBDIR
}
/debug
)
ENDIF
()
ENDIF
()
IF
(
UNIX
)
MACRO
(
GET_VERSIONED_LIBNAME LIBNAME EXTENSION VERSION OUTNAME
)
SET
(
DOT_VERSION
".
${
VERSION
}
"
)
IF
(
DOT_VERSION STREQUAL
"."
)
SET
(
DOT_VERSION
""
)
ENDIF
()
IF
(
APPLE
)
SET
(
${
OUTNAME
}
${
LIBNAME
}${
DOT_VERSION
}${
EXTENSION
}
)
ELSE
()
SET
(
${
OUTNAME
}
${
LIBNAME
}${
EXTENSION
}${
DOT_VERSION
}
)
ENDIF
()
ENDMACRO
()
ENDIF
()
IF
(
NOT DISABLE_SHARED
)
IF
(
NOT DISABLE_SHARED
)
MERGE_LIBRARIES
(
libmysql SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
)
MERGE_LIBRARIES
(
libmysql SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
)
IF
(
UNIX
)
IF
(
UNIX
)
...
@@ -182,6 +193,16 @@ IF(NOT DISABLE_SHARED)
...
@@ -182,6 +193,16 @@ IF(NOT DISABLE_SHARED)
#(mysqlclient in this case)
#(mysqlclient in this case)
SET_TARGET_PROPERTIES
(
mysqlclient PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
SET_TARGET_PROPERTIES
(
mysqlclient PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
INSTALL_SYMLINK
(
${
CMAKE_SHARED_LIBRARY_PREFIX
}
mysqlclient_r libmysql
${
INSTALL_LIBDIR
}
)
# Install 3 links to libmysqlclient.so (client_r)
FOREACH
(
ver
""
"
${
SHARED_LIB_MAJOR_VERSION
}
"
"
${
SHARED_LIB_MAJOR_VERSION
}
.0.0"
)
GET_VERSIONED_LIBNAME
(
"
${
CMAKE_SHARED_LIBRARY_PREFIX
}
mysqlclient_r"
"
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
"
"
${
ver
}
"
linkname
)
INSTALL_SYMLINK
(
${
linkname
}
libmysql
${
INSTALL_LIBDIR
}
)
ENDFOREACH
()
ENDIF
()
ENDIF
()
ENDIF
()
ENDIF
()
libmysqld/CMakeLists.txt
View file @
7ef2f9fa
...
@@ -131,6 +131,11 @@ IF(MSVC)
...
@@ -131,6 +131,11 @@ IF(MSVC)
INSTALL_DEBUG_TARGET
(
mysqlserver DESTINATION
${
INSTALL_LIBDIR
}
/debug
)
INSTALL_DEBUG_TARGET
(
mysqlserver DESTINATION
${
INSTALL_LIBDIR
}
/debug
)
ENDIF
()
ENDIF
()
IF
(
UNIX
)
INSTALL_DEBUG_TARGET
(
mysqlserver DESTINATION
${
INSTALL_LIBDIR
}
RENAME
${
CMAKE_STATIC_LIBRARY_PREFIX
}
/mysqld-debug
)
ENDIF
()
IF
(
MSVC AND NOT DISABLE_SHARED
)
IF
(
MSVC AND NOT DISABLE_SHARED
)
MERGE_LIBRARIES
(
libmysqld SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
)
MERGE_LIBRARIES
(
libmysqld SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
)
ENDIF
()
ENDIF
()
libservices/CMakeLists.txt
View file @
7ef2f9fa
...
@@ -18,3 +18,4 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
...
@@ -18,3 +18,4 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
SET
(
MYSQLSERVICES_SOURCES my_snprintf_service.c thd_alloc_service.c
)
SET
(
MYSQLSERVICES_SOURCES my_snprintf_service.c thd_alloc_service.c
)
ADD_LIBRARY
(
mysqlservices
${
MYSQLSERVICES_SOURCES
}
)
ADD_LIBRARY
(
mysqlservices
${
MYSQLSERVICES_SOURCES
}
)
INSTALL
(
TARGETS mysqlservices DESTINATION
${
INSTALL_LIBDIR
}
)
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