Skip to content

Commit e3b3b5b

Browse files
committed
external_deps: improve logging
1 parent 81e92c4 commit e3b3b5b

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

external_deps/build.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,23 @@ cmake_build() {
241241
cmake --install build --strip
242242
}
243243

244+
log_build() {
245+
case "${pkg}" in
246+
'install')
247+
log STATUS "Installing for ${PLATFORM}"
248+
;;
249+
'package')
250+
log STATUS "Packaging for ${PLATFORM}"
251+
;;
252+
'genlib'|'depcheck')
253+
log STATUS "Running ${pkg} for ${PLATFORM}"
254+
;;
255+
*)
256+
log STATUS "Building ${pkg} for ${PLATFORM}"
257+
;;
258+
esac
259+
}
260+
244261
# Build pkg-config
245262
# Still needed, at least on macos, for opusfile
246263
build_pkgconfig() {
@@ -1105,7 +1122,7 @@ build_depcheck() {
11051122
for dll in $(find "${PREFIX}/bin" -type f -name '*.dll'); do
11061123
# https://wiki.unvanquished.net/wiki/MinGW#Built-in_DLL_dependencies
11071124
if objdump -p "${dll}" | grep -oP '(?<=DLL Name: )(libgcc_s|libstdc|libssp|libwinpthread).*'; then
1108-
echo "${dll} depends on above DLLs"
1125+
log WARNING "${dll} depends on above DLLs"
11091126
good=false
11101127
fi
11111128
done
@@ -1164,6 +1181,7 @@ list_build() {
11641181
eval "package_list=(\${${list_name}_${PLATFORM//-/_}_packages})"
11651182
for pkg in "${package_list[@]}"; do
11661183
cd "${WORK_DIR}"
1184+
log_build "${pkg}"
11671185
"build_${pkg}"
11681186
done
11691187
}
@@ -1597,6 +1615,7 @@ do (
15971615
# Build packages
15981616
for pkg in "${@}"; do
15991617
cd "${WORK_DIR}"
1618+
log_build "${pkg}"
16001619
"build_${pkg}"
16011620
done
16021621
) done

0 commit comments

Comments
 (0)