1 #include <msp/builder/builder.h>
2 #include <msp/builder/sourcepackage.h>
3 #include <msp/crypto/md5.h>
4 #include <msp/strings/format.h>
5 #include "vcxprojectfile.h"
9 VcxProjectFile::VcxProjectFile(Builder &b, const SourcePackage &p):
10 FileTarget(b, p, p.get_source_directory()/(p.get_name()+".vcxproj"))
12 tool = &builder.get_toolchain().get_tool("VCXG");
15 Crypto::MD5(package->get_name()).get_digest(digest, sizeof(digest));
17 digest[8] = (digest[6]&0x3F)|0x80;
18 for(unsigned j=0; j<sizeof(digest); ++j)
20 if(j==4 || j==6 || j==8 || j==10)
22 guid += format("%02x", static_cast<unsigned char>(digest[j]));