<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
I had the following idea to speed up the building even more, if a
tool can be build in ninja to list all files that need to be stat
when building a project. These files can be monitored by
qtcreator and later be provided as input again to ninja. So my
idea works as follows: <br>
<br>
1. Build project using cmake + ninja<br>
2. Get file list of all dependencies by using ninja (something
like ninja -t deplist). <br>
3. Monitor the files using qt creator + qfilesystemwatcher<br>
<br>
When the user requests a rebuild:<br>
4. Execute a ninja build command + provide the list of changed
files. This way ninja won't have to stat any file. <br>
5. Ninja builds<br>
<br>
Is this feasible ? <br>
<br>
<br>
Op 22-9-2012 8:30, Loaden schreef:<br>
</div>
<blockquote
cite="mid:CAOCD=xC0f5wQiaJmQenAuF734QgT4_VrFf73+m6YexsScYn93A@mail.gmail.com"
type="cite">Works well under Ubuntu 12.04 + Ninja 1.0.<br>
Thanks a lot!<br>
<br>
<div class="gmail_quote">2012/9/20 Peter Kümmel <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:syntheticpp@gmx.net"
target="_blank">syntheticpp@gmx.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 19.09.2012 08:08, Wouter van Kleunen wrote:<br>
</div>
<div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Peter,<br>
<br>
i had 2.8.9-pre3 before, i upgraded to 2.8.9. But only
after deleting<br>
the CMakeLists user file from qtcreator, deleting the
build directory<br>
and restarting qtcreator I was able to get the option to
build with Ninja.<br>
<br>
Anyway, it seems to work fine now, and the building is
much faster.<br>
</blockquote>
<br>
</div>
I've uploaded a new version:<br>
<br>
- Now out-of-source project files are supported (for cmake
projects).<br>
There will be two new files in the build folder
CMake.qtcreator and CMakeLists.txt.user<br>
CMake.qtcreator should be opened with creator.<br>
<br>
- out-of-source is default, could be changed by a check box in
the wizard<br>
<br>
- shipped ninja.exe (>1.0.0) is found automatically<br>
<br>
- generators are updated when cmake is selected in the wizard<br>
<br>
- a cmake warning about QT_QMAKE_EXECUTABLE could be
suppressed when the project doesn't use Qt<span class="HOEnZb"><font
color="#888888"><br>
<br>
Peter</font></span>
<div class="HOEnZb">
<div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Wouter<br>
<br>
<br>
Op 18-9-2012 22:50, Peter Kümmel schreef:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Wouter,<br>
<br>
you need the latest cmake version, 2.8.9.<br>
<br>
Under Tools/Options/Build&Run/CMake<br>
the ninja binary could be set, or have it PATH.<br>
<br>
Peter<br>
<br>
On 18.09.2012 22:29, Wouter van Kleunen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
So how do you make it to use ninja ? Should I enable
ninja somewhere ?<br>
Because when I run cmake from the gui it now still
generates nmakefiles.<br>
<br>
Wouter<br>
<br>
Op 17-9-2012 18:08, Peter Kümmel schreef:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Qt Creator 2.6 is beta now.<br>
<br>
On github I've uploaded a patched version with
Ninja support for CMake<br>
based projects:<br>
<br>
<a moz-do-not-send="true"
href="https://github.com/syntheticpp/qt-creator/downloads"
target="_blank">https://github.com/syntheticpp/qt-creator/downloads</a><br>
<br>
When CDB is installed<br>
<br>
<a moz-do-not-send="true"
href="http://doc-snapshot.qt-project.org/qtcreator-2.5/creator-debugger-engines.html#supported-cdb-versions"
target="_blank">http://doc-snapshot.qt-project.org/qtcreator-2.5/creator-debugger-engines.html#supported-cdb-versions</a><br>
<br>
<br>
debugging works even with the 32bit/64bit
compilers of Visual Studio<br>
Express 2012.<br>
<br>
<br>
Currently I'm trying to bring the patches
upstream, but for 2.6 it<br>
seems too late.<br>
<br>
Peter<br>
--<br>
<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake
FAQ at:<br>
<a moz-do-not-send="true"
href="http://www.cmake.org/Wiki/CMake_FAQ"
target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.cmake.org/mailman/listinfo/cmake"
target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
<br>
<br>
</blockquote>
</blockquote>
<br>
<br>
</blockquote>
--<br>
<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at:
<a moz-do-not-send="true"
href="http://www.cmake.org/Wiki/CMake_FAQ"
target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.cmake.org/mailman/listinfo/cmake"
target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div>Best Regards</div>
<div>Yuchen</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>