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
c903a13e
Commit
c903a13e
authored
Mar 03, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
44084ea4
273d74ea
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 @
c903a13e
...
...
@@ -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 @
c903a13e
...
...
@@ -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 @
c903a13e
...
...
@@ -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 @
c903a13e
...
...
@@ -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 @
c903a13e
...
...
@@ -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