QtAutogen: Regenerate qrc files if their input changes (#15074)

Get dependencies from the output of ``rcc --list`` if using
Qt 5. Otherwise process the file in the same way as the
qt4_add_resources macro.

This does not work with the Ninja generator, and it does not
work for RCC files which are generated.
Merge topic 'autorcc-depends' into next

ee7f5624 QtAutogen: Regenerate qrc files if their input changes (#15074)