[CMake] Fwd: [PATCH] Add support for Metro apps

Minmin Gong minmin.gong at gmail.com
Mon Mar 31 02:35:07 EDT 2014


Hi cmake developers and users,
This is a extend discussion of this ticket:
http://www.cmake.org/Bug/view.php?id=13511.

In our project, we need to build an Win8+ Metro app. Currently the CMake do
support VS_WINRT_EXTENSIONS. However, if you want to build an exe instead
of dll or lib, even with x86 or x64, it always fails because lacking of
some tags in vcxproj and sln.

So I made this patch for WinRT/Metro apps, based on the master branch of
CMake. In this patch,

1. WinRT-ARM, WinRT-x86, WinRT-x64 generators are added for generating
WinRT special projects. CMAKE_VS_WINRT_VERSION is defined inside.
2. Add AppContainerApplication, ApplicationType, MinimumVisualStudioVersion
and ApplicationTypeRevision tags to vcxproj in WinRT project.
3. Recognize AppxManifest file type.
4. A dedicated boolean source file property "VS_WINRT_CONTENT" is added.
Generator expressions is also supported here.
5. Add "Deploy.0" in .sln for deploy WinRT apps by default, as WinCE apps
do.
6. Add PackageCertificateKeyFile tag to vcxproj for package certification.

Thanks for advices from Martell Malone, Daniel Pfeifer, Brad King, Patrick
R. Gansterer, and other developers and users of CMake. More comments are
welcomed.

-- 
Minmin Gong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140331/c38d9a59/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CMake-Add-support-for-WinRT-platforms-and-metro-apps.v5.patch
Type: application/octet-stream
Size: 10975 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140331/c38d9a59/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-CMake-Add-support-for-WinRT-platforms-and-metro-apps.v5.patch
Type: application/octet-stream
Size: 6907 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140331/c38d9a59/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-CMake-Add-support-for-WinRT-platforms-and-metro-apps.v5.patch
Type: application/octet-stream
Size: 2414 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140331/c38d9a59/attachment-0005.obj>


More information about the CMake mailing list