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
--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to