1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-11 04:52:21 +02:00

Mintest changes

This commit is contained in:
Brian Fiete 2020-09-07 05:53:40 -07:00
parent 4f5a981598
commit 03c28503c6
7 changed files with 94 additions and 64 deletions

View file

@ -11,8 +11,9 @@ Description = "Mintest"
[Configs.Debug.Win64] [Configs.Debug.Win64]
CLibType = "Static" CLibType = "Static"
BeefLibType = "DynamicDebug"
StackSize = 4194304 StackSize = 4194304
DebugCommandArguments = "hey=\"yo man\" zag= zoogles boof stoopers \"\"\"abc efg\"\"\"" DebugCommandArguments = "abc"
DebugWorkingDirectory = ".\\" DebugWorkingDirectory = ".\\"
[Configs.Debug.Win32] [Configs.Debug.Win32]
@ -31,6 +32,9 @@ BuildKind = "StaticLib"
BuildKind = "StaticLib" BuildKind = "StaticLib"
RelocType = "PIC" RelocType = "PIC"
[Configs.Debug.wasm32]
PostBuildCmds = ["copy $(BuildDir)\\*.js $(ProjectDir)", "copy $(BuildDir)\\*.wasm $(ProjectDir)", "copy $(BuildDir)\\*.html $(ProjectDir)"]
[Configs.Release.Win64] [Configs.Release.Win64]
OtherLinkFlags = "$(LinkFlags) C:\\Beef\\BeefTools\\TestDLL\\x64\\Debug\\TestDLL.lib" OtherLinkFlags = "$(LinkFlags) C:\\Beef\\BeefTools\\TestDLL\\x64\\Debug\\TestDLL.lib"
DebugCommandArguments = "hey=\"yo man\" zag= zoogles boof stoopers \"abc efg\"" DebugCommandArguments = "hey=\"yo man\" zag= zoogles boof stoopers \"abc efg\""
@ -87,19 +91,24 @@ BuildKind = "StaticLib"
BuildKind = "StaticLib" BuildKind = "StaticLib"
RelocType = "PIC" RelocType = "PIC"
[[ProjectFolder.Items]] [Configs.NewDebug.Win64]
Type = "Folder" CLibType = "Static"
Name = "snorg" BeefLibType = "Static"
DebugCommandArguments = "abc"
DebugWorkingDirectory = ".\\"
[[ProjectFolder.Items]] [Configs.NewDebug.Win32]
Type = "Source" CLibType = "DynamicDebug"
Path = "../../../temp/test.txt" BeefLibType = "Static"
[[ProjectFolder.Items]] [Configs.NewDebug.WinFart]
Type = "Folder" OtherLinkFlags = ""
Path = "../../../temp/borf" CLibType = "Static"
AutoInclude = true BeefLibType = "Static"
[[ProjectFolder.Items]] [Configs.NewDebug.iOS]
Type = "Source" BeefLibType = "Static"
Path = "../../../temp/test.bf"
[Configs.NewDebug.aarch64-none-linux-android21]
BeefLibType = "Static"
RelocType = "PIC"

View file

@ -7,6 +7,7 @@ StartupProject = "mintest"
PreprocessorMacros = ["z5"] PreprocessorMacros = ["z5"]
[Configs.Debug.Win32] [Configs.Debug.Win32]
BfOptimizationLevel = "OgPlus"
InitLocalVariables = true InitLocalVariables = true
IntermediateType = "ObjectAndIRCode" IntermediateType = "ObjectAndIRCode"
ConfigSelections = {mintest2 = {Enabled = false}} ConfigSelections = {mintest2 = {Enabled = false}}
@ -21,6 +22,10 @@ COptimizationLevel = "Og"
[[Configs.Debug.Win64.DistinctOptions]] [[Configs.Debug.Win64.DistinctOptions]]
Filter = "System.String" Filter = "System.String"
[[Configs.Debug.Win64.DistinctOptions]]
Filter = "uint8"
AllocStackTraceDepth = 1
[Configs.Debug.WinFart] [Configs.Debug.WinFart]
EmitDebugInfo = "No" EmitDebugInfo = "No"
EmitDynamicCastCheck = false EmitDynamicCastCheck = false
@ -31,6 +36,17 @@ AllocStackTraceDepth = 0
[Configs.Debug.iOS] [Configs.Debug.iOS]
IntermediateType = "Bitcode" IntermediateType = "Bitcode"
[Configs.Debug.wasm32]
AllocType = "CRT"
EmitDynamicCastCheck = false
EnableObjectDebugFlags = false
EmitObjectAccessCheck = false
IntermediateType = "ObjectAndIRCode"
ConfigSelections = {mintest2 = {Enabled = false}}
[Configs.Debug.armv7-none-linux-android21]
IntermediateType = "ObjectAndIRCode"
[Configs.Release.Win32] [Configs.Release.Win32]
Toolset = "GNU" Toolset = "GNU"
BfOptimizationLevel = "OgPlus" BfOptimizationLevel = "OgPlus"

View file

@ -3,8 +3,7 @@ Dependencies = {minlib = "*"}
[Project] [Project]
Name = "mintest2" Name = "mintest2"
TargetType = "BeefLib" StartupObject = "Mintest2.Program"
StartupObject = "Mintest2"
DefaultNamespace = "" DefaultNamespace = ""
[Configs.Debug.Win32] [Configs.Debug.Win32]

View file

@ -1,2 +1,13 @@
using System; using System;
using System.Diagnostics; using System.Diagnostics;
namespace Mintest2
{
class Program
{
public static void Main()
{
}
}
}

View file

@ -239,8 +239,6 @@ namespace Hey.Dude.Bro
public static int Main(String[] args) public static int Main(String[] args)
{ {
//Test2(1, 2, 3, 4);
Blurg.Hey(); Blurg.Hey();
return 1; return 1;
} }
@ -336,4 +334,4 @@ static
{ {
} }
}*/ }*/

View file

@ -1,2 +1,32 @@
using System;
class Zaggle<T>
{
public int Capacity
{
get
{
return 0;
}
set
{
}
}
public void MethodA()
{
}
public void MethodB()
{
}
public void MethodC()
{
}
}

View file

@ -1,59 +1,26 @@
#pragma warning disable 168 #pragma warning disable 168
//#pragma warning disable 168
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Threading; using System.Threading;
using System.Collections; using System.Collections;
namespace SDL
{
struct SDL_Cursor
{
int mA;
}
}
struct ImGui
{
public enum MouseCursor
{
A,
B,
C,
D,
COUNT
}
}
struct Blurg struct Blurg
{ {
//private static SDL.SDL_Cursor*[(.)ImGui.MouseCursor.COUNT] g_MouseCursors = .(null,); public static int MethodB<T>(T foo) where T : struct
{
return 2;
}
private static SDL.SDL_Cursor*[(.)ImGui.MouseCursor.COUNT] g_MouseCursors = .(null,); public static int MethodB<K, V>((K key, V value) foo) where K : var where V : var
{
return 3;
}
public static void Hey() public static void Hey()
{ {
let cur = new SDL.SDL_Cursor(); Debug.Assert(MethodB(11) == 2);
Debug.Assert(MethodB(("A", "B")) == 3);
g_MouseCursors[0] = cur;
g_MouseCursors[1] = cur;
g_MouseCursors[2] = cur;
} }
} }
class TestClass
{
public void GetIt(ref TestClass tc)
{
}
public this()
{
/*let a = &this;
GetIt(ref this);*/
}
}