Added README
This commit is contained in:
parent
53c620cd9b
commit
1938b96240
1 changed files with 26 additions and 0 deletions
26
README.md
26
README.md
|
|
@ -39,3 +39,29 @@ git submodule update --init --recursive
|
|||
```
|
||||
|
||||
You can build with `clang`, although in that case the CMakeFile defaults to using `libc++` instead of `libstdc++`.
|
||||
|
||||
### Building with MSVC on windows
|
||||
|
||||
The simplest is to use `vcpkg` as a package manager, which will give you access to `libsndfile`.
|
||||
```sh
|
||||
PS> git clone https://github.com/Microsoft/vcpkg.git
|
||||
PS> cd vcpkg
|
||||
PS> .\bootstrap-vcpkg.bat
|
||||
PS> .\vcpkg integrate install
|
||||
PS> .\vcpkg integrate powershell
|
||||
```
|
||||
|
||||
Assuming you want to build for x64, install the relevant packages as follows
|
||||
```sh
|
||||
PS> .\vcpkg.exe install libsndfile:x64-windows zlib:x64-windows libsamplerate:x64-windows
|
||||
```
|
||||
|
||||
In the sfizz source directory, you can then build with CMake as usual, although you should clone the windows branch:
|
||||
```sh
|
||||
git clone --branch windows --recursive https://github.com/sfztools/sfizz.git
|
||||
cd sfizz
|
||||
mkdir build && cd build
|
||||
cmake .. -DSFIZZ_JACK=OFF "-DCMAKE_TOOLCHAIN_FILE=C:\Users\Paul\source\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows
|
||||
cmake --build . -j 16 --config Release
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue