From 3fe3471532db22eeb0d75c2b0ab56e6d2fc3eea8 Mon Sep 17 00:00:00 2001
From: UbitUmarov
Date: Thu, 31 Aug 2017 15:17:42 +0100
Subject: improve Prefer32bit configuration option
---
Prebuild/src/Core/Nodes/OptionsNode.cs | 18 ++++++++++++++++++
Prebuild/src/Core/Targets/VSGenericTarget.cs | 2 +-
Prebuild/src/data/prebuild-1.10.xsd | 5 +++--
bin/Prebuild.exe | Bin 249856 -> 249856 bytes
prebuild.xml | 2 ++
5 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/Prebuild/src/Core/Nodes/OptionsNode.cs b/Prebuild/src/Core/Nodes/OptionsNode.cs
index 577de71..490fd6f 100644
--- a/Prebuild/src/Core/Nodes/OptionsNode.cs
+++ b/Prebuild/src/Core/Nodes/OptionsNode.cs
@@ -277,6 +277,24 @@ namespace Prebuild.Core.Nodes
m_SuppressWarnings = value;
}
}
+
+ [OptionNode("Prefer32Bit")]
+ private bool m_Prefer32Bit;
+
+ ///
+ ///
+ ///
+ public bool Prefer32Bit
+ {
+ get
+ {
+ return m_Prefer32Bit;
+ }
+ set
+ {
+ m_Prefer32Bit = value;
+ }
+ }
[OptionNode("OutputPath")]
private string m_OutputPath = "bin/";
diff --git a/Prebuild/src/Core/Targets/VSGenericTarget.cs b/Prebuild/src/Core/Targets/VSGenericTarget.cs
index 424e4d1..c12120f 100644
--- a/Prebuild/src/Core/Targets/VSGenericTarget.cs
+++ b/Prebuild/src/Core/Targets/VSGenericTarget.cs
@@ -254,7 +254,7 @@ namespace Prebuild.Core.Targets
ps.WriteLine(" {0}", conf.Options["NoStdLib"]);
ps.WriteLine(" {0}", conf.Options["SuppressWarnings"]);
ps.WriteLine(" {0}", conf.Platform);
- ps.WriteLine(" false");
+ ps.WriteLine(" {0}",conf.Options["Prefer32Bit"]);
ps.WriteLine(" ");
}
diff --git a/Prebuild/src/data/prebuild-1.10.xsd b/Prebuild/src/data/prebuild-1.10.xsd
index eee07a8..ddfa2c5 100644
--- a/Prebuild/src/data/prebuild-1.10.xsd
+++ b/Prebuild/src/data/prebuild-1.10.xsd
@@ -186,8 +186,9 @@
-
-
+
+
+
diff --git a/bin/Prebuild.exe b/bin/Prebuild.exe
index 2258d3d..98da714 100755
Binary files a/bin/Prebuild.exe and b/bin/Prebuild.exe differ
diff --git a/prebuild.xml b/prebuild.xml
index 2ee87f0..2d65db4 100644
--- a/prebuild.xml
+++ b/prebuild.xml
@@ -14,6 +14,7 @@
true
true
false
+ false
@@ -29,6 +30,7 @@
false
true
false
+ false
--
cgit v1.1