attempt at enabling the plutosdr in android build

This commit is contained in:
AlexandreRouma 2023-02-18 20:22:29 +01:00
parent 290c989451
commit 13e81c9f6b
2 changed files with 5 additions and 6 deletions

View File

@ -14,7 +14,7 @@ android {
externalNativeBuild {
cmake {
arguments "-DOPT_BACKEND_GLFW=OFF", "-DOPT_BACKEND_ANDROID=ON", "-DOPT_BUILD_SOAPY_SOURCE=OFF", "-DOPT_BUILD_ANDROID_AUDIO_SINK=ON", "-DOPT_BUILD_AUDIO_SINK=OFF", "-DOPT_BUILD_DISCORD_PRESENCE=OFF", "-DOPT_BUILD_M17_DECODER=ON", "-DOPT_BUILD_PLUTOSDR_SOURCE=OFF"
arguments "-DOPT_BACKEND_GLFW=OFF", "-DOPT_BACKEND_ANDROID=ON", "-DOPT_BUILD_SOAPY_SOURCE=OFF", "-DOPT_BUILD_ANDROID_AUDIO_SINK=ON", "-DOPT_BUILD_AUDIO_SINK=OFF", "-DOPT_BUILD_DISCORD_PRESENCE=OFF", "-DOPT_BUILD_M17_DECODER=ON", "-DOPT_BUILD_PLUTOSDR_SOURCE=ON"
}
}
}

View File

@ -14,14 +14,13 @@ if (MSVC)
target_link_libraries(plutosdr_source PRIVATE libad9361)
elseif (ANDROID)
target_include_directories(plutosdr_source PUBLIC
/mnt/android_sdr/libiio
/mnt/android_sdr/libad9361-iio
/sdr-kit/${ANDROID_ABI}/include
)
target_link_libraries(plutosdr_source PUBLIC
/mnt/android_sdr/output/libxml2/${ANDROID_ABI}/libxml2.so
/mnt/android_sdr/output/libiio/${ANDROID_ABI}/libiio.so
/mnt/android_sdr/output/libad9361/${ANDROID_ABI}/libad9361.so
/sdr-kit/${ANDROID_ABI}/lib/libxml2.so
/sdr-kit/${ANDROID_ABI}/lib/libiio.so
/sdr-kit/${ANDROID_ABI}/lib/libad9361.so
)
else (MSVC)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")