From f7680e854e13e9276cb104278fc940c1c34d99f7 Mon Sep 17 00:00:00 2001 From: Crimson-Hawk Date: Sat, 23 Mar 2024 16:06:19 +0800 Subject: [PATCH] partially restore correct macos build --- Building-for-macOS.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Building-for-macOS.md b/Building-for-macOS.md index 449dab3..8599642 100644 --- a/Building-for-macOS.md +++ b/Building-for-macOS.md @@ -12,7 +12,29 @@ cd suyu Install dependencies from Homebrew: ```sh -brew install autoconf automake boost@1.76 ccache ffmpeg fmt glslang hidapi libtool libusb lz4 ninja nlohmann-json openssl pkg-config qt@5 sdl2 speexdsp zlib zlib zstd +brew install autoconf automake boost ccache ffmpeg fmt glslang hidapi libtool libusb lz4 ninja nlohmann-json openssl pkg-config qt@5 sdl2 speexdsp zlib zlib zstd cmake Catch2 molten-vk vulkan-loader +``` + +Clone the repo +```sh +git clone https://gitlab.com/suyu-emu/suyu.git + +cd suyu + +git submodule update --init --recursive +``` + +Build for release +```sh +mkdir build && cd build + +export Qt5_DIR="/opt/homebrew/opt/qt@5/lib/cmake" + +export LIBVULKAN_PATH=/opt/homebrew/lib/libvulkan.dylib + +cmake .. -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSUYU_USE_BUNDLED_VCPKG=OFF -DSUYU_TESTS=OFF -DENABLE_WEB_SERVICE=OFF -DENABLE_LIBUSB=OFF -DCLANG_FORMAT=ON -DSDL2_DISABLE_INSTALL=ON -DSDL_ALTIVEC=ON + +ninja ``` Build with debug symbols (vcpkg is not currently used due to broken boost-context library):