ha...@mac.com wrote:
I can provide assistance if you want to attempt this.

Thanks.

-Bill

good morning,

i have downloaded the cmake sources. i see a couple of xcode related
files. by way of a head start, can you provide a few pointers. where is
the hash what variables am i looking for? (don't exhaust yourself)


The place for this to go would be in both cmGlobalXCodeGenerator.cxx and cmXCodeObject.cxx.


You should change this method in cmGlobalXCodeGenerator.cxx
cmXCodeObject*
cmXCodeObject*
cmGlobalXCodeGenerator::CreateXCodeFileReference(cmSourceFile* sf,
                                                 cmTarget& cmtarget)

...

 if(!fileRef)
    {
    fileRef = this->CreateObject(cmXCodeObject::PBXFileReference);
    std::string comment = fname;
    //comment += " in ";
    //std::string gname = group->GetObject("name")->GetString();
    //comment += gname.substr(1, gname.size()-2);
    fileRef->SetComment(fname.c_str());
    this->FileRefs[fname] = fileRef;
    fileRef->CreateFileIdHash(fname);  // **** Add this line
    }


Then add the method CreateFileIdHash to cmXCodeObject.(h/cxx). It should set the Id to the string that contains the hash.

I think that should do it.

-Bill
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to