Add bin format

This commit is contained in:
Andrey Kurdyumov 2015-02-08 22:57:16 +06:00
parent 087ab24f0d
commit a89cb710c7
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,11 @@
namespace Cosmos.Build.Common
{
/// <summary>
/// Format for the images produced.
/// </summary>
public enum BinFormat
{
Elf,
Bin,
}
}

View file

@ -221,5 +221,19 @@ namespace Cosmos.Build.Common {
get { return GetProperty(EnableBochsDebugString, false); }
set { SetProperty(EnableBochsDebugString, value); }
}
/// <summary>
/// Name of the configuration property in the project file.
/// </summary>
public const string BinFormatString = "BinFormat";
/// <summary>
/// Gets or sets binary format which is used for producing kernel image.
/// </summary>
public BinFormat BinFormat
{
get { return GetProperty(BinFormatString, BinFormat.Bin); }
set { SetProperty(BinFormatString, value); }
}
}
}

View file

@ -76,6 +76,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BinFormat.cs" />
<Compile Include="BuildProperties.cs" />
<Compile Include="CosmosPaths.cs" />
<Compile Include="Enums.cs" />