Idea for Craft: Splitting 'build' and 'image' directories

Albert Vaca albertvaka at gmail.com
Sat Nov 26 22:00:14 UTC 2016


Hi everyone,

When using Craft to build a package "X", two different directories are
created inside the directory "build/X":

* "build/X/work", which typically is the cmake build directory.
* "build/X/image-<buildtype>", which contains the "installed" files.

The files inside "image" need to be preserved in case we later want to
create an installer for our package. The "work" directory, however, is not
needed anymore, and will actually be deleted and recreated if we build the
same package again (unless we are explicitly doing a --noclean build).

Since the stuff in "work" is quite large in size and mostly not needed, I'm
sometimes tempted to go and delete it, but this directory hierarchy makes
it difficult as we have to go package-by-package.

For this reason, I propose to move the "image-<buildtype>" directories to a
new "image" directory in the root level, so the end result is like this:

* "build/X": the build directory
* "image/X/buildtype": the installed files

I think this is a cleaner separation between these two build products and,
also, makes it easier to free space just deleting the "build" directory
(together with others like "download").

If you like this idea, I will proceed and make the changes needed. Any
thoughts? Did I miss some reason for these two things to be together?

Albert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-windows/attachments/20161126/7fae0542/attachment.html>


More information about the Kde-windows mailing list