From 72be687ea8b84dfd27231f00b50fc265d7e160e8 Mon Sep 17 00:00:00 2001 From: dbdexter-dev Date: Mon, 25 Apr 2022 07:52:52 +0200 Subject: [PATCH] Updated patched CMakeLists --- .github/workflows/CMakeLists.txt | 37 +++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CMakeLists.txt b/.github/workflows/CMakeLists.txt index b404acf..1cd44a8 100644 --- a/.github/workflows/CMakeLists.txt +++ b/.github/workflows/CMakeLists.txt @@ -7,6 +7,20 @@ else() set(CMAKE_INSTALL_PREFIX "/usr") endif() +# Configure toolchain for android +if (ANDROID) + set(CMAKE_SHARED_LINKER_FLAGS + "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate" + ) + set(CMAKE_C_STANDARD 11) + set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-std=c++17") +endif (ANDROID) + +# Backends +option(OPT_BACKEND_GLFW "Use the GLFW backend" ON) +option(OPT_BACKEND_ANDROID "Use the Android backend" OFF) + # Compatibility Options option(OPT_OVERRIDE_STD_FILESYSTEM "Use a local version of std::filesystem on systems that don't have it yet" OFF) @@ -18,7 +32,8 @@ option(OPT_BUILD_FILE_SOURCE "Wav file source" ON) option(OPT_BUILD_HACKRF_SOURCE "Build HackRF Source Module (Dependencies: libhackrf)" ON) option(OPT_BUILD_LIMESDR_SOURCE "Build LimeSDR Source Module (Dependencies: liblimesuite)" OFF) option(OPT_BUILD_SDDC_SOURCE "Build SDDC Source Module (Dependencies: libusb-1.0)" OFF) -option(OPT_BUILD_RFSPACE_SOURCE "Build RFspace Source Module no dependencies required)" OFF) +option(OPT_BUILD_SDRPP_SERVER_SOURCE "Build SDR++ Server Source Module (no dependencies required)" ON) +option(OPT_BUILD_RFSPACE_SOURCE "Build RFspace Source Module (no dependencies required)" ON) option(OPT_BUILD_RTL_SDR_SOURCE "Build RTL-SDR Source Module (Dependencies: librtlsdr)" ON) option(OPT_BUILD_RTL_TCP_SOURCE "Build RTL-TCP Source Module (no dependencies required)" ON) option(OPT_BUILD_SDRPLAY_SOURCE "Build SDRplay Source Module (Dependencies: libsdrplay)" OFF) @@ -27,6 +42,7 @@ option(OPT_BUILD_SPYSERVER_SOURCE "Build SpyServer Source Module (no dependencie option(OPT_BUILD_PLUTOSDR_SOURCE "Build PlutoSDR Source Module (Dependencies: libiio, libad9361)" ON) # Sinks +option(OPT_BUILD_ANDROID_AUDIO_SINK "Build Android Audio Sink Module (Dependencies: AAudio, only for android)" OFF) option(OPT_BUILD_AUDIO_SINK "Build Audio Sink Module (Dependencies: rtaudio)" ON) option(OPT_BUILD_PORTAUDIO_SINK "Build PortAudio Sink Module (Dependencies: portaudio)" OFF) option(OPT_BUILD_NETWORK_SINK "Build Audio Sink Module (no dependencies required)" ON) @@ -34,10 +50,12 @@ option(OPT_BUILD_NEW_PORTAUDIO_SINK "Build the new PortAudio Sink Module (Depend # Decoders option(OPT_BUILD_FALCON9_DECODER "Build the falcon9 live decoder (Dependencies: ffplay)" OFF) +option(OPT_BUILD_KG_SSTV_DECODER "Build the M17 decoder module (no dependencies required)" OFF) option(OPT_BUILD_M17_DECODER "Build the M17 decoder module (no dependencies required)" OFF) option(OPT_BUILD_METEOR_DEMODULATOR "Build the meteor demodulator module (no dependencies required)" ON) option(OPT_BUILD_RADIO "Main audio modulation decoder (AM, FM, SSB, etc...)" ON) option(OPT_BUILD_WEATHER_SAT_DECODER "Build the HRPT decoder module (no dependencies required)" OFF) +option(OPT_BUILD_RADIOSONDE_DECODER "Build the radiosonde decoder module (no dependencies required)" ON) # Misc option(OPT_BUILD_DISCORD_PRESENCE "Build the Discord Rich Presence module" ON) @@ -48,7 +66,7 @@ option(OPT_BUILD_SCANNER "Frequency scanner" OFF) option(OPT_BUILD_SCHEDULER "Build the scheduler" OFF) # Other options -option(USE_INTERNAL_LIBCORRECT "Use an external version of libcorrect" ON) +option(USE_INTERNAL_LIBCORRECT "Use an internal version of libcorrect" ON) option(USE_BUNDLE_DEFAULTS "Set the default resource and module directories to the right ones for a MacOS .app" OFF) # Core of SDR++ @@ -83,6 +101,10 @@ if (OPT_BUILD_SDDC_SOURCE) add_subdirectory("source_modules/sddc_source") endif (OPT_BUILD_SDDC_SOURCE) +if (OPT_BUILD_SDRPP_SERVER_SOURCE) +add_subdirectory("source_modules/sdrpp_server_source") +endif (OPT_BUILD_SDRPP_SERVER_SOURCE) + if (OPT_BUILD_RFSPACE_SOURCE) add_subdirectory("source_modules/rfspace_source") endif (OPT_BUILD_RFSPACE_SOURCE) @@ -113,6 +135,10 @@ endif (OPT_BUILD_PLUTOSDR_SOURCE) # Sink modules +if (OPT_BUILD_ANDROID_AUDIO_SINK) +add_subdirectory("sink_modules/android_audio_sink") +endif (OPT_BUILD_ANDROID_AUDIO_SINK) + if (OPT_BUILD_AUDIO_SINK) add_subdirectory("sink_modules/audio_sink") endif (OPT_BUILD_AUDIO_SINK) @@ -135,6 +161,10 @@ if (OPT_BUILD_FALCON9_DECODER) add_subdirectory("decoder_modules/falcon9_decoder") endif (OPT_BUILD_FALCON9_DECODER) +if (OPT_BUILD_KG_SSTV_DECODER) +add_subdirectory("decoder_modules/kg_sstv_decoder") +endif (OPT_BUILD_KG_SSTV_DECODER) + if (OPT_BUILD_M17_DECODER) add_subdirectory("decoder_modules/m17_decoder") endif (OPT_BUILD_M17_DECODER) @@ -151,8 +181,9 @@ if (OPT_BUILD_WEATHER_SAT_DECODER) add_subdirectory("decoder_modules/weather_sat_decoder") endif (OPT_BUILD_WEATHER_SAT_DECODER) +if (OPT_BUILD_RADIOSONDE_DECODER) add_subdirectory("decoder_modules/sdrpp_radiosonde") - +endif(OPT_BUILD_RADIOSONDE_DECODER) # Misc if (OPT_BUILD_DISCORD_PRESENCE)