Last night, I started a topic named "ninja-generator" on my github ... see <a href="https://github.com/jcfr/CMake/tree/ninja-generator">https://github.com/jcfr/CMake/tree/ninja-generator</a><br><br>Right now, I just copied all the file related to CMakefile generator and named using the "Ninja" prefix.<br>
<br>Is that the right approach ? Comment from "CMake Internals" experts are welcome :) <br><br>Thanks<br>Jc<br><br><div class="gmail_quote">On Sun, Feb 13, 2011 at 12:19 PM, Caner Candan <span dir="ltr"><<a href="mailto:caner@candan.fr">caner@candan.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You are followed :) great job!<br>
<div><div></div><div class="h5"><br>
On Sat, Feb 12, 2011 at 2:15 PM, Jean-Christophe Fillion-Robin<br>
<<a href="mailto:jchris.fillionr@kitware.com">jchris.fillionr@kitware.com</a>> wrote:<br>
> I forked the original ninja project on my github and cmake'ified it.<br>
><br>
> It successfully compile on linux [ubuntu 10.04, g++ (Ubuntu 4.4.3-4ubuntu5)<br>
> 4.4.3]<br>
><br>
> Note that both In and Out-of-source built are handled properly.<br>
><br>
> See <a href="https://github.com/jcfr/ninja" target="_blank">https://github.com/jcfr/ninja</a> topic branch: cmakeified-project<br>
><br>
><br>
> git clone git://<a href="http://github.com/jcfr/ninja.git" target="_blank">github.com/jcfr/ninja.git</a><br>
> mkdir ninja-build<br>
> cd ninja-build<br>
> cmake ../ninja && make<br>
><br>
><br>
><br>
><br>
> I also added the option BUILD_TESTING, by default enabled.<br>
><br>
> Running ctest, a test named "LongSlowBuild" will proceed.<br>
> This test invoke the following command:<br>
> ninja -f <SRC>/misc/long-slow-build.ninja all<br>
><br>
> The associated dashboard is available on <a href="http://my.cdash.org" target="_blank">my.cdash.org</a>.<br>
> See <a href="http://my.cdash.org/index.php?project=ninja" target="_blank">http://my.cdash.org/index.php?project=ninja</a><br>
><br>
><br>
><br>
> I submitted some experimentals dashboards ...<br>
> - Linux: build and test pass<br>
> - Windows: doesn't compile. See<br>
> <a href="http://my.cdash.org/buildSummary.php?buildid=155950" target="_blank">http://my.cdash.org/buildSummary.php?buildid=155950</a><br>
><br>
> ... and also setup a nightly for both windows and linux. (Template dashboard<br>
> script here)<br>
><br>
> Note that I fix some of the windows error. Changes are in the topic<br>
> fix-windows-build of github.com:jcfr/ninja.git<br>
><br>
> Most of the remaining errors are listed here:<br>
> <a href="http://my.cdash.org/viewBuildError.php?buildid=156132" target="_blank">http://my.cdash.org/viewBuildError.php?buildid=156132</a><br>
><br>
> Thks<br>
> Jc<br>
><br>
> On Fri, Feb 11, 2011 at 9:59 PM, Clifford Yapp <<a href="mailto:cliffyapp@gmail.com">cliffyapp@gmail.com</a>> wrote:<br>
>><br>
>> We could start with the CMakeLists.txt file :-).<br>
>><br>
>> It doesn't want to do an out of source dir build either, have to see<br>
>> why...<br>
>><br>
>> On Fri, Feb 11, 2011 at 9:58 AM, David Cole <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>><br>
>> wrote:<br>
>> ><br>
>> > I tried compiling it on Windows yesterday with just the following<br>
>> > CMakeLists.txt file, and there were a bunch of compile errors. It<br>
>> > shouldn't<br>
>> > be too hard to make it work on Windows, though, if Mr. Martin will<br>
>> > accept<br>
>> > some patches for it... :-)<br>
>> ><br>
>> ><br>
>> > cmake_minimum_required(VERSION 2.8)<br>
>> > project(ninja)<br>
>> ><br>
>> > set(ninja_lib_sources<br>
>> > src/build.cc<br>
>> > src/build_log.cc<br>
>> > src/eval_env.cc<br>
>> > src/graph.cc<br>
>> > src/parsers.cc<br>
>> > src/subprocess.cc<br>
>> > src/util.cc<br>
>> > src/ninja_jumble.cc<br>
>> > )<br>
>> > add_library(ninjaLib STATIC ${ninja_lib_sources})<br>
>> ><br>
>> > add_executable(ninja src/ninja.cc)<br>
>> > target_link_libraries(ninja ninjaLib)<br>
>> ><br>
>> ><br>
>> > Cheers,<br>
>> > David<br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a 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 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 href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
>> ><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a 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 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 href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
><br>
><br>
> --<br>
> Direct: 1-518-836-2174<br>
> Ext: 304<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a 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 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 href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Direct: 1-518-836-2174<br>Ext: 304<br>