summaryrefslogtreecommitdiffstats
path: root/src/audio_core/CMakeLists.txt
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-17 06:11:20 +0100
committerLiam <byteslice@airmail.cc>2023-12-17 07:42:59 +0100
commit7239547eada6ad4a24e65957dfab180a51818947 (patch)
tree39b090bb0b9f74d8764a3c8d23ebd12c5e18f1f0 /src/audio_core/CMakeLists.txt
parentMerge pull request #12378 from liamwhite/offsetof (diff)
downloadyuzu-7239547eada6ad4a24e65957dfab180a51818947.tar
yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.gz
yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.bz2
yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.lz
yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.xz
yuzu-7239547eada6ad4a24e65957dfab180a51818947.tar.zst
yuzu-7239547eada6ad4a24e65957dfab180a51818947.zip
Diffstat (limited to 'src/audio_core/CMakeLists.txt')
-rw-r--r--src/audio_core/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt
index 400988c5f..e982d03be 100644
--- a/src/audio_core/CMakeLists.txt
+++ b/src/audio_core/CMakeLists.txt
@@ -253,6 +253,17 @@ if (ENABLE_SDL2)
target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
endif()
+if (ANDROID)
+ target_sources(audio_core PRIVATE
+ sink/oboe_sink.cpp
+ sink/oboe_sink.h
+ )
+
+ # FIXME: this port seems broken, it cannot be imported with find_package(oboe REQUIRED)
+ target_link_libraries(audio_core PRIVATE "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/liboboe.a")
+ target_compile_definitions(audio_core PRIVATE HAVE_OBOE)
+endif()
+
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(audio_core PRIVATE precompiled_headers.h)
endif()