From 7dcd16f5a6980cb1183bf1a10812c952d92c4ddb Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Tue, 17 Apr 2018 10:36:59 -0700 Subject: mpm: Use configurable components for build system For a minimal build, default to off for components unless the MPM_DEVICE or the user requests it specifically. --- mpm/python/pyusrp_periphs.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mpm/python/pyusrp_periphs.cpp') diff --git a/mpm/python/pyusrp_periphs.cpp b/mpm/python/pyusrp_periphs.cpp index 716209205..feb7c2bad 100644 --- a/mpm/python/pyusrp_periphs.cpp +++ b/mpm/python/pyusrp_periphs.cpp @@ -6,6 +6,7 @@ // include hackery to only include boost python and define the macro here #include +#include #define LIBMPM_PYTHON #define LIBMPM_BOOST_PREAMBLE(module) \ /* Register submodule types */ \ @@ -45,8 +46,15 @@ private: #include #include #include + +#ifdef ENABLE_MYKONOS #include +#endif + +#ifdef ENABLE_MAGNESIUM #include +#endif + #include namespace bp = boost::python; @@ -58,7 +66,11 @@ BOOST_PYTHON_MODULE(libpyusrp_periphs) export_converter(); export_types(); export_spi(); +#ifdef ENABLE_MYKONOS export_mykonos(); +#endif export_xbar(); +#ifdef ENABLE_MAGNESIUM export_magnesium(); +#endif } -- cgit v1.2.3