[debhelper-devel] Bug#895044: Bug#895044: debhelper: add support for Ninja with CMake
Niels Thykier
niels at thykier.net
Fri Apr 6 20:15:00 UTC 2018
Control: tags -1 +patch
Kyle Edwards:
> Package: debhelper
> Version: 11.1.6
> Severity: wishlist
>
> Dear Maintainer,
>
> Large projects which use CMake, such as VTK, take a long time to build
> with the Makefile generator, and see significant build time improvements
> when being built with the Ninja generator instead. Please consider
> adding support for using the Ninja generator with CMake. Perhaps
> something like:
>
> $ dh --buildsystem=cmakeninja
>
> I realize this may be tricky given how the buildsystems are implemented
> in debhelper. I don't know much about Perl, but if it supports multiple
> inheritance, would it be possible to make a class like "cmakebase" and
> then have "cmake" and "cmakeninja" inherit from both "cmakebase" and
> then "makefile" and "ninja" respectively?
>
>
> [...]
Ok, I have written a sample patch series (attached) that should make
debhelper support cmake with the ninja backend.
The chosen syntax is:
dh <target> --buildsystem=cmake+ninja
A review and some testing would be appreciated.
Thanks,
~Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Rewrite-build-system-to-support-a-target-build-syste.patch
Type: text/x-patch
Size: 19634 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20180406/ed637a23/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-cmake-Support-ninja-backend.patch
Type: text/x-patch
Size: 2411 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20180406/ed637a23/attachment-0005.bin>
More information about the debhelper-devel
mailing list