deplinenoise/tundra — Issue #97: Code generation and intermediate outputs
Author: leidegre
Created: 2011-11-28 21:07:02+00:00
State: open

I've been generating resource scripts (`.rc`) using a code generation tool but I've had to make some changes to the msvc toolset for this to work and I just wanna make a sanity check.

* It appears to me that tundra picks up what to do based on file extensions.
* The default msvc toolset doesn't have native support for the `.rc` extension (not listed in `NATIVE_SUFFIXES`).
* The `rc.exe` compiler won't invoke correctly if your using the `msvc-2008` toolset and `rc.exe` isn't already in your path.

I made some changes to the base `msvc` toolset and added `.rc` to the `NATIVE_SUFFIXES`. After I've done this, tundra picks up the generated `.rc` file and compiles it using the resource compiler but it a bit surprising to me that it doesn't seem to happen if it isn't listed in `NATIVE_SUFFIXES`.

The support for `*.rc` files appears to be added through the `register_implicit_make_fn` and I was wondering how all this is meant to work in conjunction?