From 7ce4caaa14ca44e3636c9549b1218df499f6f048 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 10 Jul 2023 16:55:44 +1000 Subject: [PATCH] Add Opus library --- .gitmodules | 3 +++ source/extern/CMakeLists.txt | 10 ++++++++++ source/extern/opus | 1 + 3 files changed, 14 insertions(+) create mode 100644 .gitmodules create mode 160000 source/extern/opus diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..64e8013 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "source/extern/opus"] + path = source/extern/opus + url = https://github.com/xiph/opus diff --git a/source/extern/CMakeLists.txt b/source/extern/CMakeLists.txt index e96b1b1..0195b8f 100644 --- a/source/extern/CMakeLists.txt +++ b/source/extern/CMakeLists.txt @@ -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 ( ${STAR_EXTERN_INCLUDES} + opus fmt lua ) @@ -60,3 +69,4 @@ SET (star_extern_SOURCES ) ADD_LIBRARY (star_extern OBJECT ${star_extern_SOURCES} ${star_extern_HEADERS}) +TARGET_LINK_LIBRARIES(star_extern opus) \ No newline at end of file diff --git a/source/extern/opus b/source/extern/opus new file mode 160000 index 0000000..9fc8fc4 --- /dev/null +++ b/source/extern/opus @@ -0,0 +1 @@ +Subproject commit 9fc8fc4cf432640f284113ba502ee027268b0d9f