summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/logger.h
diff options
context:
space:
mode:
authorJosh Morman <jmorman@gnuradio.org>2021-12-03 10:15:26 -0500
committermormj <34754695+mormj@users.noreply.github.com>2021-12-06 11:44:22 -0500
commit128734e4bc8b046f195241f7a27577ce29faaebe (patch)
tree89ca719d04a18fe13cb95e7e5b108b80ba8cb222 /gnuradio-runtime/include/gnuradio/logger.h
parente19180f30efb6342e27fe4c09d6fb0df0529767c (diff)
runtime: add workaround to #define disable logger header
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/logger.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/logger.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnuradio-runtime/include/gnuradio/logger.h b/gnuradio-runtime/include/gnuradio/logger.h
index 68dbf0ad33..659911434f 100644
--- a/gnuradio-runtime/include/gnuradio/logger.h
+++ b/gnuradio-runtime/include/gnuradio/logger.h
@@ -17,6 +17,17 @@
* \brief GNU Radio logging wrapper
*
*/
+#ifdef DISABLE_LOGGER_H
+// pygccxml as of v2.2.1 has a difficult time parsing headers that
+// include spdlog or format
+// Since it only needs the top level header info, this is a hack to not
+// transitively include anything logger related when parsing the
+// headers
+#include <memory>
+namespace gr {
+using logger_ptr = std::shared_ptr<void>;
+}
+#else
// Since this file is included in *all* gr::blocks, please make sure this list of includes
// keeps as short as possible; if anything is needed only by the implementation in
@@ -277,4 +288,6 @@ struct fmt::formatter<boost::format> : formatter<string_view> {
}
};
+#endif
+
#endif /* INCLUDED_GR_LOGGER_H */