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
c063892d
Commit
c063892d
authored
Apr 27, 2013
by
Leif Walsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#6 rename cmake functions duplicated in mysql to prevent name clash
parent
ed5ce2d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
cmake_modules/TokuMergeLibs.cmake
cmake_modules/TokuMergeLibs.cmake
+5
-5
portability/CMakeLists.txt
portability/CMakeLists.txt
+1
-1
src/CMakeLists.txt
src/CMakeLists.txt
+1
-1
No files found.
cmake_modules/TokuMergeLibs.cmake
View file @
c063892d
# Merge static libraries into a big static lib. The resulting library
# should not not have dependencies on other static libraries.
# We use it in MySQL to merge mysys,dbug,vio etc into mysqlclient
FUNCTION
(
GET_DEPENDEND_OS_LIBS target result
)
FUNCTION
(
TOKU_
GET_DEPENDEND_OS_LIBS target result
)
SET
(
deps
${${
target
}
_LIB_DEPENDS
}
)
IF
(
deps
)
FOREACH
(
lib
${
deps
}
)
...
...
@@ -15,9 +15,9 @@ FUNCTION(GET_DEPENDEND_OS_LIBS target result)
ENDFOREACH
()
ENDIF
()
SET
(
${
result
}
${
ret
}
PARENT_SCOPE
)
ENDFUNCTION
(
GET_DEPENDEND_OS_LIBS
)
ENDFUNCTION
(
TOKU_
GET_DEPENDEND_OS_LIBS
)
MACRO
(
MERGE_STATIC_LIBS TARGET OUTPUT_NAME LIBS_TO_MERGE
)
MACRO
(
TOKU_
MERGE_STATIC_LIBS TARGET OUTPUT_NAME LIBS_TO_MERGE
)
# To produce a library we need at least one source file.
# It is created by ADD_CUSTOM_COMMAND below and will helps
# also help to track dependencies.
...
...
@@ -40,7 +40,7 @@ MACRO(MERGE_STATIC_LIBS TARGET OUTPUT_NAME LIBS_TO_MERGE)
SET
(
STATIC_LIBS
${
STATIC_LIBS
}
${
LIB_LOCATION
}
)
ADD_DEPENDENCIES
(
${
TARGET
}
${
LIB
}
)
# Extract dependend OS libraries
GET_DEPENDEND_OS_LIBS
(
${
LIB
}
LIB_OSLIBS
)
TOKU_
GET_DEPENDEND_OS_LIBS
(
${
LIB
}
LIB_OSLIBS
)
LIST
(
APPEND OSLIBS
${
LIB_OSLIBS
}
)
ELSE
()
# This is a shared library our static lib depends on.
...
...
@@ -97,4 +97,4 @@ MACRO(MERGE_STATIC_LIBS TARGET OUTPUT_NAME LIBS_TO_MERGE)
)
ENDIF
()
ENDIF
()
ENDMACRO
(
MERGE_STATIC_LIBS
)
ENDMACRO
(
TOKU_
MERGE_STATIC_LIBS
)
portability/CMakeLists.txt
View file @
c063892d
...
...
@@ -21,7 +21,7 @@ add_library(tokuportability_static_conv STATIC ${tokuportability_srcs})
set_target_properties
(
tokuportability_static_conv PROPERTIES POSITION_INDEPENDENT_CODE ON
)
add_dependencies
(
tokuportability_static_conv build_jemalloc
)
set
(
tokuportability_source_libs tokuportability_static_conv jemalloc
${
CMAKE_THREAD_LIBS_INIT
}
${
EXTRA_SYSTEM_LIBS
}
)
merge_static_libs
(
${
LIBTOKUPORTABILITY
}
_static
${
LIBTOKUPORTABILITY
}
_static
"
${
tokuportability_source_libs
}
"
)
toku_
merge_static_libs
(
${
LIBTOKUPORTABILITY
}
_static
${
LIBTOKUPORTABILITY
}
_static
"
${
tokuportability_source_libs
}
"
)
maybe_add_gcov_to_libraries
(
${
LIBTOKUPORTABILITY
}
tokuportability_static_conv
)
set_property
(
TARGET
${
LIBTOKUPORTABILITY
}
tokuportability_static_conv APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE
)
...
...
src/CMakeLists.txt
View file @
c063892d
...
...
@@ -26,7 +26,7 @@ add_library(tokudb_static_conv STATIC ${tokudb_srcs})
add_dependencies
(
tokudb_static_conv install_tdb_h generate_log_code
)
set_target_properties
(
tokudb_static_conv PROPERTIES POSITION_INDEPENDENT_CODE ON
)
set
(
tokudb_source_libs tokudb_static_conv locktree_static ft_static util_static lzma
)
merge_static_libs
(
${
LIBTOKUDB
}
_static
${
LIBTOKUDB
}
_static
"
${
tokudb_source_libs
}
"
)
toku_
merge_static_libs
(
${
LIBTOKUDB
}
_static
${
LIBTOKUDB
}
_static
"
${
tokudb_source_libs
}
"
)
## add gcov and define _GNU_SOURCE
maybe_add_gcov_to_libraries
(
${
LIBTOKUDB
}
tokudb_static_conv
)
...
...
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