diff --git a/premake5.lua b/premake5.lua index 6a4cad50..701e2ddc 100644 --- a/premake5.lua +++ b/premake5.lua @@ -322,6 +322,15 @@ links {"common"} prebuildcommands {"pushd %{_MAIN_SCRIPT_DIR}", "tools\\premake5 generate-buildinfo", "popd"} +COMPUTER_NAME = os.getenv('COMPUTERNAME') +if COMPUTER_NAME == "JOEL-PC" then + debugdir "D:\\Games\\PC\\IW7" + debugcommand "D:\\Games\\PC\\IW7\\$(TargetName)$(TargetExt)" + postbuildcommands { + "copy /y \"$(OutDir)$(TargetName)$(TargetExt)\" \"D:\\Games\\PC\\IW7\\$(TargetName)$(TargetExt)\"", + } +end + if _OPTIONS["copy-to"] then postbuildcommands {"copy /y \"$(TargetPath)\" \"" .. _OPTIONS["copy-to"] .. "\""} end