build: qt: split locale resources. Fixes non-deterministic distcheck

The rcc tool is quirky and only honors files in the same directory as the qrc.
When doing an out-of-tree build (as 'make distcheck' does), the generated
translation files end up in a different path, so rcc can't find them.

Split them up so that rcc is run twice: once for static source files and once
for generated files.
This commit is contained in:
Cory Fields
2014-06-10 15:43:02 -04:00
parent 3d7399cb17
commit 38e324af86
4 changed files with 89 additions and 78 deletions

View File

@@ -475,6 +475,7 @@ int main(int argc, char *argv[])
#endif
Q_INIT_RESOURCE(bitcoin);
Q_INIT_RESOURCE(bitcoin_locale);
BitcoinApplication app(argc, argv);
#if QT_VERSION > 0x050100
// Generate high-dpi pixmaps