Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
400eadb6
Commit
400eadb6
authored
May 21, 2018
by
Matthew Brett
Browse files
Fix up some library builds
parent
2c9e7808
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
library_builders.sh
library_builders.sh
+5
-11
tests/test_library_builders.sh
tests/test_library_builders.sh
+4
-1
No files found.
library_builders.sh
View file @
400eadb6
...
...
@@ -74,21 +74,15 @@ function build_simple {
function
build_github
{
# Example: build_github fredrik-johansson/arb 2.11.1
local
path
=
$1
local
version
=
$2
local
tag_name
=
$2
local
configure_args
=
${
@
:3
}
local
name
=
`
basename
"
$path
"
`
# This is tricky. If the version name starts with a "v",
# then the archive name will not start with a "v"
if
[[
$version
==
v
*
]]
;
then
local
name_version
=
"
${
name
}
-
${
version
:1
}
"
else
local
name_version
=
"
${
name
}
-
${
version
}
"
fi
local
name_tag_name
=
"
${
name
}
-
${
tag_name
}
"
if
[
-e
"
${
name
}
-stamp"
]
;
then
return
fi
fetch_unpack
"https://github.com/
${
path
}
/archive/
${
version
}
.tar.gz"
(
cd
$name_
version
\
fetch_unpack
"https://github.com/
${
path
}
/archive/
${
tag_name
}
.tar.gz"
(
cd
$name_
tag_name
\
&&
./configure
--prefix
=
$BUILD_PREFIX
$configure_args
\
&&
make
-j4
\
&&
make
install
)
...
...
@@ -102,7 +96,7 @@ function build_openblas {
brew
link
--force
openblas
else
mkdir
-p
$ARCHIVE_SDIR
local
plat
=
${
1
:-
$PLAT
}
local
plat
=
${
1
:-$
{
PLAT
:-
x86_64
}
}
local
tar_path
=
$(
abspath
$(
_mb_get_gf_lib
"openblas-
${
OPENBLAS_VERSION
}
"
"
$plat
"
))
(
cd
/
&&
tar
zxf
$tar_path
)
fi
...
...
tests/test_library_builders.sh
View file @
400eadb6
...
...
@@ -12,7 +12,10 @@ suppress build_libpng
suppress build_libwebp
suppress build_szip
suppress build_swig
suppress build_github fredrik-johansson/arb 2.13.0
# We need to find a test for build_github
# It needs a standalone C library with ./configure script.
# arb (below) requires a couple of other libraries.
# suppress build_github fredrik-johansson/arb 2.13.0
suppress build_flex
suppress build_openblas
...
...
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