]> sigrok.org Git - pulseview.git/blobdiff - main.cpp
DecoderSelector: Make decoder tag names fully visible
[pulseview.git] / main.cpp
index fca9aa7966e5b8f7f8be420ef1260953a7860b98..28c0a41f6da1e6800413e20b67f79ea9f3c617ca 100644 (file)
--- a/main.cpp
+++ b/main.cpp
 #include <getopt.h>
 #include <vector>
 
+#ifdef ENABLE_FLOW
 #include <gstreamermm.h>
+#include <libsigrokflow/libsigrokflow.hpp>
+#endif
 
 #include <libsigrokcxx/libsigrokcxx.hpp>
 
@@ -171,9 +174,14 @@ int main(int argc, char *argv[])
        bool do_scan = true;
        bool show_version = false;
 
+#ifdef ENABLE_FLOW
        // Initialise gstreamermm. Must be called before any other GLib stuff.
        Gst::init();
 
+       // Initialize libsigrokflow. Must be called after Gst::init().
+       Srf::init();
+#endif
+
        Application a(argc, argv);
 
 #ifdef ANDROID