We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1613480 commit 9cb25f7Copy full SHA for 9cb25f7
build_sdl.py
@@ -291,7 +291,10 @@ def get_cdef() -> str:
291
library_dirs.append(str(SDL2_LIB_DIR))
292
SDL2_LIB_DEST = Path("tcod", ARCH_MAPPING[BIT_SIZE])
293
SDL2_LIB_DEST.mkdir(exist_ok=True)
294
- shutil.copy(SDL2_LIB_DIR / "SDL2.dll", SDL2_LIB_DEST)
+ SDL2_LIB_DEST_FILE = SDL2_LIB_DEST / "SDL2.dll"
295
+ SDL2_LIB_FILE = SDL2_LIB_DIR / "SDL2.dll"
296
+ if not SDL2_LIB_DEST_FILE.exists() or SDL2_LIB_FILE.read_bytes() != SDL2_LIB_DEST_FILE.read_bytes():
297
+ shutil.copy(SDL2_LIB_FILE, SDL2_LIB_DEST_FILE)
298
299
# Link to the SDL2 framework on MacOS.
300
# Delocate will bundle the binaries in a later step.
0 commit comments