Review Request: CMake: un-hack multiple builders support (i. e. ninja/make).

Aleix Pol aleixpol at kde.org
Fri Aug 31 14:14:35 UTC 2012


On Fri, Aug 31, 2012 at 4:00 PM, Milian Wolff <mail at milianw.de> wrote:

>    This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/106156/
>
> On August 28th, 2012, 12:49 a.m., *Aleix Pol Gonzalez* wrote:
>
> This solution is far too complicated of what we need.
>
> See commit f11eba7c86336eeabe50c21ede295642bbf658df. It fixes this issue.
>
>  can we dismiss this review request then?
>
>
> - Milian
>
> On August 24th, 2012, 3:27 p.m., Ivan Shapovalov wrote:
>   Review request for KDevelop.
> By Ivan Shapovalov.
>
> *Updated Aug. 24, 2012, 3:27 p.m.*
> Description
>
> There are two TODOs regarding builder selection (ninja vs make vs maybe_eventually_something_else):
> - CMakeBuilder::builderForProject()
> - CMake::checkForNeedingConfigure()
>
> This adds new code to correctly determine a builder used in project instead of taking some blind assumptions. Also, I've added a configuration key to make it possible to select builder for each build directory (though there is no UI for such setting).
>
> Reason for changes: TODOs and incorrect handling of empty build-directory when Ninja (non-Makefile) is globally selected. If the directory is pruned and then configured through building, it is configured as Ninja, but built with make.
>
> And a question: should we ever attempt to write auto-guessed builder to the config file to "remember" it?
>
> P. S.: the patch-set is provided to make it easier to inspect the changes one by one.
>
>   Testing
>
> - Build-directory creation, repeated reconfiguration and build (both separately and issuing just "build") while changing global settings. Made sure that existing build directories are handled correctly irrespectively to globally selected builder.
> - Pruning created build-directories and repeating steps above. Made sure that new globally selected builder is taken into account on first-time configuration.
>
>   Diffs
>
>    - projectbuilders/cmakebuilder/CMakeLists.txt (07807ed)
>    - projectbuilders/cmakebuilder/cmakebuilder.cpp (b70458d)
>    - projectbuilders/cmakebuilder/cmakebuilderpreferences.cpp (63b8e8c)
>    - projectmanagers/cmake/cmakemanager.cpp (e7ab824)
>    - projectmanagers/cmake/cmakeutils.h (8c04c10)
>    - projectmanagers/cmake/cmakeutils.cpp (3a9c73a)
>
> View Diff <http://git.reviewboard.kde.org/r/106156/diff/>
>

Yes, and I think I can't do that.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20120831/9ade1318/attachment.html>


More information about the KDevelop-devel mailing list