aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-03-17 18:47:32 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-03-17 18:47:32 +0200
commitc980334946d00264cc625880ab0192ee93b497a3 (patch)
treebbc622115d1a189642e684eca20df03a252ed98b
parentcb9fe7d7efbab69712bc39058a954f620a7a2a75 (diff)
downloadmeson-c980334946d00264cc625880ab0192ee93b497a3.zip
meson-c980334946d00264cc625880ab0192ee93b497a3.tar.gz
meson-c980334946d00264cc625880ab0192ee93b497a3.tar.bz2
Put text in.
-rw-r--r--vcprojtest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcprojtest.py b/vcprojtest.py
index b197e68..1becbc1 100644
--- a/vcprojtest.py
+++ b/vcprojtest.py
@@ -18,10 +18,17 @@
import xml.etree.ElementTree as ET
def runtest(ofname):
+ buildtype = 'Debug'
+ platform = "Win32"
root = ET.Element('Project', {'DefaultTargets' : "Build",
'ToolsVersion' : '4.0',
'xmlns' : 'http://schemas.microsoft.com/developer/msbuild/2003'})
confitems = ET.Element('ItemGroup', {'Label' : 'ProjectConfigurations'})
+ prjconf = ET.SubElement(confitems, 'ProjectConfiguration', {'Include' : 'Debug|Win32'})
+ p = ET.SubElement(prjconf, 'Configuration')
+ p.text= buildtype
+ pl = ET.SubElement(prjconf, 'Platform')
+ pl.text = platform
root.append(confitems)
tree = ET.ElementTree(root)
tree.write(ofname, encoding='utf-8', xml_declaration=True)