X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvcxprojectfile.cpp;h=c591524135e3804283a54f8d9cf33b095de827fb;hb=a557d2ba9aae4a05e4b15c81ba5262da7caac2a5;hp=7b09db05bbf46380894373bb7807d5cbba8fccff;hpb=f0a97cb158bef2656bbb8e1dafe072af7ff9c596;p=builder.git diff --git a/source/vcxprojectfile.cpp b/source/vcxprojectfile.cpp index 7b09db0..c591524 100644 --- a/source/vcxprojectfile.cpp +++ b/source/vcxprojectfile.cpp @@ -1,9 +1,24 @@ +#include +#include #include "builder.h" #include "sourcepackage.h" #include "vcxprojectfile.h" +using namespace Msp; + VcxProjectFile::VcxProjectFile(Builder &b, const SourcePackage &p): FileTarget(b, p, p.get_source_directory()/(p.get_name()+".vcxproj")) { tool = &builder.get_toolchain().get_tool("VCXG"); + + char digest[16]; + Crypto::MD5(package->get_name()).get_digest(digest, sizeof(digest)); + digest[6] = 3; + digest[8] = (digest[6]&0x3F)|0x80; + for(unsigned j=0; j(digest[j])); + } }