mirror of https://github.com/nymea/nymea.git
clean debug and add -fPIC to libguh linker flags
parent
3157298a65
commit
ffaa50c6c4
|
|
@ -217,7 +217,7 @@ DeviceManager::DeviceManager(QObject *parent) :
|
||||||
connect(m_upnpDiscovery, &UpnpDiscovery::upnpNotify, this, &DeviceManager::upnpNotifyReceived);
|
connect(m_upnpDiscovery, &UpnpDiscovery::upnpNotify, this, &DeviceManager::upnpNotifyReceived);
|
||||||
|
|
||||||
// Bluetooth LE
|
// Bluetooth LE
|
||||||
#ifdef BLUETOOTH_LE
|
#ifdef BLUETOOTH_LE
|
||||||
m_bluetoothScanner = new BluetoothScanner(this);
|
m_bluetoothScanner = new BluetoothScanner(this);
|
||||||
if (!m_bluetoothScanner->isAvailable()) {
|
if (!m_bluetoothScanner->isAvailable()) {
|
||||||
delete m_bluetoothScanner;
|
delete m_bluetoothScanner;
|
||||||
|
|
@ -225,7 +225,7 @@ DeviceManager::DeviceManager(QObject *parent) :
|
||||||
} else {
|
} else {
|
||||||
connect(m_bluetoothScanner, &BluetoothScanner::bluetoothDiscoveryFinished, this, &DeviceManager::bluetoothDiscoveryFinished);
|
connect(m_bluetoothScanner, &BluetoothScanner::bluetoothDiscoveryFinished, this, &DeviceManager::bluetoothDiscoveryFinished);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Give hardware a chance to start up before loading plugins etc.
|
// Give hardware a chance to start up before loading plugins etc.
|
||||||
QMetaObject::invokeMethod(this, "loadPlugins", Qt::QueuedConnection);
|
QMetaObject::invokeMethod(this, "loadPlugins", Qt::QueuedConnection);
|
||||||
|
|
@ -982,7 +982,6 @@ void DeviceManager::loadPlugins()
|
||||||
connect(pluginIface, &DevicePlugin::actionExecutionFinished, this, &DeviceManager::actionExecutionFinished);
|
connect(pluginIface, &DevicePlugin::actionExecutionFinished, this, &DeviceManager::actionExecutionFinished);
|
||||||
connect(pluginIface, &DevicePlugin::pairingFinished, this, &DeviceManager::slotPairingFinished);
|
connect(pluginIface, &DevicePlugin::pairingFinished, this, &DeviceManager::slotPairingFinished);
|
||||||
connect(pluginIface, &DevicePlugin::autoDevicesAppeared, this, &DeviceManager::autoDevicesAppeared);
|
connect(pluginIface, &DevicePlugin::autoDevicesAppeared, this, &DeviceManager::autoDevicesAppeared);
|
||||||
qCDebug(dcDeviceManager) << "* Finished loading plugin" << pluginIface->pluginName() << pluginIface->pluginId();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ TEMPLATE = lib
|
||||||
QT += network
|
QT += network
|
||||||
DEFINES += LIBGUH_LIBRARY
|
DEFINES += LIBGUH_LIBRARY
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -fPIC
|
||||||
|
|
||||||
target.path = /usr/lib
|
target.path = /usr/lib
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue