Question
What's the right way to build a complex fips link into the Visual Studio vcproj projects while continuing to allow developers to arrange libraries via the properties GUI?
Situation
I'm using VS 2008 and have a bunch of projects that use openssl statically linked. Thus far the link has been simple, but now I'm switching to a FIPS signed library and the process is like this:
- compile source to obj
- link to exe
- run exe which dumps a sha signature to stdout which is captured for the next step
- recompile pre-main setting define to the signature (which we pulled out using a regex)
- re-link application
FIPs provides some nmake and perl scripts to help with process, but my team is used to working in Visual studio and I'd like to keep their workflow as similar as possible.
Options
- custom link step using batch/perl/nmake files
- msbuild
- macros
- other
I tried using batch files and perl files to orchestrate the link, but I'm having difficulty capturing all of the link settings and libraries. I have begun to look at msbuild, but I'm unclear how it reacts with a VisualStudioProject for c++.
My problem is the transfer of data from the VisualStudio project to the custom link step. I guess I could force the link to dump the data and then parse it and pull it into the perl or make script. The variables available inside the IDE do not seem to hold all the data I need.
Please let me know what approaches you have tried for this kind of thing and what gotchas are out there. Thanks for the help