diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-03-18 00:43:04 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-03-18 00:43:04 +0200 |
commit | 7f07bc72c536eb1f1a2b75d1d1f57d4f0044f903 (patch) | |
tree | 1db26cfeb250d26463b39119b57061a112230a2b | |
parent | c3794e003f42cacca64833a6824980847b28a05e (diff) | |
download | meson-7f07bc72c536eb1f1a2b75d1d1f57d4f0044f903.zip meson-7f07bc72c536eb1f1a2b75d1d1f57d4f0044f903.tar.gz meson-7f07bc72c536eb1f1a2b75d1d1f57d4f0044f903.tar.bz2 |
Thanks, Microsoft! Thanks a fucking lot for making your uuids case sensitive in one location and case insensitive in another. And thanks especially a fucking lot for failing in this case while pretending thate everything works. Fuck you!
-rw-r--r-- | backends.py | 4 | ||||
-rw-r--r-- | coredata.py | 2 | ||||
-rw-r--r-- | interpreter.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/backends.py b/backends.py index d64a307..85b1f64 100644 --- a/backends.py +++ b/backends.py @@ -1232,7 +1232,7 @@ class Vs2010Backend(Backend): ofile.write('Microsoft Visual Studio Solution File, Format Version 11.00\n') ofile.write('# Visual Studio 2010\n') for p in projlist: - prj_line = 'Project("%s") = "%s", "%s", "{%s}"\nEndProject\n' % \ + prj_line = 'Project("{%s}") = "%s", "%s", "{%s}"\nEndProject\n' % \ (self.environment.coredata.guid, p[0], p[1], p[2]) ofile.write(prj_line) ofile.write('Global\n') @@ -1288,7 +1288,7 @@ class Vs2010Backend(Backend): pl = ET.SubElement(prjconf, 'Platform') pl.text = platform globalgroup = ET.SubElement(root, 'PropertyGroup', Label='Globals') - guidelem = ET.SubElement(globalgroup, 'ProjectGUID') + guidelem = ET.SubElement(globalgroup, 'ProjectGuid') guidelem.text = guid kw = ET.SubElement(globalgroup, 'Keyword') kw.text = 'Win32Proj' diff --git a/coredata.py b/coredata.py index 42a70d1..94c8ea1 100644 --- a/coredata.py +++ b/coredata.py @@ -23,7 +23,7 @@ version = '0.14.0-research' class CoreData(): def __init__(self, options): - self.guid = str(uuid.uuid4()) + self.guid = str(uuid.uuid4()).upper() self.target_guids = {} self.version = version self.prefix = options.prefix diff --git a/interpreter.py b/interpreter.py index 34d9721..2a27b4b 100644 --- a/interpreter.py +++ b/interpreter.py @@ -1162,7 +1162,7 @@ class Interpreter(): l = targetclass(name, self.subdir, is_cross, sources, objs, self.environment, kwargs) self.build.targets[name] = l.held_object if name not in self.coredata.target_guids: - self.coredata.target_guids[name] = str(uuid.uuid4()) + self.coredata.target_guids[name] = str(uuid.uuid4()).upper() if self.environment.is_cross_build() and l.is_cross: txt = ' cross build ' else: |