Build Info
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@
|
||||
|
||||
<!-- ______________________________ Haxedefines _____________________________ -->
|
||||
|
||||
<haxeflag name="--macro" value="funkin.backend.system.macros.NewHaxeWarning.warn()" />
|
||||
<haxeflag name="--macro" value="funkin.backend.system.macros.BuildInfo.printBuildInfo()" />
|
||||
|
||||
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<libraries>
|
||||
<if cond="time-fix">
|
||||
<print pretty="true">Switching to branch...</print>
|
||||
<cmd inLib="lime" cmd="git checkout time-fix" />
|
||||
<cmd inLib="openfl" cmd="git checkout time-fix" />
|
||||
<cmd inLib="away3d" cmd="git checkout time-fix" />
|
||||
<cmd inLib="flixel" cmd="git checkout time-fix" />
|
||||
<cmd inLib="flixel-addons" cmd="git checkout time-fix" />
|
||||
</if>
|
||||
|
||||
<if cond="normal">
|
||||
<print pretty="true">Switching to branch...</print>
|
||||
<cmd inLib="lime" cmd="git checkout develop" />
|
||||
<cmd inLib="openfl" cmd="git checkout develop" />
|
||||
<cmd inLib="away3d" cmd="git checkout master" />
|
||||
<cmd inLib="flixel" cmd="git checkout dev" />
|
||||
<cmd inLib="flixel-addons" cmd="git checkout dev" />
|
||||
</if>
|
||||
</libraries>
|
||||
@@ -0,0 +1,21 @@
|
||||
package funkin.backend.system.macros;
|
||||
|
||||
#if macro
|
||||
class BuildInfo {
|
||||
public static function printBuildInfo() {
|
||||
Sys.println('[ BUILD INFO ]');
|
||||
Sys.println('Haxe Version: ${haxe.macro.Context.definedValue("haxe")}');
|
||||
Sys.println('Target Platform: ${
|
||||
#if windows "Windows"
|
||||
#elseif mac "Mac"
|
||||
#elseif linux "Linux"
|
||||
#elseif android "Android"
|
||||
#elseif ios "iOS"
|
||||
#else "Unknown"
|
||||
#end
|
||||
}');
|
||||
Sys.println('Build Date: ${Date.now().toString()}');
|
||||
Sys.println('');
|
||||
}
|
||||
}
|
||||
#end
|
||||
@@ -1,16 +0,0 @@
|
||||
package funkin.backend.system.macros;
|
||||
|
||||
#if macro
|
||||
class NewHaxeWarning {
|
||||
public static function warn() {
|
||||
#if (haxe >= "4.3.0" && !display)
|
||||
Sys.println("====================");
|
||||
Sys.println("[ WARNING ]");
|
||||
Sys.println("Compiling with Haxe 4.3.0 isnt fully recommended yet, but it does work.");
|
||||
Sys.println("We recommend building the project using Haxe 4.2.5.");
|
||||
Sys.println("You can download it here -> https://haxe.org/download/version/4.2.5/");
|
||||
Sys.println("====================");
|
||||
#end
|
||||
}
|
||||
}
|
||||
#end
|
||||
Reference in New Issue
Block a user