Add build files & remove --dirty flag in premake5.lua
This commit is contained in:
parent
70e8a8502b
commit
d2e50ebd30
5
build.bat
Normal file
5
build.bat
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe" build\s1-mod.sln /p:Configuration=Release /p:Platform=x64
|
||||||
|
|
||||||
|
pause
|
5
generate.bat
Normal file
5
generate.bat
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
@echo off
|
||||||
|
git submodule update --init --recursive
|
||||||
|
tools\premake5 %* vs2022
|
||||||
|
|
||||||
|
pause
|
@ -1,4 +1,4 @@
|
|||||||
gitVersioningCommand = "git describe --tags --dirty --always"
|
gitVersioningCommand = "git describe --tags --always"
|
||||||
gitCurrentBranchCommand = "git symbolic-ref -q --short HEAD"
|
gitCurrentBranchCommand = "git symbolic-ref -q --short HEAD"
|
||||||
|
|
||||||
-- Quote the given string input as a C string
|
-- Quote the given string input as a C string
|
||||||
@ -314,7 +314,7 @@ dependson {"tlsdll", "runner"}
|
|||||||
|
|
||||||
links {"common"}
|
links {"common"}
|
||||||
|
|
||||||
prebuildcommands {"pushd %{_MAIN_SCRIPT_DIR}", "premake5 generate-buildinfo", "popd"}
|
prebuildcommands {"pushd %{_MAIN_SCRIPT_DIR}", "tools\\premake5 generate-buildinfo", "popd"}
|
||||||
|
|
||||||
if _OPTIONS["copy-to"] then
|
if _OPTIONS["copy-to"] then
|
||||||
postbuildcommands {"copy /y \"$(TargetPath)\" \"" .. _OPTIONS["copy-to"] .. "\""}
|
postbuildcommands {"copy /y \"$(TargetPath)\" \"" .. _OPTIONS["copy-to"] .. "\""}
|
||||||
|
BIN
tools/premake5.exe
Normal file
BIN
tools/premake5.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user