Add Opus submodule

This commit is contained in:
sspacelynx 2021-07-14 16:28:02 +02:00 committed by ◱ Mark
parent b533801bbe
commit 3de4c3e32e
3 changed files with 9 additions and 1 deletions

3
.gitmodules vendored
View File

@ -31,3 +31,6 @@
[submodule "app/libraries/mbedtls"]
path = app/libraries/mbedtls
url = https://github.com/ARMmbed/mbedtls
[submodule "app/libraries/opus"]
path = app/libraries/opus
url = https://github.com/xiph/opus

View File

@ -59,6 +59,10 @@ set(UNSAFE_BUILD ON CACHE BOOL "Allow unsafe builds. These builds ARE NOT SECURE
add_subdirectory("libraries/mbedtls")
include_directories("libraries/mbedtls/include")
# Opus
add_subdirectory("libraries/opus")
include_directories("libraries/opus/include")
# Perfetto SDK
include_directories(libraries/perfetto/sdk)
add_library(perfetto STATIC libraries/perfetto/sdk/perfetto.cc)
@ -217,5 +221,5 @@ add_library(skyline SHARED
${source_DIR}/skyline/services/mmnv/IRequest.cpp
)
# target_precompile_headers(skyline PRIVATE ${source_DIR}/skyline/common.h) # PCH will currently break Intellisense
target_link_libraries(skyline android perfetto fmt lz4_static tzcode oboe vkma mbedcrypto)
target_link_libraries(skyline android perfetto fmt lz4_static tzcode oboe vkma mbedcrypto opus)
target_compile_options(skyline PRIVATE -Wall -Wno-unknown-attributes -Wno-c++20-extensions -Wno-c++17-extensions -Wno-c99-designator -Wno-reorder -Wno-missing-braces -Wno-unused-variable -Wno-unused-private-field)

1
app/libraries/opus Submodule

@ -0,0 +1 @@
Subproject commit 6b6035ae4a29abbd237463d84a45fbeb0d92bc18