Commit 2db4c9d1 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr

Add CMake options for conditionally only build specific backends.

parent 24e66e24
......@@ -65,6 +65,10 @@ find_package(KF5 REQUIRED COMPONENTS
XmlGui
)
# options
option(BUILD_QTMULTIMEDIA_PLUGIN "Build QtMultimedia sound backend" OFF)
option(BUILD_GSTREAMER_PLUGIN "Build GStreamer sound backend" ON)
add_definitions(
-DQT_NO_URL_CAST_FROM_STRING
)
......
......@@ -65,5 +65,9 @@ install(
${INSTALL_TARGETS_DEFAULT_ARGS}
)
ecm_optional_add_subdirectory(qtgstreamerbackend)
ecm_optional_add_subdirectory(qtmultimediabackend)
if (BUILD_GSTREAMER_PLUGIN)
ecm_optional_add_subdirectory(qtgstreamerbackend)
endif()
if (BUILD_QTMULTIMEDIA_PLUGIN)
ecm_optional_add_subdirectory(qtmultimediabackend)
endif()
\ No newline at end of file
......@@ -66,7 +66,6 @@ public:
KPluginFactory *factory = KPluginLoader(loader.fileName()).factory();
BackendInterface *plugin = factory->create<BackendInterface>(parent, QList< QVariant >());
if (plugin->captureBackend()) {
qDebug() << "YYY";
m_backendList.append(plugin->captureBackend());
}
}
......
......@@ -32,8 +32,7 @@ class QtGStreamerCaptureBackend : public CaptureBackendInterface
public:
QtGStreamerCaptureBackend();
~QtGStreamerCaptureBackend();
virtual ~QtGStreamerCaptureBackend();
void startCapture(const QString &filePath);
void stopCapture();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment