mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-10 20:10:05 +00:00
Allow building Ad936x_Custom_Signal_Source when gnuradio-iio is not available
This commit is contained in:
parent
3f3321f5a7
commit
310685cd20
@ -259,7 +259,7 @@ if(LIBIIO_FOUND)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(ENABLE_AD9361 OR ENABLE_FMCOMMS2 OR ENABLE_PLUTOSDR)
|
||||
if(ENABLE_AD9361 OR ENABLE_FMCOMMS2 OR ENABLE_PLUTOSDR OR ENABLE_AD936X_SDR)
|
||||
if(LIBAD9361_VERSION)
|
||||
if(LIBAD9361_VERSION VERSION_GREATER 0.1)
|
||||
target_compile_definitions(signal_source_adapters
|
||||
|
@ -113,7 +113,7 @@ if(GNURADIO_USES_STD_POINTERS)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(ENABLE_FMCOMMS2 OR ENABLE_AD9361 OR ENABLE_PLUTOSDR)
|
||||
if(ENABLE_FMCOMMS2 OR ENABLE_AD9361 OR ENABLE_PLUTOSDR OR ENABLE_AD936X_SDR)
|
||||
target_link_libraries(signal_source_libs
|
||||
PUBLIC
|
||||
Iio::iio
|
||||
|
@ -94,6 +94,10 @@ if(ENABLE_PLUTOSDR)
|
||||
target_compile_definitions(core_receiver PRIVATE -DPLUTOSDR_DRIVER=1)
|
||||
endif()
|
||||
|
||||
if(ENABLE_AD936X_SDR)
|
||||
target_compile_definitions(core_receiver PRIVATE -DAD936X_SDR_DRIVER=1)
|
||||
endif()
|
||||
|
||||
if(ENABLE_FMCOMMS2)
|
||||
target_compile_definitions(core_receiver PRIVATE -DFMCOMMS2_DRIVER=1)
|
||||
endif()
|
||||
|
@ -163,6 +163,10 @@
|
||||
#include "plutosdr_signal_source.h"
|
||||
#endif
|
||||
|
||||
#if AD936X_SDR_DRIVER
|
||||
#include "ad936x_custom_signal_source.h"
|
||||
#endif
|
||||
|
||||
#if FMCOMMS2_DRIVER
|
||||
#include "fmcomms2_signal_source.h"
|
||||
#endif
|
||||
@ -807,6 +811,8 @@ std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetBlock(
|
||||
out_streams, queue);
|
||||
block = std::move(block_);
|
||||
}
|
||||
#endif
|
||||
#if PLUTOSDR_DRIVER || AD936X_SDR_DRIVER
|
||||
else if (implementation == "Ad936x_Custom_Signal_Source")
|
||||
{
|
||||
std::unique_ptr<GNSSBlockInterface> block_ = std::make_unique<Ad936xCustomSignalSource>(configuration, role, in_streams,
|
||||
|
Loading…
Reference in New Issue
Block a user