[cmake-developers] -GNinja on Windows

Peter Kümmel syntheticpp at gmx.net
Wed Jun 13 12:41:05 EDT 2012


On 13.06.2012 18:09, Peter Collingbourne wrote:
> On Wed, Jun 13, 2012 at 05:34:14PM +0200, Peter Kümmel wrote:
>> On 13.06.2012 15:31, Amine Khaldi wrote:
>>>
>>> Please don't consider Windows as "done" until proper dependency tracking
>>> is in place (it's lacking so far for rc files).
>>>
>>
>> Please test stage. I've added rc file dependency tracking.
>> It's a bit "brute force" because I feed cl.exe with the
>> .rc file and collect the included files.
>>
>> This works as long as all #includes are done before
>> cl.exe stops because of rc specific stuff.
>>
>> I don't know if cmake could do it better.
>
> You could invoke cl.exe in preprocessor-only mode (/P /DRC_INVOKED),
> and then supply its output to rc.exe.   This also prevents cl.exe
> from uselessly trying to compile the resource file as a C program.

Yes, this looks like a more advanced solution.
We only need to extract #line 1234 "c:\..." from the generated file.

Peter



More information about the cmake-developers mailing list