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
1ed6500c
Commit
1ed6500c
authored
Nov 17, 2009
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support out of source build with the wrapper configure.pl script
parent
a15d4127
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
9 deletions
+23
-9
cmake/configure.pl
cmake/configure.pl
+23
-9
No files found.
cmake/configure.pl
View file @
1ed6500c
#!/usr/bin/perl
#!/usr/bin/perl
use
Switch
;
use
strict
;
use
Cwd
'
abs_path
';
use
File::
Basename
;
my
$cmakeargs
=
"";
my
$cmakeargs
=
"";
foreach
$option
(
@ARGV
)
# Find source root directory
# Assume this script is in <srcroot>/cmake
my
$srcdir
=
dirname
(
dirname
(
abs_path
(
$0
)));
foreach
my
$option
(
@ARGV
)
{
{
if
(
substr
(
$option
,
0
,
2
)
==
"
--
")
if
(
substr
(
$option
,
0
,
2
)
==
"
--
")
{
{
$option
=
substr
(
$option
,
2
);
$option
=
substr
(
$option
,
2
);
}
}
if
(
$option
=~
/srcdir/
)
{
$srcdir
=
substr
(
$option
,
7
);
next
;
}
if
(
$option
=~
/help/
)
if
(
$option
=~
/help/
)
{
{
system
("
cmake -LH
");
system
("
cmake
${srcdir}
-LH
");
exit
(
0
);
exit
(
0
);
}
}
if
(
$option
=~
/with-plugins=/
)
if
(
$option
=~
/with-plugins=/
)
{
{
my
@plugins
=
split
(
/,/
,
substr
(
$option
,
13
));
my
@plugins
=
split
(
/,/
,
substr
(
$option
,
13
));
foreach
$p
(
@plugins
)
foreach
my
$p
(
@plugins
)
{
{
$p
=~
s/-/_/g
;
$p
=~
s/-/_/g
;
$cmakeargs
=
$cmakeargs
.
"
-DWITH_
"
.
uc
(
$p
)
.
"
=1
";
$cmakeargs
=
$cmakeargs
.
"
-DWITH_
"
.
uc
(
$p
)
.
"
=1
";
...
@@ -60,12 +73,12 @@ foreach $option (@ARGV)
...
@@ -60,12 +73,12 @@ foreach $option (@ARGV)
$cmakeargs
=
$cmakeargs
.
"
-DCMAKE_INSTALL_PREFIX=
"
.
$cmake_install_prefix
;
$cmakeargs
=
$cmakeargs
.
"
-DCMAKE_INSTALL_PREFIX=
"
.
$cmake_install_prefix
;
next
;
next
;
}
}
if
(
$option
s
=~
/extra-charsets=all/
)
if
(
$option
=~
/extra-charsets=all/
)
{
{
$cmakeargs
=
$cmakeargs
.
"
-DWITH_CHARSETS=all
";
$cmakeargs
=
$cmakeargs
.
"
-DWITH_CHARSETS=all
";
next
;
next
;
}
}
if
(
$option
s
=~
/extra-charsets=complex/
)
if
(
$option
=~
/extra-charsets=complex/
)
{
{
$cmakeargs
=
$cmakeargs
.
"
-DWITH_CHARSETS=complex
";
$cmakeargs
=
$cmakeargs
.
"
-DWITH_CHARSETS=complex
";
next
;
next
;
...
@@ -74,6 +87,7 @@ foreach $option (@ARGV)
...
@@ -74,6 +87,7 @@ foreach $option (@ARGV)
$option
=~
s/-/_/g
;
$option
=~
s/-/_/g
;
$cmakeargs
=
$cmakeargs
.
"
-D
"
.
$option
.
"
=1
";
$cmakeargs
=
$cmakeargs
.
"
-D
"
.
$option
.
"
=1
";
}
}
print
("
configure.pl : calling cmake .
$cmakeargs
\n
");
my
$rc
=
system
("
cmake .
$cmakeargs
");
print
("
configure.pl : calling cmake
$srcdir
$cmakeargs
\n
");
my
$rc
=
system
("
cmake
$srcdir
$cmakeargs
");
exit
(
$rc
);
exit
(
$rc
);
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