[Scummvm-devel] Small source restructuring

David Given dg at cowlark.com
Mon Feb 13 08:35:06 CET 2006


On Monday 13 February 2006 14:49, Marcus Comstedt wrote:
[...]
> What I'd like to have is for source code to be scanned not only for
> #include, but also for #ifdef HAVE_BLAHA_H etc, and have only such
> files recompiled if the value of HAVE_BLAHA_H changes (for example
> because I add a new include directory, or install a new dev package).

It doesn't know anything about that.

However, it does keep track of intermediate files based on the command used to 
compile the file. So it'll treat the file compiled with 'gcc -c -o out.o 
in.c' as being seperate from 'gcc -c -o out.o in.c -DHAVE_BLAHA_H'. (This 
also means that you can build it twice with different sets of flags and it'll 
work.)

If you'e a HAVE_CONFIG_H person then it'll rebuild in.c whenever config.h 
changes, of course.

If you want a look, there's a very simple application that uses it available 
here:

http://tack.sourceforge.net/

You want LLgen, not the complete compiler suite. However, there's no 
documentation as yet. (It's not really released.)

-- 
+- David Given --McQ-+ 
|  dg at cowlark.com    | "Home is where, when you have to go there, they
| (dg at tao-group.com) | have to take you in." --- Cordelia Naismith
+- www.cowlark.com --+ 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20060213/0053b03d/attachment.sig>


More information about the Scummvm-devel mailing list