mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-26 21:42:11 +00:00
This commit is contained in:
parent
aa3b372968
commit
2e64bf06b3
2 changed files with 25 additions and 13 deletions
|
|
@ -33,6 +33,16 @@
|
||||||
<LineBreak/>
|
<LineBreak/>
|
||||||
<Span Name="spanBuildPath"></Span>
|
<Span Name="spanBuildPath"></Span>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
|
<Paragraph Name="GeneralSettings">
|
||||||
|
<Bold>General Options</Bold>
|
||||||
|
<LineBreak/>
|
||||||
|
<InlineUIContainer>
|
||||||
|
<StackPanel>
|
||||||
|
<CheckBox Name="chckCompileIL" IsChecked="True">Compile IL. Do not uncheck this unless you understand the impact.</CheckBox>
|
||||||
|
<CheckBox Name="chckCosmosDebugging">Include Cosmos debug code.</CheckBox>
|
||||||
|
</StackPanel>
|
||||||
|
</InlineUIContainer>
|
||||||
|
</Paragraph>
|
||||||
<Paragraph Name="paraQEMUOptions">
|
<Paragraph Name="paraQEMUOptions">
|
||||||
<Bold>QEMU Options</Bold>
|
<Bold>QEMU Options</Bold>
|
||||||
<LineBreak/>
|
<LineBreak/>
|
||||||
|
|
@ -68,13 +78,6 @@
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
</InlineUIContainer>
|
</InlineUIContainer>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
<Paragraph Name="GeneralSettings">
|
|
||||||
<Bold>General settings</Bold>
|
|
||||||
<LineBreak/>
|
|
||||||
<InlineUIContainer>
|
|
||||||
<CheckBox Name="buildCheckBox">Skip IL compilation. Do not check this unless you understand the impact.</CheckBox>
|
|
||||||
</InlineUIContainer>
|
|
||||||
</Paragraph>
|
|
||||||
<Paragraph TextAlignment="Right">
|
<Paragraph TextAlignment="Right">
|
||||||
<InlineUIContainer>
|
<InlineUIContainer>
|
||||||
<Button Name="butnBuild" IsDefault="True">_Build</Button>
|
<Button Name="butnBuild" IsDefault="True">_Build</Button>
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ namespace Cosmos.Build.Windows {
|
||||||
protected void DoBuild() {
|
protected void DoBuild() {
|
||||||
SaveSettingsToRegistry();
|
SaveSettingsToRegistry();
|
||||||
|
|
||||||
if (!buildCheckBox.IsChecked.Value) {
|
if (chckCompileIL.IsChecked.Value) {
|
||||||
Console.WriteLine("Compiling...");
|
Console.WriteLine("Compiling...");
|
||||||
mBuilder.Compile();
|
mBuilder.Compile();
|
||||||
}
|
}
|
||||||
|
|
@ -183,12 +183,16 @@ namespace Cosmos.Build.Windows {
|
||||||
}
|
}
|
||||||
BuildRegistry.Write("Build Type", xValue);
|
BuildRegistry.Write("Build Type", xValue);
|
||||||
|
|
||||||
|
// General
|
||||||
|
BuildRegistry.Write("Compile IL", chckCompileIL.IsChecked.Value.ToString());
|
||||||
|
BuildRegistry.Write("Include Cosmos Debug code", chckCosmosDebugging.IsChecked.Value.ToString());
|
||||||
|
|
||||||
// QEMU
|
// QEMU
|
||||||
BuildRegistry.Write("Use GDB", chckQEMUUseGDB.IsChecked.Value.ToString());
|
BuildRegistry.Write("Use GDB", chckQEMUUseGDB.IsChecked.Value.ToString());
|
||||||
BuildRegistry.Write("Create HD Image", chckQEMUUseHD.IsChecked.Value.ToString());
|
BuildRegistry.Write("Create HD Image", chckQEMUUseHD.IsChecked.Value.ToString());
|
||||||
BuildRegistry.Write("Wait for Serial TCP", chckQEMUSerialWait.IsChecked.Value.ToString());
|
BuildRegistry.Write("Wait for Serial TCP", chckQEMUSerialWait.IsChecked.Value.ToString());
|
||||||
|
|
||||||
BuildRegistry.Write("Skip IL", buildCheckBox.IsChecked.Value.ToString());
|
// USB
|
||||||
if (cmboUSBDevice.SelectedItem != null) {
|
if (cmboUSBDevice.SelectedItem != null) {
|
||||||
BuildRegistry.Write("USB Device", cmboUSBDevice.Text);
|
BuildRegistry.Write("USB Device", cmboUSBDevice.Text);
|
||||||
}
|
}
|
||||||
|
|
@ -219,6 +223,13 @@ namespace Cosmos.Build.Windows {
|
||||||
|
|
||||||
bool xBool;
|
bool xBool;
|
||||||
|
|
||||||
|
// General
|
||||||
|
bool.TryParse(BuildRegistry.Read("Compile IL"), out xBool);
|
||||||
|
chckCompileIL.IsChecked = xBool;
|
||||||
|
bool.TryParse(BuildRegistry.Read("Include Cosmos Debug code"), out xBool);
|
||||||
|
chckCosmosDebugging.IsChecked = xBool;
|
||||||
|
|
||||||
|
// QEMU
|
||||||
bool.TryParse(BuildRegistry.Read("Use GDB"), out xBool);
|
bool.TryParse(BuildRegistry.Read("Use GDB"), out xBool);
|
||||||
chckQEMUUseGDB.IsChecked = xBool;
|
chckQEMUUseGDB.IsChecked = xBool;
|
||||||
bool.TryParse(BuildRegistry.Read("Create HD Image"), out xBool);
|
bool.TryParse(BuildRegistry.Read("Create HD Image"), out xBool);
|
||||||
|
|
@ -226,9 +237,7 @@ namespace Cosmos.Build.Windows {
|
||||||
bool.TryParse(BuildRegistry.Read("Wait for Serial TCP"), out xBool);
|
bool.TryParse(BuildRegistry.Read("Wait for Serial TCP"), out xBool);
|
||||||
chckQEMUSerialWait.IsChecked = xBool;
|
chckQEMUSerialWait.IsChecked = xBool;
|
||||||
|
|
||||||
bool.TryParse(BuildRegistry.Read("Skip IL"), out xBool);
|
// USB
|
||||||
buildCheckBox.IsChecked = xBool;
|
|
||||||
|
|
||||||
string xUSBDevice = BuildRegistry.Read("USB Device");
|
string xUSBDevice = BuildRegistry.Read("USB Device");
|
||||||
cmboUSBDevice.SelectedIndex = cmboUSBDevice.Items.IndexOf(xUSBDevice);
|
cmboUSBDevice.SelectedIndex = cmboUSBDevice.Items.IndexOf(xUSBDevice);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue