I am trying to add a project that should be created as a 32-bit library (call sdk32) in the source tree configured for the 64-bit version of Visual Studio 2010. That is, each project is a 64-bit library or application, but I need this sdk32 project as a 32-bit shell for the SDK. I know that on Linux you can use the -m32 flag for the compiler (as described here Using QMAKE to create 32 and 64-bit versions of a project ); but is it possible to have a similar solution, so that in the console configured for VS2010 with 64-bit (with vcvarsall.bat x64), after running qmake -r for my tree, I get every project configured for x64, but sdk32 will be configured for Win32 It should also work for qmake -r -tp vc
So far, the only solution I can think of is a dirty trick that calls a script (as described here: Qt: Run the TRANSFER script ) that "understand" the x64 tags in the vcxproj and Makefiles and replace them with Win32, but this solution seems fragile for me and too much depends on how the project looks right now, which will prevent configuration changes in a convenient future. I am sure that this happened earlier, but I could not find a solution after he launched it almost the whole day. Any suggestions?
PS: the sdk32 project does not need QT at all. The problem is that we use qmake as a step in creating the Makefile and .vcxproj files (because many other projects use Qt).
Lecoc source share