Using Visual Studio with Microsoft's C++ compiler, we have several source files which use the Microsoft-specific '#import' directive to import a type library. For instance:
#import my_type_lib.tlb
I'd like to remove the #import from the source code, and replace it with a command line step to be executed via GNU Make. The necessary interface definitions (.idl source code) are available during the build.
How can I remove my dependency on #import and replace it with specialized build tools to be executed via the command line?