diff --git a/.gitmodules b/.gitmodules index 2d13581c..46232bb5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "UnleashedRecompResources"] path = UnleashedRecompResources url = https://github.com/hedge-dev/UnleashedRecompResources.git +[submodule "thirdparty/miniaudio"] + path = thirdparty/miniaudio + url = https://github.com/mackron/miniaudio diff --git a/UnleashedRecomp/CMakeLists.txt b/UnleashedRecomp/CMakeLists.txt index e36644a9..72ad6e69 100644 --- a/UnleashedRecomp/CMakeLists.txt +++ b/UnleashedRecomp/CMakeLists.txt @@ -163,6 +163,8 @@ set_source_files_properties(${LIBMSPACK_C_SOURCES} PROPERTIES SKIP_PRECOMPILE_HE set(SMOLV_SOURCE_DIR "${SWA_THIRDPARTY_ROOT}/ShaderRecomp/thirdparty/smol-v/source") set(BC_DIFF_SOURCE_DIR "${SWA_TOOLS_ROOT}/bc_diff") +set(MINIAUDIO_INCLUDE_DIRS "${SWA_THIRDPARTY_ROOT}/miniaudio") + set(SWA_USER_CXX_SOURCES "user/achievement_data.cpp" "user/config.cpp" @@ -220,7 +222,6 @@ find_package(imgui CONFIG REQUIRED) find_package(magic_enum CONFIG REQUIRED) find_package(unofficial-tiny-aes-c CONFIG REQUIRED) find_package(nfd CONFIG REQUIRED) -find_path(MINIAUDIO_INCLUDE_DIRS "miniaudio.h") file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/D3D12) add_custom_command(TARGET UnleashedRecomp POST_BUILD diff --git a/vcpkg.json b/vcpkg.json index d778cb96..5b42e039 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -22,7 +22,6 @@ "features": [ "sdl2-binding" ] }, "magic-enum", - "nativefiledialog-extended", - "miniaudio" + "nativefiledialog-extended" ] }