mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Bug fixes, installer, [Export]
Fixed a bunch of bugs in aggregate const initializers Fixed ZIP bugs Fixed a compilation case where we change protection while reifying a type Added another project kind - Dynamic Library Added [Export] for DLL method exporting Fixed some issues of things being generated as __NOINLINE incorrectly Fixed an issue with module extensions with not-yet-demanded on-demand methods Started adding Installer
This commit is contained in:
parent
efa22e51fb
commit
09016c8dc0
135 changed files with 3615 additions and 2337 deletions
BIN
BeefTools/BeefInstall/StubUI/Beef042Dbg64.dll
Normal file
BIN
BeefTools/BeefInstall/StubUI/Beef042Dbg64.dll
Normal file
Binary file not shown.
BIN
BeefTools/BeefInstall/StubUI/Beef042RT64.dll
Normal file
BIN
BeefTools/BeefInstall/StubUI/Beef042RT64.dll
Normal file
Binary file not shown.
24
BeefTools/BeefInstall/StubUI/BeefProj.toml
Normal file
24
BeefTools/BeefInstall/StubUI/BeefProj.toml
Normal file
|
@ -0,0 +1,24 @@
|
|||
FileVersion = 1
|
||||
Dependencies = {corlib = "*", Beefy2D = "*"}
|
||||
|
||||
[Project]
|
||||
Name = "StubUI"
|
||||
TargetType = "BeefDynLib"
|
||||
StartupObject = "Program"
|
||||
DefaultNamespace = "BIStubUI"
|
||||
|
||||
[Configs.Debug.Win64]
|
||||
TargetDirectory = "$(WorkspaceDir)/../dist"
|
||||
TargetName = "$(ProjectName)_d"
|
||||
OtherLinkFlags = "$(LinkFlags) BeefySysLib64_d.lib"
|
||||
PostBuildCmds = ["Sleep(1000)", "cmd.exe /c echo Hey!", "CopyFilesIfNewer(\"$(WorkspaceDir)/../../../IDE/dist/BeefySysLib*.*\", \"$(WorkspaceDir)/../dist\")"]
|
||||
DebugCommand = "$(WorkspaceDir)\\..\\dist\\Stub_d.exe"
|
||||
|
||||
[Configs.Release.Win64]
|
||||
TargetDirectory = "$(WorkspaceDir)/../dist"
|
||||
|
||||
[Configs.Paranoid.Win64]
|
||||
TargetDirectory = "$(WorkspaceDir)/../dist"
|
||||
|
||||
[Configs.Test.Win64]
|
||||
TargetDirectory = "$(WorkspaceDir)/../dist"
|
10
BeefTools/BeefInstall/StubUI/BeefSpace.toml
Normal file
10
BeefTools/BeefInstall/StubUI/BeefSpace.toml
Normal file
|
@ -0,0 +1,10 @@
|
|||
FileVersion = 1
|
||||
Projects = {StubUI = {Path = "."}, Beefy2D = "*"}
|
||||
Unlocked = ["corlib"]
|
||||
|
||||
[Workspace]
|
||||
StartupProject = "StubUI"
|
||||
|
||||
[Configs.Debug.Win64]
|
||||
AllocType = "CRT"
|
||||
IntermediateType = "ObjectAndIRCode"
|
BIN
BeefTools/BeefInstall/StubUI/StubUI_d.dll
Normal file
BIN
BeefTools/BeefInstall/StubUI/StubUI_d.dll
Normal file
Binary file not shown.
2
BeefTools/BeefInstall/StubUI/StubUI_d.dll.build.txt
Normal file
2
BeefTools/BeefInstall/StubUI/StubUI_d.dll.build.txt
Normal file
File diff suppressed because one or more lines are too long
BIN
BeefTools/BeefInstall/StubUI/StubUI_d.exp
Normal file
BIN
BeefTools/BeefInstall/StubUI/StubUI_d.exp
Normal file
Binary file not shown.
BIN
BeefTools/BeefInstall/StubUI/StubUI_d.lib
Normal file
BIN
BeefTools/BeefInstall/StubUI/StubUI_d.lib
Normal file
Binary file not shown.
BIN
BeefTools/BeefInstall/StubUI/StubUI_d.pdb
Normal file
BIN
BeefTools/BeefInstall/StubUI/StubUI_d.pdb
Normal file
Binary file not shown.
41
BeefTools/BeefInstall/StubUI/src/BIApp.bf
Normal file
41
BeefTools/BeefInstall/StubUI/src/BIApp.bf
Normal file
|
@ -0,0 +1,41 @@
|
|||
using System;
|
||||
using Beefy;
|
||||
using Beefy.widgets;
|
||||
|
||||
namespace BIStubUI
|
||||
{
|
||||
class BIApp : BFApp
|
||||
{
|
||||
public function void InstallFunc(StringView dest, StringView filter);
|
||||
public function int ProgressFunc();
|
||||
public function void CancelFunc();
|
||||
|
||||
public InstallFunc mInstallFunc;
|
||||
public ProgressFunc mProgressFunc;
|
||||
public CancelFunc mCancelFunc;
|
||||
|
||||
Widget mRootWidget;
|
||||
WidgetWindow mMainWindow;
|
||||
|
||||
const int cWidth = 700;
|
||||
const int cHeight = 700;
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
base.Init();
|
||||
|
||||
BFWindow.Flags windowFlags = BFWindow.Flags.Border | BFWindow.Flags.SysMenu | //| BFWindow.Flags.CaptureMediaKeys |
|
||||
BFWindow.Flags.Caption | BFWindow.Flags.Minimize | BFWindow.Flags.QuitOnClose;
|
||||
|
||||
mRootWidget = new Widget();
|
||||
mMainWindow = new WidgetWindow(null, "Beef Installer", 0, 0, cWidth, cHeight, windowFlags, mRootWidget);
|
||||
mMainWindow.SetMinimumSize(480, 360);
|
||||
mMainWindow.mIsMainWindow = true;
|
||||
}
|
||||
}
|
||||
|
||||
static
|
||||
{
|
||||
public static BIApp gApp;
|
||||
}
|
||||
}
|
38
BeefTools/BeefInstall/StubUI/src/Program.bf
Normal file
38
BeefTools/BeefInstall/StubUI/src/Program.bf
Normal file
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace BIStubUI
|
||||
{
|
||||
class Program
|
||||
{
|
||||
public static this()
|
||||
{
|
||||
Debug.WriteLine("Initializing StubUI");
|
||||
}
|
||||
|
||||
public static ~this()
|
||||
{
|
||||
Debug.WriteLine("Deinitializing StubUI");
|
||||
}
|
||||
|
||||
[Export]
|
||||
public static void Start(BIApp.InstallFunc installFunc, BIApp.ProgressFunc progressFunc, BIApp.CancelFunc cancelFunc)
|
||||
{
|
||||
gApp = new BIApp();
|
||||
gApp.mInstallFunc = installFunc;
|
||||
gApp.mProgressFunc = progressFunc;
|
||||
gApp.mCancelFunc = cancelFunc;
|
||||
gApp.Run();
|
||||
}
|
||||
|
||||
public static void Hello()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue