option(ENABLE_SIGNALS "Build with UNIX signals" TRUE)
option(ENABLE_STACKTRACE "Enable stack trace when crashing" FALSE)
option(ENABLE_DECODE "Build with libsigrokdecode" TRUE)
+option(ENABLE_GSTREAMERMM "Build with gstreamermm" TRUE)
option(ENABLE_TESTS "Enable unit tests" FALSE)
option(STATIC_PKGDEPS_LIBS "Statically link to (pkg-config) libraries" FALSE)
list(APPEND PKGDEPS glib-2.0>=2.28.0)
list(APPEND PKGDEPS glibmm-2.4>=2.28.0)
-list(APPEND PKGDEPS gstreamermm-1.0>=1.8.0)
+
+if(ENABLE_GSTREAMERMM)
+ list(APPEND PKGDEPS gstreamermm-1.0>=1.8.0)
+endif()
set(LIBSR_CXX_BINDING "libsigrokcxx>=0.5.1")
list(APPEND PKGDEPS "${LIBSR_CXX_BINDING}")
add_definitions(-std=c++11)
add_definitions(-DBOOST_MATH_DISABLE_FLOAT128=1)
+if(ENABLE_GSTREAMERMM)
+ add_definitions(-DENABLE_GSTREAMERMM)
+endif()
+
if(ENABLE_DECODE)
add_definitions(-DENABLE_DECODE)
endif()
#include <getopt.h>
#include <vector>
+#ifdef ENABLE_GSTREAMERMM
#include <gstreamermm.h>
+#endif
#include <libsigrokcxx/libsigrokcxx.hpp>
bool do_scan = true;
bool show_version = false;
+#ifdef ENABLE_GSTREAMERMM
// Initialise gstreamermm. Must be called before any other GLib stuff.
Gst::init();
+#endif
Application a(argc, argv);