mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Reworked ARM Neon detection and remote plugins inclusion in the build
This commit is contained in:
parent
f155d63580
commit
4059a0be27
@ -196,8 +196,14 @@ if (ARCHITECTURE_ARM)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Extensions detection for ARM
|
||||
check_symbol_exists("__ARM_NEON" "" HAS_NEON)
|
||||
if (HAS_NEON)
|
||||
message(STATUS "ARM Neon extensions enabled")
|
||||
add_compile_definitions(USE_NEON)
|
||||
endif()
|
||||
|
||||
# This is quite basic detection, can be extended if needed
|
||||
detect_extensions(ARM_NEON)
|
||||
detect_extensions(AVX512F)
|
||||
detect_extensions(AVX2 HAS_AVX512F)
|
||||
detect_extensions(AVX HAS_AVX2)
|
||||
|
@ -18,9 +18,9 @@ if(LIBDSDCC_FOUND AND LIBMBE_FOUND)
|
||||
add_subdirectory(demoddsd)
|
||||
endif(LIBDSDCC_FOUND AND LIBMBE_FOUND)
|
||||
|
||||
if(CM256CC_FOUND)
|
||||
if (CM256CC_FOUND AND (HAS_SSE3 OR HAS_NEON))
|
||||
add_subdirectory(remotesink)
|
||||
endif(CM256CC_FOUND)
|
||||
endif()
|
||||
|
||||
if (CODEC2_FOUND)
|
||||
add_subdirectory(demodfreedv)
|
||||
|
@ -1,10 +1,5 @@
|
||||
project(remotesink)
|
||||
|
||||
if (ARCHITECTURE_ARM64)
|
||||
message(STATUS "Compiling RemoteSink for ARM64 with USE_NEON definition")
|
||||
add_compile_definitions(USE_NEON)
|
||||
endif()
|
||||
|
||||
set(remotesink_SOURCES
|
||||
remotesink.cpp
|
||||
remotesinkbaseband.cpp
|
||||
|
@ -11,9 +11,9 @@ add_subdirectory(udpsource)
|
||||
add_subdirectory(localsource)
|
||||
add_subdirectory(filesource)
|
||||
|
||||
if(CM256CC_FOUND)
|
||||
if (CM256CC_FOUND AND (HAS_SSE3 OR HAS_NEON))
|
||||
add_subdirectory(remotesource)
|
||||
endif(CM256CC_FOUND)
|
||||
endif()
|
||||
|
||||
if (OpenCV_FOUND)
|
||||
add_subdirectory(modatv)
|
||||
|
@ -1,10 +1,5 @@
|
||||
project(remotesource)
|
||||
|
||||
if (ARCHITECTURE_ARM64)
|
||||
message(STATUS "Compiling RemoteSource for ARM64 with USE_NEON definition")
|
||||
add_compile_definitions(USE_NEON)
|
||||
endif()
|
||||
|
||||
set(remotesource_SOURCES
|
||||
remotesource.cpp
|
||||
remotesourcebaseband.cpp
|
||||
|
@ -5,9 +5,9 @@ add_subdirectory(fileoutput)
|
||||
add_subdirectory(localoutput)
|
||||
add_subdirectory(audiooutput)
|
||||
|
||||
if(CM256CC_FOUND)
|
||||
if (CM256CC_FOUND AND (HAS_SSE3 OR HAS_NEON))
|
||||
add_subdirectory(remoteoutput)
|
||||
endif(CM256CC_FOUND)
|
||||
endif()
|
||||
|
||||
if(ENABLE_BLADERF AND LIBBLADERF_FOUND)
|
||||
add_subdirectory(bladerf1output)
|
||||
|
@ -1,10 +1,5 @@
|
||||
project(remoteoutput)
|
||||
|
||||
if (ARCHITECTURE_ARM64)
|
||||
message(STATUS "Compiling RemoteOutput for ARM64 with USE_NEON definition")
|
||||
add_compile_definitions(USE_NEON)
|
||||
endif()
|
||||
|
||||
set(remoteoutput_SOURCES
|
||||
remoteoutput.cpp
|
||||
remoteoutputplugin.cpp
|
||||
|
@ -4,9 +4,9 @@ add_subdirectory(fileinput)
|
||||
add_subdirectory(testsource)
|
||||
add_subdirectory(localinput)
|
||||
|
||||
if(CM256CC_FOUND)
|
||||
if (CM256CC_FOUND AND (HAS_SSE3 OR HAS_NEON))
|
||||
add_subdirectory(remoteinput)
|
||||
endif(CM256CC_FOUND)
|
||||
endif()
|
||||
|
||||
if(ENABLE_AIRSPY AND LIBAIRSPY_FOUND)
|
||||
add_subdirectory(airspy)
|
||||
|
@ -1,10 +1,5 @@
|
||||
project(remoteinput)
|
||||
|
||||
if (ARCHITECTURE_ARM64)
|
||||
message(STATUS "Compiling RemoteInput for ARM64 with USE_NEON definition")
|
||||
add_compile_definitions(USE_NEON)
|
||||
endif()
|
||||
|
||||
set(remoteinput_SOURCES
|
||||
remoteinputbuffer.cpp
|
||||
remoteinputudphandler.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user