mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 20:38:57 +02:00
Support for bundled Qt, not through aqtinstall but rather my CI. Multimedia is implemented too, works on both Windows and Linux, though we don't actually use it so it doesn't really matter. Contains Declarative and all that so the Quick frontend will work once it becomes a thing. Some options have changed, notably w.r.t LTO and faster linker, which are now handled directly in the modules. CPMUtil also has support for custom dirs (`PackageName_CUSTOM_DIR`) now. Probably most useful for adding external fragment shaders and whatnot. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3289
46 lines
788 B
Bash
Executable file
46 lines
788 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
# SPDX-FileCopyrightText: Copyright 2026 crueter
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
usage() {
|
|
cat <<EOF
|
|
Usage: cpmutil.sh package download [-a|--all] [PACKAGE]...
|
|
|
|
Get the download URL for the specified packages.
|
|
|
|
Options:
|
|
-a, --all Operate on all packages in this project.
|
|
|
|
EOF
|
|
|
|
exit 0
|
|
}
|
|
|
|
while :; do
|
|
case "$1" in
|
|
-a | --all) ALL=1 ;;
|
|
-h | --help) usage ;;
|
|
"$0") break ;;
|
|
"") break ;;
|
|
*) packages="$packages $1" ;;
|
|
esac
|
|
|
|
shift
|
|
done
|
|
|
|
[ "$ALL" != 1 ] || packages="${LIBS:-$packages}"
|
|
[ -n "$packages" ] || usage
|
|
|
|
for pkg in $packages; do
|
|
PACKAGE="$pkg"
|
|
export PACKAGE
|
|
# shellcheck disable=SC1091
|
|
. "$SCRIPTS"/vars.sh
|
|
|
|
if [ "$CI" = "true" ]; then
|
|
echo "-- $PACKAGE: https://$GIT_HOST/$REPO"
|
|
else
|
|
echo -- "$PACKAGE: $DOWNLOAD"
|
|
fi
|
|
done
|