mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
workaround plugin build failures
This commit is contained in:
parent
85ba0f36cf
commit
6efa47a04e
2 changed files with 7 additions and 1 deletions
|
@ -168,7 +168,7 @@ if (WIN32)
|
|||
endif()
|
||||
|
||||
if (NOT ANDROID)
|
||||
set(${NON_ANDROID_LIBRARIES} controllers ui-plugins display-plugins input-plugins steamworks-wrapper)
|
||||
set(${NON_ANDROID_LIBRARIES} steamworks-wrapper)
|
||||
endif ()
|
||||
|
||||
# link required hifi libraries
|
||||
|
@ -178,6 +178,7 @@ link_hifi_libraries(
|
|||
audio audio-client animation script-engine physics
|
||||
render-utils entities-renderer ui auto-updater
|
||||
controllers plugins
|
||||
ui-plugins display-plugins input-plugins
|
||||
${NON_ANDROID_LIBRARIES}
|
||||
)
|
||||
|
||||
|
|
|
@ -115,6 +115,8 @@ const LoaderList& getLoadedPlugins() {
|
|||
PluginManager::PluginManager() {
|
||||
}
|
||||
|
||||
#ifndef Q_OS_ANDROID
|
||||
|
||||
// TODO migrate to a DLL model where plugins are discovered and loaded at runtime by the PluginManager class
|
||||
extern DisplayPluginList getDisplayPlugins();
|
||||
extern InputPluginList getInputPlugins();
|
||||
|
@ -137,6 +139,7 @@ const DisplayPluginList& PluginManager::getDisplayPlugins() {
|
|||
// Grab the built in plugins
|
||||
displayPlugins = ::getDisplayPlugins();
|
||||
|
||||
|
||||
// Now grab the dynamic plugins
|
||||
for (auto loader : getLoadedPlugins()) {
|
||||
DisplayProvider* displayProvider = qobject_cast<DisplayProvider*>(loader->instance());
|
||||
|
@ -270,3 +273,5 @@ void PluginManager::disableInputs(const QStringList& inputs) {
|
|||
void PluginManager::saveSettings() {
|
||||
saveInputPluginSettings(getInputPlugins());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue