diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2022-12-03 05:04:09 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2022-12-03 08:07:56 +0300 |
commit | 4b501f288309e8d201a758ba23ddccfa9dffed81 (patch) | |
tree | 10b9eea60c976fedeb4b1c6cf65c3ff1e03aa338 /distribute.mk.in | |
parent | db40b99e38149d644808ec22b44a89fe758b739b (diff) | |
download | sciteco-4b501f288309e8d201a758ba23ddccfa9dffed81.tar.gz |
simplified win32 packaging using mingw-bundedlls
* mingw-bundledlls finds and copies transitive DLL dependencies.
* Like all external one-file sources, mingw-bundledlls has been copied into contrib/
instead of adding a submodule.
It's taken from here: https://github.com/mpreisler/mingw-bundledlls
* Packaging is more robust now if dependant DLLs are upgraded or if we
decide to link in more statically.
With the old scheme, we might also miss some DLL and break builds
without even noticing it.
Diffstat (limited to 'distribute.mk.in')
-rw-r--r-- | distribute.mk.in | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/distribute.mk.in b/distribute.mk.in index e5dc0ac..0d6942c 100644 --- a/distribute.mk.in +++ b/distribute.mk.in @@ -130,14 +130,14 @@ mingw-binary : @PACKAGE@-@PACKAGE_VERSION@-win32.zip temp-bin/.teco_ini cp @srcdir@/COPYING @srcdir@/ChangeLog temp-bin/ rm -rf temp-install/ -# cp /usr/i686-w64-mingw32/bin/intl.dll \ -# /usr/i686-w64-mingw32/bin/libglib-2.0-0.dll \ -# /usr/i686-w64-mingw32/bin/pdcurses.dll \ -# temp-bin/ - cp /usr/i686-w64-mingw32/bin/gspawn-win32-helper-console.exe \ + cp /usr/i686-w64-mingw32/bin/gspawn-win32-helper*.exe \ temp-bin/ - i686-w64-mingw32-strip -s temp-bin/gspawn-win32-helper-console.exe - cd temp-bin/; zip -r ../$@ . + # Collect DLLs for all included binaries + for f in temp-bin/*.exe; do \ + MINGW_BUNDLEDLLS_SEARCH_PATH=/usr/i686-w64-mingw32/bin \ + @srcdir@/contrib/mingw-bundledlls --copy $$f; \ + done + cd temp-bin/; zip -9 -r ../$@ . rm -rf temp-bin/ clean: |