diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-09-05 02:04:27 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-09-07 22:25:38 +0300 |
commit | 5e42f2ad26d35950405480f3eea2ed73fdfba841 (patch) | |
tree | 51e2b1738e61244bfacae4cd8c04a5af2277f317 /build_msvc | |
parent | ecf580e40f607091a5e5d5fff9865237e037ea7f (diff) |
build: Make <QtBaseDir> default name Qt and VS versions agnostic
This change allows users to not patch `common.qt.init.vcxproj` to fit
their Qt and Visual Studio versions. Also it simplifies code base
maintaining.
To specify a non-default path, the QTBASEDIR environment variable can be
used.
Diffstat (limited to 'build_msvc')
-rw-r--r-- | build_msvc/README.md | 2 | ||||
-rw-r--r-- | build_msvc/common.qt.init.vcxproj | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build_msvc/README.md b/build_msvc/README.md index c3705f6b03..7aad033bef 100644 --- a/build_msvc/README.md +++ b/build_msvc/README.md @@ -55,7 +55,7 @@ The instructions below use `vcpkg` to install the dependencies. PS >py -3 msvc-autogen.py ``` -- An optional step is to adjust the settings in the `build_msvc` directory and the `common.init.vcxproj` file. This project file contains settings that are common to all projects such as the runtime library version and target Windows SDK version. The Qt directories can also be set. +- An optional step is to adjust the settings in the `build_msvc` directory and the `common.init.vcxproj` file. This project file contains settings that are common to all projects such as the runtime library version and target Windows SDK version. The Qt directories can also be set. To specify a non-default path to a static Qt package directory, use the `QTBASEDIR` environment variable. - To build from the command line with the Visual Studio 2019 toolchain use: diff --git a/build_msvc/common.qt.init.vcxproj b/build_msvc/common.qt.init.vcxproj index df2fd2fb49..cc8063e545 100644 --- a/build_msvc/common.qt.init.vcxproj +++ b/build_msvc/common.qt.init.vcxproj @@ -2,7 +2,7 @@ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Label="QtGlobals"> - <QtBaseDir>C:\Qt5.12.11_x64_static_vs2019_160900</QtBaseDir> + <QtBaseDir Condition="'$(QTBASEDIR)' == ''">C:\Qt_static</QtBaseDir> <QtPluginsLibraryDir>$(QtBaseDir)\plugins</QtPluginsLibraryDir> <QtLibraryDir>$(QtBaseDir)\lib</QtLibraryDir> <QtIncludeDir>$(QtBaseDir)\include</QtIncludeDir> |