aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDave Blake <oak99sky@yahoo.co.uk>2021-02-24 16:09:15 +0000
committerGitHub <noreply@github.com>2021-02-24 16:09:15 +0000
commitb099298261996605bae63ad64a6a361eedb5c9cb (patch)
treea27fb605e728866fa75814e82d382cb11482ca00 /docs
parent041e84dba85d857afce1a01675592e0f62a96981 (diff)
parentd3fc1bd106dab73477ff76edfd932686b0dc0fcd (diff)
Merge pull request #18222 from thexai/BuildSetup-VS-2019
Updated build scripts for Visual Studio 2019 compatibility
Diffstat (limited to 'docs')
-rw-r--r--docs/README.Windows.md24
1 files changed, 18 insertions, 6 deletions
diff --git a/docs/README.Windows.md b/docs/README.Windows.md
index f6a6ea65a6..7609e94584 100644
--- a/docs/README.Windows.md
+++ b/docs/README.Windows.md
@@ -198,30 +198,42 @@ cd kodi-build
Configure build for 64bit (**recommended**):
```
-cmake -G "Visual Studio 15 Win64" -T host=x64 %userprofile%\kodi
+cmake -G "Visual Studio 15 2017" -A x64 -T host=x64 %userprofile%\kodi
```
Or configure build for 32bit:
```
-cmake -G "Visual Studio 15" -T host=x64 %userprofile%\kodi
+cmake -G "Visual Studio 15 2017" -A Win32 -T host=x64 %userprofile%\kodi
```
Or configure build for UWP 64bit:
```
-cmake -G "Visual Studio 15 Win64" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -T host=x64 %userprofile%\kodi
+cmake -G "Visual Studio 15 2017" -A x64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -T host=x64 %userprofile%\kodi
```
Or configure build for UWP 32bit:
```
-cmake -G "Visual Studio 15" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -T host=x64 %userprofile%\kodi
+cmake -G "Visual Studio 15 2017" -A Win32 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -T host=x64 %userprofile%\kodi
```
Or configure build for UWP ARM 32bit:
```
-cmake -G "Visual Studio 15 ARM" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -T host=x64 %userprofile%\kodi
+cmake -G "Visual Studio 15 2017" -A ARM -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -T host=x64 %userprofile%\kodi
```
-**WARNING:** `-T host=x64` requires CMake version >= 3.8. If your version is older, drop `-T host=x64` from the command.
+**Visual Studio 2019:**
+
+Replace:
+```
+-G "Visual Studio 15 2017"
+```
+
+With:
+```
+-G "Visual Studio 16 2019"
+```
+
+**WARNING:** Is required CMake version >= 3.8.
Build Kodi:
Build a `Debug` binary: