mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
210b513c8b
commit
9806df5883
4 changed files with 5591 additions and 0 deletions
1
thirdparty/CMakeLists.txt
vendored
1
thirdparty/CMakeLists.txt
vendored
|
|
@ -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
4
thirdparty/stb_vorbis/CMakeLists.txt
vendored
Normal 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")
|
||||
2
thirdparty/stb_vorbis/include/stb_vorbis.h
vendored
Normal file
2
thirdparty/stb_vorbis/include/stb_vorbis.h
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define STB_VORBIS_HEADER_ONLY
|
||||
#include "../stb_vorbis.c"
|
||||
5584
thirdparty/stb_vorbis/stb_vorbis.c
vendored
Normal file
5584
thirdparty/stb_vorbis/stb_vorbis.c
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue