This repo is used to pull and build external dependencies for the Touhou Community Reliant Automatic Patcher.
You should never need to clone it directly. Instead, clone thcrap using git clone --recursive https://github.com/thpatch/thcrap.git
and this repository (and its depeendencies) will be downloaded automatically.
Note that this repository already contains prebuilt binaries. If you just want to build thcrap, you don't need to build this. Just build thcrap, and it will use the prebuilt binaries.
git clone --recursive https://github.com/thpatch/thcrap.git
- Install Perl (I'm using Strawberry Perl, it works for me), make sure it have been added to the PATH.
- Install NASM, add it to the PATH.
- Install Meson
- Open a Visual Studio x86 comand prompt. If you use Visual Studio 2019 with the v141_xp tools installed, you can find "x86 Native Tools Command Prompt for VS 2019" in the Start menu.
cd ........\thcrap\libs\external_deps
.\build.bat
- Open a Visual Studio x64 comand prompt. If you use Visual Studio 2019 with the v141_xp tools installed, you can find "x64 Native Tools Command Prompt for VS 2019" in the Start menu.
cd ........\thcrap\libs\external_deps
.\build.bat
- Go to thcrap\libs\external_deps
- Open thcrap_external_deps.sln
- Build all