aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-07-19 01:31:49 +0200
committerGitHub <noreply@github.com>2021-07-19 01:31:49 +0200
commit00667c1805c96c112c0cc4874351354d335af52f (patch)
tree9b14fbbb03e27e68aedb1f539b2f5cfb6f93018c /scripts
parentd6c71f92412036657c423572e34550b0a733c3fc (diff)
parentef4bcbb15afd7c1cde9432d192be15c184cac629 (diff)
downloadghdl-00667c1805c96c112c0cc4874351354d335af52f.tar.gz
ghdl-00667c1805c96c112c0cc4874351354d335af52f.tar.bz2
ghdl-00667c1805c96c112c0cc4874351354d335af52f.zip
ci: generate standalone zipfiles and add CPython jobs
Diffstat (limited to 'scripts')
-rw-r--r--scripts/msys2-mcode/GetStandaloneDeps.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/msys2-mcode/GetStandaloneDeps.sh b/scripts/msys2-mcode/GetStandaloneDeps.sh
new file mode 100644
index 000000000..a5720fc5a
--- /dev/null
+++ b/scripts/msys2-mcode/GetStandaloneDeps.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+GetMinGWLibraries() {
+ ldd "${MSYSTEM_PREFIX}/$1" | while IFS="" read -r dependency; do
+ fields=($dependency)
+ dep="${fields[2]}"
+ if [[ "$dep" == /"${MSYSTEM,,}"/* ]]; then
+ echo "$dep"
+ GetMinGWLibraries "${dep#"/${MSYSTEM,,}/"}"
+ fi
+ done
+}
+
+for dep in $(GetMinGWLibraries "lib/libghdl-2_0_0_dev.dll"); do
+ echo "$dep"
+ cp "$dep" ./
+done