<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=HU link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Short version: no.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Long version: Visual Studio is heavily built around MSBuild as the back-end of execution of various tasks. While theoretically it could be done that MSBuild only acts as a relay and calls into Ninja scripts, you would lose the entire feature set of Solution Explorer, which is quite a large portion of the IDE. (Using CMake does preclude using most of it though.) MS <a href="https://blogs.msdn.microsoft.com/vcblog/2016/02/29/developing-c-cross-platform-projects-with-cmake/">is looking into</a> deeper CMake integration into their IDE, but the exec back-end will most likely be MSBuild.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Should you really want to achieve this, you would need support from both CMake side and VS side. You would need to develop an Add-In with a custom project type (CMake+Ninja) and hook up most Solution Explorer entries to generate not MSBuild but Ninja script portions. And from CMake you would need a generator for this mixed generator type. It could be done, but it’s a lot of effort. Given the performance of MSBuild (which is not that bad compared to Ninja), the benefits would only be substantial in enourmous projects. MS generally looks into increasing build throughput by <a href="https://blogs.msdn.microsoft.com/vcblog/2015/12/11/did-you-see-improve-your-build-times-with-incredibuild-and-visual-studio-2015/">integrating IncrediBuild</a> into their IDE.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>Feladó: </b><a href="mailto:rcdailey.lists@gmail.com">Robert Dailey</a><br><b>Elküldve: </b>2016. március 2., szerda 21:45<br><b>Címzett: </b><a href="mailto:cmake@cmake.org">CMake</a><br><b>Tárgy: </b>[CMake] Visual Studio + Ninja?</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal>Right now I am using a toolchain file to setup cmake to build my C++</p><p class=MsoNormal>code against Android NDK. I also have several custom targets for</p><p class=MsoNormal>running 'ant' commands for the java portions.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I can use the Ninja generator to generate the build scripts to make my</p><p class=MsoNormal>builds work fine. However, I'd love to be able to use Visual Studio on</p><p class=MsoNormal>Windows as my IDE. However, there is no "Visual Studio - Ninja"</p><p class=MsoNormal>generator that I can see. Is there a way to make Visual Studio wrap</p><p class=MsoNormal>the Ninja scripts and simply execute them? that way I can use it to</p><p class=MsoNormal>edit code and invoke builds.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance.</p><p class=MsoNormal>-- </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Powered by www.kitware.com</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Kitware offers various services to support the CMake community. For more information on each offering, please visit:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>CMake Support: http://cmake.org/cmake/help/support.html</p><p class=MsoNormal>CMake Consulting: http://cmake.org/cmake/help/consulting.html</p><p class=MsoNormal>CMake Training Courses: http://cmake.org/cmake/help/training.html</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Follow this link to subscribe/unsubscribe:</p><p class=MsoNormal>http://public.kitware.com/mailman/listinfo/cmake</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>