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

@ -278,6 +278,24 @@ namespace Prebuild.Core.Nodes
} }
} }
[OptionNode("Prefer32Bit")]
private bool m_Prefer32Bit;
/// <summary>
///
/// </summary>
public bool Prefer32Bit
{
get
{
return m_Prefer32Bit;
}
set
{
m_Prefer32Bit = value;
}
}
[OptionNode("OutputPath")] [OptionNode("OutputPath")]
private string m_OutputPath = "bin/"; 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(" <NoStdLib>{0}</NoStdLib>", conf.Options["NoStdLib"]);
ps.WriteLine(" <NoWarn>{0}</NoWarn>", conf.Options["SuppressWarnings"]); ps.WriteLine(" <NoWarn>{0}</NoWarn>", conf.Options["SuppressWarnings"]);
ps.WriteLine(" <PlatformTarget>{0}</PlatformTarget>", conf.Platform); ps.WriteLine(" <PlatformTarget>{0}</PlatformTarget>", conf.Platform);
ps.WriteLine(" <Prefer32Bit>false</Prefer32Bit>"); ps.WriteLine(" <Prefer32Bit>{0}</Prefer32Bit>",conf.Options["Prefer32Bit"]);
ps.WriteLine(" </PropertyGroup>"); ps.WriteLine(" </PropertyGroup>");
} }

View File

@ -187,6 +187,7 @@
<xs:all> <xs:all>
<xs:element name="CompilerDefines" type="xs:string" minOccurs="0" /> <xs:element name="CompilerDefines" type="xs:string" minOccurs="0" />
<xs:element name="OptimizeCode" 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="CheckUnderflowOverflow" type="xs:boolean" minOccurs="0" />
<xs:element name="AllowUnsafe" 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="PreBuildEvent" type="xs:string" minOccurs="0" />

Binary file not shown.

View File

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