<div dir="ltr"><div>I've updated my patch again to V3. In this version, the WinRT is considered as a platform. Generators with "WinRT" suffix, such as "Visual Studio 12 WinRT", "Visual Studio 12 ARM WinRT", can be used to generate a WinRT targeting MSVC project. It would be easier to use than the hack before.</div>
<div><br></div><div>Comments are welcome.</div><div><br></div><div>Minmin</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-01 Minmin Gong <span dir="ltr"><<a href="mailto:minmin.gong@gmail.com" target="_blank">minmin.gong@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've updated my patch based on comments in <a href="http://www.cmake.org/Bug/view.php?id=13511#c35015" target="_blank">http://www.cmake.org/Bug/view.php?id=13511#c35015</a>. <div>
<br></div><div>Minmin</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-01-31 Minmin Gong <span dir="ltr"><<a href="mailto:minmin.gong@gmail.com" target="_blank">minmin.gong@gmail.com</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div style="font-family:arial,sans-serif;font-size:14px">Here comes a new version of this patch. In this version, ARM are also supported. Modifications include:</div></div><div style="font-family:arial,sans-serif;font-size:14px">
<span style="font-family:arial;font-size:small">1. Determine MSVC ARM compiler.</span></div><div><span style="font-family:arial;font-size:small"> Cmake can determine and test VC's x86-arm compiler correctly, and mark it as cross compiling. This feature is inspired by </span>Martell Malone's patch in <a href="http://www.cmake.org/Bug/view.php?id=13511#c32952" target="_blank">http://www.cmake.org/Bug/view.php?id=13511#c32952</a>.</div>
<div>2. Modify ARM's utility project to Win32 configuration.</div><div> Utility projects, such as ALL_BUILD and ZERO_CHECKS, can't be win store or ARM configuration. They are changed to Win32 by default.</div><div>
<br></div><div>With this patch, any configuration targeting WinRT platform should be supported. The project files can be generated, built and depolyed well.<br></div><div><br></div><div>Minmin</div><div><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013-11-27 Minmin Gong <span dir="ltr"><<a href="mailto:minmin.gong@gmail.com" target="_blank">minmin.gong@gmail.com</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>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.<br>
</div><div><br></div><div>The requirements about it in our project are:</div><div>1. The primary platform is x86 and x64.</div><div>2. Support both MSBuild and VS2012+ for building.</div><div><br></div><div>So I made this patch for WinRT/Metro apps, based on the master branch of CMake. In this patch, </div>
<div><br></div><div><div>1. Add AppContainerApplication, ApplicationType, MinimumVisualStudioVersion and ApplicationTypeRevision tags to vcxproj when VS_WINRT_EXTENSIONS is on.</div><div>2. Recognize AppxManifest file type.</div>
<div>3. A dedicated boolean source file property "VS_WINRT_CONTENT" is added. Generator expressions is also supported here.</div><div>4. Add "Deploy.0" in .sln for deploy WinRT apps by default, as WinCE apps do.</div>
<div>5. Add PackageCertificateKeyFile tag to vcxproj for package certification.</div></div><div><br></div><div>After that, an app with x86 or x64 configuration can be correctly built an packed. Do you have some more suggestions about this feature?</div>
<div>Thanks.</div><span><font color="#888888"><div><br></div><div>-- <br>Minmin Gong
</div></font></span></div>
</blockquote></div></div></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Minmin Gong
</font></span></div></div>
</blockquote></div></div></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Minmin Gong
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Minmin Gong
</div></div>