Premake: Add --copy-pdb parameter to also copy the PDB file to the folder given by --copy-to.
This commit is contained in:
parent
63fc302ce0
commit
4c6ad8a134
11
premake5.lua
11
premake5.lua
@ -10,6 +10,11 @@ newoption {
|
||||
description = "Do not use new virtual path structure (separating headers and source files)."
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "copy-pdb",
|
||||
description = "Copy debug information for binaries as well to the path given via --copy-to."
|
||||
}
|
||||
|
||||
newaction {
|
||||
trigger = "version",
|
||||
description = "Returns the version string for the current commit of the source code.",
|
||||
@ -200,6 +205,12 @@ workspace "iw4x"
|
||||
"if not exist \"" .. saneCopyToPath .. "\" mkdir \"" .. saneCopyToPath .. "\"",
|
||||
"copy /y \"$(TargetDir)*.dll\" \"" .. saneCopyToPath .. "\"",
|
||||
}
|
||||
|
||||
if _OPTIONS["copy-pdb"] then
|
||||
postbuildcommands {
|
||||
"copy /y \"$(TargetDir)*.pdb\" \"" .. saneCopyToPath .. "\"",
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
-- Specific configurations
|
||||
|
Loading…
Reference in New Issue
Block a user