Merge pull request #379 from correa/fix-staticlink

Fix shader loading when the library is built statically
This commit is contained in:
WangBin
2015-02-19 10:33:34 +08:00
+18
View File
@@ -332,3 +332,21 @@ public:
InitFFmpegLog fflog;
}
}
// Initialize Qt Resource System when the library is built
// statically
static void initResources() {
Q_INIT_RESOURCE(shaders);
Q_INIT_RESOURCE(QtAV);
}
namespace {
class ResourceLoader {
public:
ResourceLoader() { initResources(); }
};
ResourceLoader QtAV_QRCLoader;
}