improve Prefer32bit configuration option
parent
c9198dc1d4
commit
3fe3471532
|
@ -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/";
|
||||||
|
|
||||||
|
|
|
@ -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>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -186,8 +186,9 @@
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<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="CheckUnderflowOverflow" 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="AllowUnsafe" type="xs:boolean" minOccurs="0" />
|
||||||
<xs:element name="PreBuildEvent" type="xs:string" minOccurs="0" />
|
<xs:element name="PreBuildEvent" type="xs:string" minOccurs="0" />
|
||||||
<xs:element name="PostBuildEvent" type="xs:string" minOccurs="0" />
|
<xs:element name="PostBuildEvent" type="xs:string" minOccurs="0" />
|
||||||
|
|
BIN
bin/Prebuild.exe
BIN
bin/Prebuild.exe
Binary file not shown.
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue