Skip to content

Instantly share code, notes, and snippets.

@jeandudey
Created August 16, 2015 14:46
Show Gist options
  • Save jeandudey/5f68922a31f0acbff052 to your computer and use it in GitHub Desktop.
Save jeandudey/5f68922a31f0acbff052 to your computer and use it in GitHub Desktop.
Copy list of DLL files to the runtime directory (build).
#!/usr/bin/python3
import shutil
# Description: copy list of dlls to the given directory.
DLLS = ["libglibmm-2.4-1.dll",
"libgtkmm-3.0-1.dll",
"libgobject-2.0-0.dll",
"libglib-2.0-0.dll",
"libgtk-3-0.dll",
"libgdkmm-3.0-1.dll",
"libgdk-3-0.dll",
"libgiomm-2.4-1.dll",
"libgio-2.0-0.dll",
"libcairo-2.dll",
"libatkmm-1.6-1.dll",
"libpangomm-1.4-1.dll",
"libpangowin32-1.0-0.dll",
"libpangocairo-1.0-0.dll",
"libpango-1.0-0.dll",
"libatk-1.0-0.dll",
"libcairo-gobject-2.dll",
"libcairomm-1.0-1.dll",
"libsigc-2.0-0.dll",
"libgdk_pixbuf-2.0-0.dll",
"libintl-8.dll",
"libpixman-1-0.dll"]
SOURCE_PREFIX = "/mingw32/bin/"
DEST = "build/"
print("Copying {0} dlls.".format(len(DLLS)))
for dll in DLLS:
print("Copying " + dll + ".")
shutil.copyfile(SOURCE_PREFIX + dll, DEST + dll)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment