[cmake-developers] Patches for Visual Studio multi-CPU architecture project generation and a Windows-Phone-8 generator

Paul Annetts paul at lightunobscured.com
Wed Oct 16 03:57:19 EDT 2013


Hi CMake developers,

 

In July I came up with a patch for Windows Phone 8 which also generated a
single set of projects which support both the ARM and x86 platforms. I did
this by hacking at the VS Target Generator chain. 

 

Brad King asked me to refactor out the multi-CPU architecture (platform)
part,  and rename the old "Visual Studio 11 Windows Phone 8" generator. 

 

I have now done that - which took a bit of time while I figured out how I
should better do the multi-platform to make it less of a hack. Also I needed
to figure out to build Qt 4 so I could build Cmake-Gui on VS2012 and at
least run some one-off tests etc etc.

 

I've created two branches off in a GitHub fork of CMAKE to track these
separately as I haven't got push access to the Kitware Github. They are:

 

https://github.com/paulannetts/CMake/tree/vs11MultiPlatform

and

https://github.com/paulannetts/CMake/tree/windows-phone-8

 

The current mechanism creates a new CMAKE variable "CMAKE_MSVC_PLATFORMS"
which specifies the CPU architectures you want to generate for.

 

I've extended the "Visual Studio 11" generator so that the default platforms
are "Win32;x64". So in CMAKE-GUI this looks like:



 

WP8 defines a new "Visual Studio 11 Windows-Phone-8" generator. For this
generator the default platforms are "Win32;ARM".

 

Comments:

-          It should be possible to extend this for Windows Runtime apps (or
Windows 8, "Metro", "Modern"), but I haven't looked into that.

-          Multi-platform should work with the "Visual Studio 12" generator,
but I haven't tested this generator as I have yet to install VS 2013.

-          It's based off of the July12 Nightly build so quite old, but I
thought I'd share what I had before worrying about bringing that up-to-date.

 

Sorry it took a while to get back to this. I'm looking forward to comments
on the above.

 

Regards,

 

Paul Annetts.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20131016/1265a983/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1727 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20131016/1265a983/attachment-0002.png>


More information about the cmake-developers mailing list