Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyShestakov committed Aug 2, 2017
0 parents commit 2a6c4c3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Pre-built Windows dependencies for [VCMI](https://github.com/vcmi/vcmi)

Built and exported by [Vcpkg](https://github.com/Microsoft/vcpkg).

## Instructions

* Install Vcpkg and it's dependencies.
* Build all required packages for one or both architectures:
```
vcpkg install minizip:x64-windows sdl2:x64-windows sdl2-image:x64-windows sdl2-ttf:x64-windows sdl2-mixer:x64-windows boost:x64-windows qt5:x64-windows ffmpeg:x64-windows
vcpkg install minizip:x86-windows sdl2:x86-windows sdl2-image:x86-windows sdl2-ttf:x86-windows sdl2-mixer:x86-windows boost:x86-windows qt5:x86-windows ffmpeg:x86-windows
```
* Export packages so 7z archive will be produced:
```
vcpkg export minizip:x64-windows sdl2:x64-windows sdl2-image:x64-windows sdl2-ttf:x64-windows sdl2-mixer:x64-windows boost:x64-windows qt5:x64-windows ffmpeg:x64-windows --7zip
vcpkg export minizip:x86-windows sdl2:x86-windows sdl2-image:x86-windows sdl2-ttf:x86-windows sdl2-mixer:x86-windows boost:x86-windows qt5:x86-windows ffmpeg:x86-windows --7zip
```
* Rename archives appropriately. Bevare that Vcpkg use newest MSVC available by default, but [it's possible to enforce certain version with custom triplet](https://github.com/Microsoft/vcpkg/issues/1207).
```
vcpkg-export-20170802-233045.7z -> vcpkg-export-x86-windows-v140.7z
vcpkg-export-20170802-233045.7z -> vcpkg-export-x64-windows-v140.7z
```
* Rename root directory inside archive from ```vcpkg-export-20170802-233045``` to ```vcpkg```. Can be done via command line 7-zip:
```
# Linux
7za rn vcpkg-export-x64-windows-v140.7z vcpkg-export-20170802-233045 vcpkg
# Windows. Fail for some reason.
7z.exe rn vcpkg-export-x64-windows-v140.7z vcpkg-export-20170802-233045 vcpkg
```

0 comments on commit 2a6c4c3

Please sign in to comment.