cmake: Add stb-vorbis

This is a lightweight single-file Ogg Vorbis decoder which will be used
for Ogg playback instead of libogg/libvorbis.
This commit is contained in:
Eidolon 2023-01-01 15:11:08 -06:00
parent 210b513c8b
commit 9806df5883
4 changed files with 5591 additions and 0 deletions

View file

@ -666,3 +666,4 @@ if(xmp-lite_ADDED)
endif()
add_subdirectory(tcbrindle_span)
add_subdirectory(stb_vorbis)

4
thirdparty/stb_vorbis/CMakeLists.txt vendored Normal file
View file

@ -0,0 +1,4 @@
# Update from https://github.com/nothings/stb
# This doesn't use CPM because stb_vorbis.c has a weird header setup
add_library(stb_vorbis STATIC stb_vorbis.c include/stb_vorbis.h)
target_include_directories(stb_vorbis PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")

View file

@ -0,0 +1,2 @@
#define STB_VORBIS_HEADER_ONLY
#include "../stb_vorbis.c"

5584
thirdparty/stb_vorbis/stb_vorbis.c vendored Normal file

File diff suppressed because it is too large Load diff