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.
Merge topic 'autorcc-depends' into next

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