Files
cc-haxe/src/lib/BuildInfo.hx
2023-05-22 22:36:11 +02:00

28 lines
415 B
Haxe

package lib;
/**
Macros with static information.
**/
class BuildInfo {
/**
Get the latest git commit.
**/
public static function getGitCommitHash():String {
#if !display
return CompileTime.buildGitCommitSha();
#end
return "";
}
/**
Get the time the file was build.
**/
public static function buildTime():Date {
#if !display
return CompileTime.buildDate();
#else
return 0;
#end
}
}