Should we includelicense files for build time dependencies?

I’m not sure, therefore I copied the question here.

There are two interesting ones I don’t really know what to do with: for google-test and swig, the cleanup clause removes all files. Those are build-time only dependencies. Question is, if we don’t distribute any of their files, but needed them to build the software, do we then also have to include the license in the distributed package ?

Source: Missing license file: libunistring · Issue #113 · flathub/org.gnucash.GnuCash · GitHub

I think flatpak-builder will automatically pull in LICENSE files; either way, I don’t think build-time dependencies need their files included. IANAL, of course.