Skip to content

Commit 573ea83

Browse files
committed
- copy SDL2.dll to bin folder
1 parent 295d53a commit 573ea83

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src_dependency/SDL2/premake5.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ usage "SDL2"
1616
libdirs {
1717
"./lib/%{cfg.platform}",
1818
}
19+
filter "system:Windows"
20+
postbuildcommands {
21+
"{COPYFILE} %[%{!_WORKING_DIR}/src_dependency/SDL2/lib/%{!cfg.platform}/SDL2.dll] %[%{!cfg.targetdir}/SDL2.dll]"
22+
}
1923

2024
usage "SDL2_main"
2125
links {
2226
"SDL2main"
23-
}
27+
}

0 commit comments

Comments
 (0)