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
d0b05e7e
Unverified
Commit
d0b05e7e
authored
Mar 25, 2022
by
Matti Picus
Committed by
GitHub
Mar 25, 2022
Browse files
Merge pull request #454 from radarhere/turbo
Added build_libjpeg_turbo
parents
9f80fefa
a6fec4ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
library_builders.sh
library_builders.sh
+12
-0
tests/test_library_builders.sh
tests/test_library_builders.sh
+2
-0
No files found.
library_builders.sh
View file @
d0b05e7e
...
@@ -161,6 +161,18 @@ function build_jpeg {
...
@@ -161,6 +161,18 @@ function build_jpeg {
touch
jpeg-stamp
touch
jpeg-stamp
}
}
function
build_libjpeg_turbo
{
if
[
-e
jpeg-stamp
]
;
then return
;
fi
local
cmake
=
$(
get_modern_cmake
)
fetch_unpack https://download.sourceforge.net/libjpeg-turbo/libjpeg-turbo-
${
JPEGTURBO_VERSION
}
.tar.gz
(
cd
libjpeg-turbo-
${
JPEGTURBO_VERSION
}
\
&&
$cmake
-G
"Unix Makefiles"
-DCMAKE_INSTALL_PREFIX
=
/usr/local
-DCMAKE_INSTALL_LIBDIR
=
/usr/local/lib
.
\
&&
make
install
)
# Prevent build_jpeg
touch
jpeg-stamp
}
function
build_libpng
{
function
build_libpng
{
build_zlib
build_zlib
build_simple libpng
$LIBPNG_VERSION
https://download.sourceforge.net/libpng
build_simple libpng
$LIBPNG_VERSION
https://download.sourceforge.net/libpng
...
...
tests/test_library_builders.sh
View file @
d0b05e7e
...
@@ -61,6 +61,8 @@ if [ -z "$IS_MACOS" ]; then
...
@@ -61,6 +61,8 @@ if [ -z "$IS_MACOS" ]; then
fi
fi
suppress build_new_zlib
suppress build_new_zlib
suppress build_hdf5
suppress build_hdf5
rm
jpeg-stamp
suppress build_libjpeg_turbo
suppress get_modern_cmake
suppress get_modern_cmake
[
${
MB_PYTHON_VERSION
+x
}
]
||
ingest
"
\$
MB_PYTHON_VERSION is not set"
[
${
MB_PYTHON_VERSION
+x
}
]
||
ingest
"
\$
MB_PYTHON_VERSION is not set"
...
...
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