VCBuild and custom target platform

Hi,

Here is the point:
I have a C/C++ project under Visual Studio and I want to add my own new target platform; This platform is very similar to Win32 in term of settings but I want to launch another compiler for C and C++ files and another linker for .obj.
What's the complete process to do that?
How can i create a new target platform and reference it to Visual Studio?
How create custom task for VCBuild and reference it for Visual Studio?

[475 byte] By [ChristopheDesplanches] at [2007-12-17]
# 2

unfortunately, it is not possible to create your own target platforms for the VC++ project system in VS 2005.

you can create "custom build rules" (new VS 2005 feature) to run your compiler and linker, but replacing the linker will be tricky, as our built-in linking logic will automatically run our linker tool on all .obj files that are produced from other (file-level) tools in the project. perhaps if your tools don't produce .obj files you might be able to get this to work, but I've never tried it.

Peter Huene's blog (http://blogs.msdn.com/peterhu/default.aspx) has one of the best overview's of custom build rules. they are also documented on MSDN, of course.

josh
VC++ Project System developer

joshep at 2007-10-6 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3
joshep wrote:
unfortunately, it is not possible to create your own target platforms for the VC++ project system in VS 2005.

Does that answer change if you download and use the VSIP SDK?

FrankBoyne at 2007-10-6 > top of Msdn Tech,Visual C++,Visual C++ General...
# 4
nope, its not part of the VSIP SDK either, sorry :(
VSIP allows you to do things like write your own project system in its entirety, but there aren't any hooks to the VC project system.
josh
VC++ Project System developer
joshep at 2007-10-6 > top of Msdn Tech,Visual C++,Visual C++ General...
# 5

Judging by the number of posts on this topic there seems to be some amount of interest in being able to "cross-compile" to platforms that Microsoft don't choose to support in Visual Studio.

Is there an official Microsoft position on whetyher the current state of affairs is an interim position while VC++ migrates from the previous Visual Studio 6.0 build mechanism to MSBuild or is the current architecture also the long term plan for VC++ builds?

FrankBoyne at 2007-10-6 > top of Msdn Tech,Visual C++,Visual C++ General...
# 6
if and when the VC++ IDE's project/build system will move to msbuild is indeterminate at this point, but I would certainly expect msbuild to better support building C++ code in the future.

to the best of my knowledge nothing is "set in stone" for future products at this point. I encourage you to enter a suggestion at http://lab.msdn.microsoft.com/productfeedback. we will evaluate all suggestions when we investigate features for the next version of VS.

josh
VC++ Project System developer

joshep at 2007-10-6 > top of Msdn Tech,Visual C++,Visual C++ General...
# 7

Good suggestion Josh, thanks. I've submitted suggestion FDBK42093.

If anyone wants to vote for (or against!) this suggestion, here's the link
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackId=FDBK42093

FrankBoyne at 2007-10-6 > top of Msdn Tech,Visual C++,Visual C++ General...
# 8
I was wandering if any one new how the XBox sdk or the 64Bit Compliers manage to add new platforms for C++ projects, as it was previously stated the new build platforms could not be added?
Guardian-ND at 2007-10-6 > top of Msdn Tech,Visual C++,Visual C++ General...