2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-12 11:37:27 +00:00

chore: make version be added via premake option

This commit is contained in:
Jan Laupetin
2025-09-10 22:13:55 +01:00
parent 0da2e4684a
commit 05ef04dd2f
3 changed files with 13 additions and 4 deletions

View File

@@ -2,13 +2,17 @@ local BuildSubFolderFolder = "premake"
local HeaderFileName = "GitVersion.h"
function GetGitVersion()
if _OPTIONS["oat-version"] ~= "_" then
return _OPTIONS["oat-version"]
end
result, errorCode = os.outputof("git describe --tags")
if errorCode == 0 then
return result
end
return "Unknown"
return "dev"
end
function GetVersionHeaderFolder()