improve Prefer32bit configuration option

httptests
UbitUmarov 2017-08-31 15:17:42 +01:00
parent c9198dc1d4
commit 3fe3471532
5 changed files with 24 additions and 3 deletions

View File

@ -277,6 +277,24 @@ namespace Prebuild.Core.Nodes
m_SuppressWarnings = value;
}
}
[OptionNode("Prefer32Bit")]
private bool m_Prefer32Bit;
/// <summary>
///
/// </summary>
public bool Prefer32Bit
{
get
{
return m_Prefer32Bit;
}
set
{
m_Prefer32Bit = value;
}
}
[OptionNode("OutputPath")]
private string m_OutputPath = "bin/";

View File

@ -254,7 +254,7 @@ namespace Prebuild.Core.Targets
ps.WriteLine(" <NoStdLib>{0}</NoStdLib>", conf.Options["NoStdLib"]);
ps.WriteLine(" <NoWarn>{0}</NoWarn>", conf.Options["SuppressWarnings"]);
ps.WriteLine(" <PlatformTarget>{0}</PlatformTarget>", conf.Platform);
ps.WriteLine(" <Prefer32Bit>false</Prefer32Bit>");
ps.WriteLine(" <Prefer32Bit>{0}</Prefer32Bit>",conf.Options["Prefer32Bit"]);
ps.WriteLine(" </PropertyGroup>");
}

View File

@ -186,8 +186,9 @@
<xs:complexType>
<xs:all>
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
<xs:element name="OptimizeCode" type="xs:boolean" minOccurs="0" />
<xs:element name="Prefer32Bit" type="xs:boolean" minOccurs="0" />
<xs:element name="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
<xs:element name="AllowUnsafe" type="xs:boolean" minOccurs="0" />
<xs:element name="PreBuildEvent" type="xs:string" minOccurs="0" />
<xs:element name="PostBuildEvent" type="xs:string" minOccurs="0" />

Binary file not shown.

View File

@ -14,6 +14,7 @@
<DebugInformation>true</DebugInformation>
<IncrementalBuild>true</IncrementalBuild>
<NoStdLib>false</NoStdLib>
<Prefer32Bit>false</Prefer32Bit>
</Options>
</Configuration>
<Configuration name="Release">
@ -29,6 +30,7 @@
<DebugInformation>false</DebugInformation>
<IncrementalBuild>true</IncrementalBuild>
<NoStdLib>false</NoStdLib>
<Prefer32Bit>false</Prefer32Bit>
</Options>
</Configuration>