Add copy-to premake parameter
This commit is contained in:
parent
dfc1037bd2
commit
ba39587135
19
premake5.lua
19
premake5.lua
@ -1,4 +1,10 @@
|
|||||||
workspace "open-mw3"
|
newoption {
|
||||||
|
trigger = "copy-to",
|
||||||
|
description = "Optional, copy the EXE to a custom folder after build, define the path here if wanted.",
|
||||||
|
value = "PATH"
|
||||||
|
}
|
||||||
|
|
||||||
|
workspace "open-iw5"
|
||||||
location "./build"
|
location "./build"
|
||||||
objdir "%{wks.location}/obj"
|
objdir "%{wks.location}/obj"
|
||||||
targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
|
targetdir "%{wks.location}/bin/%{cfg.platform}/%{cfg.buildcfg}"
|
||||||
@ -15,12 +21,11 @@ workspace "open-mw3"
|
|||||||
systemversion "latest"
|
systemversion "latest"
|
||||||
symbols "On"
|
symbols "On"
|
||||||
staticruntime "On"
|
staticruntime "On"
|
||||||
|
editandcontinue "Off"
|
||||||
warnings "Extra"
|
warnings "Extra"
|
||||||
|
|
||||||
flags {
|
flags {
|
||||||
"StaticRuntime",
|
|
||||||
"NoIncrementalLink",
|
"NoIncrementalLink",
|
||||||
"NoEditAndContinue",
|
|
||||||
"NoMinimalRebuild",
|
"NoMinimalRebuild",
|
||||||
"MultiProcessorCompile",
|
"MultiProcessorCompile",
|
||||||
"No64BitChecks"
|
"No64BitChecks"
|
||||||
@ -54,7 +59,7 @@ workspace "open-mw3"
|
|||||||
|
|
||||||
configuration {}
|
configuration {}
|
||||||
|
|
||||||
project "open-mw3"
|
project "open-iw5"
|
||||||
kind "WindowedApp"
|
kind "WindowedApp"
|
||||||
language "C++"
|
language "C++"
|
||||||
|
|
||||||
@ -78,3 +83,9 @@ workspace "open-mw3"
|
|||||||
resincludedirs {
|
resincludedirs {
|
||||||
"$(ProjectDir)src"
|
"$(ProjectDir)src"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if _OPTIONS["copy-to"] then
|
||||||
|
postbuildcommands {
|
||||||
|
"copy /y \"$(TargetDir)*.exe\" \"" .. _OPTIONS["copy-to"] .. "\""
|
||||||
|
}
|
||||||
|
end
|
||||||
|
@ -70,8 +70,8 @@ BEGIN
|
|||||||
VALUE "FileVersion", "1.0.0.0"
|
VALUE "FileVersion", "1.0.0.0"
|
||||||
VALUE "InternalName", "Open-IW5"
|
VALUE "InternalName", "Open-IW5"
|
||||||
VALUE "LegalCopyright", "All rights reserved."
|
VALUE "LegalCopyright", "All rights reserved."
|
||||||
VALUE "OriginalFilename", "oiw5.exe"
|
VALUE "OriginalFilename", "open-iw5.exe"
|
||||||
VALUE "ProductName", "oiw5"
|
VALUE "ProductName", "open-iw5"
|
||||||
VALUE "ProductVersion", "1.0.0.0"
|
VALUE "ProductVersion", "1.0.0.0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
Loading…
Reference in New Issue
Block a user