From a8eda4952f5ddb082c005c4ee9e2a064025184c8 Mon Sep 17 00:00:00 2001
From: giy <giy@omp-system.ru>
Date: Fri, 24 Jun 2022 13:45:50 +0300
Subject: [PATCH] Добавлена инструкция по билду

---
 Сборка.md |   76 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 76 insertions(+), 0 deletions(-)

diff --git "a/\320\241\320\261\320\276\321\200\320\272\320\260.md" "b/\320\241\320\261\320\276\321\200\320\272\320\260.md"
new file mode 100644
index 0000000..dd25307
--- /dev/null
+++ "b/\320\241\320\261\320\276\321\200\320\272\320\260.md"
@@ -0,0 +1,76 @@
+Полная инструкция находится в README. Там же и инструкция по дебагу.
+
+### Requirements
+
+The following is required in order to build the Qt Visual Studio solution:
+
+- Visual Studio 2017, 2019 or 2022, with the following workloads:
+    - Desktop development with C++
+    - .NET desktop development
+    - [Visual Studio extension development](https://docs.microsoft.com/en-us/visualstudio/extensibility/installing-the-visual-studio-sdk)
+    - [Linux development with C++](https://devblogs.microsoft.com/cppblog/linux-development-with-c-in-visual-studio/)
+
+- [`vswhere` tool](https://github.com/microsoft/vswhere) (usually installed with Visual Studio):
+    - [Version 2.7.1](https://github.com/microsoft/vswhere/releases/tag/2.7.1) or greater.
+
+- `git` must be installed and included in the `PATH` environment variable.
+
+### Environment variables
+
+Set environment variables `QTBUILD_STATIC_VS`_`nnnn`_ according to the installed VS versions, i.e.:
+- `QTBUILD_STATIC_VS2017` = _path to Qt installation built with msvc2017_
+- `QTBUILD_STATIC_VS2019` = _path to Qt installation built with msvc2019_
+- `QTBUILD_STATIC_VS2022` = _path to Qt installation built with msvc2022_
+
+For example, assuming Qt is installed in the following directory tree:
+
+    C:
+    +--- build
+         +--- qt_5.12.9_msvc2019_x86
+         |    +--- bin
+         |    +--- include
+         |    +--- lib
+         |    (etc.)
+         |
+         +--- qt_5.12.9_msvc2022_x64
+              +--- bin
+              +--- include
+              +--- lib
+              (etc.)
+
+In this case, the following environment variables must be set:
+
+    QTBUILD_STATIC_VS2017=C:\build\qt_5.12.9_msvc2017_x86
+    QTBUILD_STATIC_VS2022=C:\build\qt_5.12.9_msvc2022_x64
+    
+
+`Сборка под VS2017:`
+Обязательно наличие VS 2017 
+
+Установить переменную среды QTBUILD_STATIC_VS2017  (Пример QTBUILD_STATIC_VS2017=C:\build\qt_5.12.9_msvc2017_x86) для VS 2017 только QT x86
+
+
+В директории через cmd вызвать
+vstools -vs2017 -init -config Release или Debug -rebuild -deploy Path -startvs
+
+где Path - это путь, куда будет закидываться собранный vsix
+    config - выбор между релизом и дебагом
+    startvs - наличие данного параметра отвечает за открытие студии после отработки скрипта
+
+После отработки скрипта откроется 17 студия. В ней выполняется сборка. Для VS 2017 выбирается платформа x86 или Any Cpu
+
+
+`Сборка под VS2022:`
+Обязательно наличие VS 2022 
+
+Установить переменную среды QTBUILD_STATIC_VS2022  (Пример QTBUILD_STATIC_VS2022=C:\build\qt_5.12.9_msvc2022_x64) для VS 2012 только QT x64
+
+В директории через cmd вызвать
+vstools -vs2022 -init -config Release или Debug -rebuild -deploy Path -startvs
+
+где Path - это путь, куда будет закидываться собранный vsix
+    config - выбор между релизом и дебагом
+    startvs - наличие данного параметра отвечает за открытие студии после отработки скрипта
+
+После отработки скрипта откроется 22 студия. Нужно обновить нугеты: tools -> NuGet package manager -> Manage NuGet package for solution, вкладка Updates. Выбрать и обновить все.
+Выполнить сборку. Для VS 2022 платформа только x64

--
Gitblit v1.9.1