2019-11-28 14:17:24 +00:00
|
|
|
set(SRCS
|
|
|
|
android_host_interface.cpp
|
|
|
|
android_host_interface.h
|
2020-10-24 05:46:08 +00:00
|
|
|
android_progress_callback.cpp
|
|
|
|
android_progress_callback.h
|
2020-07-10 17:29:15 +00:00
|
|
|
android_settings_interface.cpp
|
|
|
|
android_settings_interface.h
|
2019-11-28 14:17:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(duckstation-native SHARED ${SRCS})
|
2020-07-05 11:31:17 +00:00
|
|
|
target_link_libraries(duckstation-native PRIVATE android frontend-common core common glad imgui)
|
2020-10-13 13:11:28 +00:00
|
|
|
|
|
|
|
find_package(OpenSLES)
|
|
|
|
if(OPENSLES_FOUND)
|
|
|
|
message("Enabling OpenSL ES audio stream")
|
|
|
|
target_sources(duckstation-native PRIVATE
|
|
|
|
opensles_audio_stream.cpp
|
|
|
|
opensles_audio_stream.h)
|
|
|
|
target_link_libraries(duckstation-native PRIVATE OpenSLES::OpenSLES)
|
|
|
|
target_compile_definitions(duckstation-native PRIVATE "-DUSE_OPENSLES=1")
|
|
|
|
endif()
|