WDK build-process hooks: need incremental build with auto-versioning

Posted by Mystagogue on Stack Overflow See other posts from Stack Overflow or by Mystagogue
Published on 2010-05-24T18:27:47Z Indexed on 2010/05/24 18:31 UTC
Read the original article Hit count: 430

I've previously gotten incremental builds with auto-versioning working in a team build setting for user-mode code, but now I'm dealing with the builds of WDK device drivers. It's a whole new ball-game.

I need to know what extension point, or hook, is available in the WDK build that occurs after the driver has been selected to be incrementally built, but before it actually starts building the object files.

More specifically, I have a .rc file that contains the version of the device driver. I need to update the version in that file ONLY IF the driver is going to be built anyway. If I bump the value in the .rc file prematurely, it will cause the incremental build to kick-off (that is bad). If I wait too long, then the incremental build won't see that I've changed the .rc file.

Either way, I do need the WDK to realize that the new version I've placed into the .rc file needs to be built into a new .res file and linked.

How do I do this? What suggested extension points should I play with? Is there a link-tutorial on the WDK build process that is particularly revealing regarding this topic?

© Stack Overflow or respective owner

Related posts about driver

Related posts about WDK