diff options
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r-- | gnuradio-runtime/include/gnuradio/logger.h | 13 | ||||
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc | 2 |
2 files changed, 14 insertions, 1 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 */ diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc index cf92061044..2d7b45067d 100644 --- a/gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc +++ b/gnuradio-runtime/python/gnuradio/gr/bindings/logger_python.cc @@ -15,7 +15,7 @@ /* BINDTOOL_GEN_AUTOMATIC(0) */ /* BINDTOOL_USE_PYGCCXML(0) */ /* BINDTOOL_HEADER_FILE(logger.h) */ -/* BINDTOOL_HEADER_FILE_HASH(7f3cbb9463e52829b27c58d9dd41b422) */ +/* BINDTOOL_HEADER_FILE_HASH(1b018cc2df46366b8b83a4fe08db2806) */ /***********************************************************************************/ #include <pybind11/complex.h> |