Add Opus library

This commit is contained in:
Kae 2023-07-10 16:55:44 +10:00
parent fe99ec6966
commit 7ce4caaa14
3 changed files with 14 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "source/extern/opus"]
path = source/extern/opus
url = https://github.com/xiph/opus

View File

@ -1,5 +1,14 @@
SET (OPUS_INSTALL_PKG_CONFIG_MODULE OFF)
SET (OPUS_INSTALL_CMAKE_CONFIG_MODULE OFF)
SET (OPUS_X86_MAY_HAVE_AVX OFF)
SET (OPUS_X86_MAY_HAVE_SSE4_1 OFF)
SET (OPUS_STACK_PROTECTOR OFF)
ADD_SUBDIRECTORY (opus)
INCLUDE_DIRECTORIES ( INCLUDE_DIRECTORIES (
${STAR_EXTERN_INCLUDES} ${STAR_EXTERN_INCLUDES}
opus
fmt fmt
lua lua
) )
@ -60,3 +69,4 @@ SET (star_extern_SOURCES
) )
ADD_LIBRARY (star_extern OBJECT ${star_extern_SOURCES} ${star_extern_HEADERS}) ADD_LIBRARY (star_extern OBJECT ${star_extern_SOURCES} ${star_extern_HEADERS})
TARGET_LINK_LIBRARIES(star_extern opus)

1
source/extern/opus vendored Submodule

@ -0,0 +1 @@
Subproject commit 9fc8fc4cf432640f284113ba502ee027268b0d9f