mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-24 08:44:44 +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 {
|
externalNativeBuild {
|
||||||
cmake {
|
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)
|
target_link_libraries(plutosdr_source PRIVATE libad9361)
|
||||||
elseif (ANDROID)
|
elseif (ANDROID)
|
||||||
target_include_directories(plutosdr_source PUBLIC
|
target_include_directories(plutosdr_source PUBLIC
|
||||||
/mnt/android_sdr/libiio
|
/sdr-kit/${ANDROID_ABI}/include
|
||||||
/mnt/android_sdr/libad9361-iio
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(plutosdr_source PUBLIC
|
target_link_libraries(plutosdr_source PUBLIC
|
||||||
/mnt/android_sdr/output/libxml2/${ANDROID_ABI}/libxml2.so
|
/sdr-kit/${ANDROID_ABI}/lib/libxml2.so
|
||||||
/mnt/android_sdr/output/libiio/${ANDROID_ABI}/libiio.so
|
/sdr-kit/${ANDROID_ABI}/lib/libiio.so
|
||||||
/mnt/android_sdr/output/libad9361/${ANDROID_ABI}/libad9361.so
|
/sdr-kit/${ANDROID_ABI}/lib/libad9361.so
|
||||||
)
|
)
|
||||||
else (MSVC)
|
else (MSVC)
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user