X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=7884dfa686e0716e08b17f856d251154ebe661cf;hb=5a259061411e123d89059d815d1ea0f7cfcb3401;hp=d3813816ab3c0a1a4eefe44b919e69ab4e326f5d;hpb=22c5ee283d275d03e86250ed214ac91868b8de26;p=quassel.git diff --git a/src/common/main.cpp b/src/common/main.cpp index d3813816..7884dfa6 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -62,6 +62,26 @@ int main(int argc, char **argv) QApplication::setGraphicsSystem("raster"); #endif + // We need to explicitly initialize the required resources when linking statically +#ifndef BUILD_QTUI + Q_INIT_RESOURCE(sql); +#endif +#ifndef BUILD_CORE + Q_INIT_RESOURCE(pics); // always in a resource, for now +#endif + +#ifdef EMBED_DATA + Q_INIT_RESOURCE(i18n); +# ifndef BUILD_CORE + Q_INIT_RESOURCE(data); + Q_INIT_RESOURCE(hicolor); + Q_INIT_RESOURCE(oxygen); +# ifdef WITH_OXYGEN + Q_INIT_RESOURCE(oxygen_kde); +# endif +# endif +#endif + AbstractCliParser *cliParser; #ifdef HAVE_KDE