Skip to content

Commit 93641cd

Browse files
committed
external_deps: improve build and install logging
1 parent 82dbc05 commit 93641cd

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
@@ -243,6 +243,23 @@ cmake_build() {
243243
cmake --install build --strip
244244
}
245245

246+
log_build() {
247+
case "${pkg}" in
248+
'install')
249+
log STATUS "Installing for ${PLATFORM}"
250+
;;
251+
'package')
252+
log STATUS "Packaging for ${PLATFORM}"
253+
;;
254+
'genlib'|'depcheck')
255+
log STATUS "Running ${pkg} for ${PLATFORM}"
256+
;;
257+
*)
258+
log STATUS "Building ${pkg} for ${PLATFORM}"
259+
;;
260+
esac
261+
}
262+
246263
# Build pkg-config, needed for opusfile and SDL3.
247264
# As a host-mode dependency it must be provided by the system when cross-compiling.
248265
build_pkgconfig() {
@@ -1110,7 +1127,7 @@ build_depcheck() {
11101127
for dll in $(find "${PREFIX}/bin" -type f -name '*.dll'); do
11111128
# https://wiki.unvanquished.net/wiki/MinGW#Built-in_DLL_dependencies
11121129
if objdump -p "${dll}" | grep -oP '(?<=DLL Name: )(libgcc_s|libstdc|libssp|libwinpthread).*'; then
1113-
echo "${dll} depends on above DLLs"
1130+
log WARNING "${dll} depends on above DLLs"
11141131
good=false
11151132
fi
11161133
done
@@ -1169,6 +1186,7 @@ list_build() {
11691186
eval "package_list=(\${${list_name}_${PLATFORM//-/_}_packages})"
11701187
for pkg in "${package_list[@]}"; do
11711188
cd "${WORK_DIR}"
1189+
log_build "${pkg}"
11721190
"build_${pkg}"
11731191
done
11741192
}
@@ -1602,6 +1620,7 @@ do (
16021620
# Build packages
16031621
for pkg in "${@}"; do
16041622
cd "${WORK_DIR}"
1623+
log_build "${pkg}"
16051624
"build_${pkg}"
16061625
done
16071626
) done

0 commit comments

Comments
 (0)