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
4559fb1f
Commit
4559fb1f
authored
Mar 03, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
3929d2c3
99714784
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
22 deletions
+45
-22
cmake/configure.pl
cmake/configure.pl
+6
-0
cmake/plugin.cmake
cmake/plugin.cmake
+5
-0
mysql-test/CMakeLists.txt
mysql-test/CMakeLists.txt
+5
-7
scripts/CMakeLists.txt
scripts/CMakeLists.txt
+23
-13
sql/CMakeLists.txt
sql/CMakeLists.txt
+6
-2
No files found.
cmake/configure.pl
View file @
4559fb1f
...
...
@@ -179,6 +179,11 @@ foreach my $option (@ARGV)
$cmakeargs
=
$cmakeargs
.
"
-DMYSQL_DATADIR=
"
.
substr
(
$option
,
14
);
next
;
}
if
(
$option
=~
/with-debug=full/
)
{
$cmakeargs
=
$cmakeargs
.
"
-DWITH_DEBUG_FULL=1
";
next
;
}
$option
=
uc
(
$option
);
$option
=~
s/-/_/g
;
...
...
@@ -186,5 +191,6 @@ foreach my $option (@ARGV)
}
print
("
configure.pl : calling cmake
$srcdir
$cmakeargs
\n
");
unlink
("
CMakeCache.txt
");
my
$rc
=
system
("
cmake
$srcdir
$cmakeargs
");
exit
(
$rc
);
cmake/plugin.cmake
View file @
4559fb1f
...
...
@@ -52,6 +52,11 @@ MACRO(MYSQL_ADD_PLUGIN)
SET
(
WITH_
${
plugin
}
1
)
ENDIF
()
IF
(
WITH_MAX_NO_NDB
)
SET
(
WITH_MAX 1
)
SET
(
WITHOUT_NDBCLUSTER 1
)
ENDIF
()
IF
(
WITH_
${
plugin
}
_STORAGE_ENGINE
OR WITH_{$plugin}
OR WITH_ALL
...
...
mysql-test/CMakeLists.txt
View file @
4559fb1f
...
...
@@ -64,12 +64,6 @@ ELSE()
ENDIF
()
ADD_CUSTOM_TARGET
(
test-force
COMMAND
${
SETCONFIG_COMMAND
}
COMMAND
${
SETOS_COMMAND
}
COMMAND perl mysql-test-run.pl --force
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
SET
(
EXP --experimental=collections/default.experimental
)
IF
(
WIN32
)
...
...
@@ -100,6 +94,11 @@ SET(TEST_BT_START
COMMAND
${
SET_ENV
}
MTR_BUILD_THREAD=auto
)
ADD_CUSTOM_TARGET
(
test-force
${
TEST_BT_START
}
COMMAND
${
MTR_FORCE
}
)
ADD_CUSTOM_TARGET
(
test-bt
${
TEST_BT_START
}
COMMAND
${
MTR_FORCE
}
--comment=normal --timer --skip-ndbcluster --report-features
${
EXP
}
...
...
@@ -124,4 +123,3 @@ ADD_CUSTOM_TARGET(test-bt-debug
COMMAND
${
MTR_FORCE
}
--comment=debug --timer --skip-ndbcluster --skip-rpl --report-features
${
EXP
}
)
scripts/CMakeLists.txt
View file @
4559fb1f
...
...
@@ -20,31 +20,41 @@ IF(NOT CMAKE_CROSSCOMPILING)
TARGET_LINK_LIBRARIES
(
comp_sql
)
ENDIF
()
SET
(
FIX_PRIVS_IN
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_system_tables.sql
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_system_tables_fix.sql
)
SET
(
FIX_PRIVILEGES_SQL
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_fix_privilege_tables.sql
)
# Build mysql_fix_privilege_tables.sql (concatenate 2 sql scripts)
FILE
(
WRITE
${
FIX_PRIVILEGES_SQL
}
""
)
FOREACH
(
FILENAME
${
FIX_PRIVS_IN
}
)
FILE
(
READ
"
${
FILENAME
}
"
CONTENTS
)
FILE
(
APPEND
${
FIX_PRIVILEGES_SQL
}
"
${
CONTENTS
}
"
)
ENDFOREACH
()
IF
(
NOT WIN32 OR CMAKE_CROSSCOMPILING
)
FIND_PROGRAM
(
CAT_EXECUTABLE cat DOC
"path to the executable"
)
ENDIF
()
IF
(
CAT_EXECUTABLE
)
SET
(
CAT_COMMAND COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
CMAKE_CURRENT_SOURCE_DIR
}
${
CAT_EXECUTABLE
}
mysql_system_tables.sql mysql_system_tables_fix.sql >
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_fix_privilege_tables.sql
)
ELSEIF
(
WIN32
)
FILE
(
TO_NATIVE_PATH
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_fix_privilege_tables.sql
native_outfile
)
SET
(
CAT_COMMAND
COMMAND
${
CMAKE_COMMAND
}
-E chdir
${
CMAKE_CURRENT_SOURCE_DIR
}
cmd /c copy /b mysql_system_tables.sql + mysql_system_tables_fix.sql
${
native_outfile
}
)
ELSE
()
MESSAGE
(
FATAL_ERROR
"Cannot concatenate files"
)
ENDIF
()
# Build mysql_fix_privilege_tables.c
ADD_CUSTOM_COMMAND
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/mysql_fix_privilege_tables_sql.c
${
CAT_COMMAND
}
COMMAND comp_sql
mysql_fix_privilege_tables
mysql_fix_privilege_tables.sql
mysql_fix_privilege_tables_sql.c
DEPENDS comp_sql
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
DEPENDS comp_sql
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_system_tables.sql
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql_system_tables_fix.sql
)
# Add target for the above to be built
...
...
sql/CMakeLists.txt
View file @
4559fb1f
...
...
@@ -238,8 +238,12 @@ ADD_CUSTOM_TARGET(dist
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
ADD_CUSTOM_TARGET
(
distclean
COMMAND
${
CMAKE_COMMAND
}
-E echo WARNING: distclean target is not functional
COMMAND
${
CMAKE_COMMAND
}
-E echo Use 'bzr clean-tree' with --unknown and/or
--ignored parameter instead
VERBATIM
)
IF
(
INSTALL_LAYOUT STREQUAL
"STANDALONE"
)
...
...
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