mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-06 02:37:32 +01:00
attempt at enabling the plutosdr in android build
This commit is contained in:
parent
290c989451
commit
13e81c9f6b
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user