-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add QtMsBuild to the project as there are some platforms where it is …
…not available. Specially on Windows Visual Studip + Qt addn
- Loading branch information
Showing
39 changed files
with
9,484 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2020 The Qt Company Ltd. | ||
** Contact: https://www.qt.io/licensing/ | ||
** | ||
** This file is part of the Qt VS Tools. | ||
** | ||
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ | ||
** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||
** accordance with the commercial license agreement provided with the | ||
** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and The Qt Company. For licensing terms | ||
** and conditions see https://www.qt.io/terms-conditions. For further | ||
** information use the contact form at https://www.qt.io/contact-us. | ||
** | ||
** GNU General Public License Usage | ||
** Alternatively, this file may be used under the terms of the GNU | ||
** General Public License version 3 as published by the Free Software | ||
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT | ||
** included in the packaging of this file. Please review the following | ||
** information to ensure the GNU General Public License requirements will | ||
** be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
** | ||
** $QT_END_LICENSE$ | ||
** | ||
****************************************************************************/ | ||
--> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- | ||
///////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Qt/MSBuild import | ||
// --> | ||
<PropertyGroup> | ||
<QtMsBuildProps> | ||
$(QtMsBuildProps); | ||
$(MSBuildThisFileDirectory)qtdeploy.props | ||
</QtMsBuildProps> | ||
<QtMsBuildTargets> | ||
$(QtMsBuildTargets); | ||
$(MSBuildThisFileDirectory)qtdeploy.targets | ||
</QtMsBuildTargets> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2020 The Qt Company Ltd. | ||
** Contact: https://www.qt.io/licensing/ | ||
** | ||
** This file is part of the Qt VS Tools. | ||
** | ||
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ | ||
** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||
** accordance with the commercial license agreement provided with the | ||
** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and The Qt Company. For licensing terms | ||
** and conditions see https://www.qt.io/terms-conditions. For further | ||
** information use the contact form at https://www.qt.io/contact-us. | ||
** | ||
** GNU General Public License Usage | ||
** Alternatively, this file may be used under the terms of the GNU | ||
** General Public License version 3 as published by the Free Software | ||
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT | ||
** included in the packaging of this file. Please review the following | ||
** information to ensure the GNU General Public License requirements will | ||
** be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
** | ||
** $QT_END_LICENSE$ | ||
** | ||
****************************************************************************/ | ||
--> | ||
|
||
<!-- | ||
/////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Deployment of Qt dependencies | ||
// --> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<QtDeploy Condition="'$(QtDeploy)' == ''">false</QtDeploy> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2020 The Qt Company Ltd. | ||
** Contact: https://www.qt.io/licensing/ | ||
** | ||
** This file is part of the Qt VS Tools. | ||
** | ||
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ | ||
** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||
** accordance with the commercial license agreement provided with the | ||
** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and The Qt Company. For licensing terms | ||
** and conditions see https://www.qt.io/terms-conditions. For further | ||
** information use the contact form at https://www.qt.io/contact-us. | ||
** | ||
** GNU General Public License Usage | ||
** Alternatively, this file may be used under the terms of the GNU | ||
** General Public License version 3 as published by the Free Software | ||
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT | ||
** included in the packaging of this file. Please review the following | ||
** information to ensure the GNU General Public License requirements will | ||
** be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
** | ||
** $QT_END_LICENSE$ | ||
** | ||
****************************************************************************/ | ||
--> | ||
|
||
<!-- | ||
/////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Deployment of Qt dependencies | ||
// --> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- | ||
///////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Deploy Qt files | ||
// --> | ||
<Target Name="QtDeploy" | ||
AfterTargets="Link" | ||
DependsOnTargets="QtRunDeploy" | ||
Condition="'$(QtDeploy)' == 'true'"> | ||
<ReadLinesFromFile File="$(TargetName).windeployqt.$(Platform).$(Configuration)"> | ||
<Output TaskParameter="Lines" ItemName="DeploymentItems" /> | ||
</ReadLinesFromFile> | ||
<ItemGroup> | ||
<None Include="@(DeploymentItems)"> | ||
<DeploymentContent>true</DeploymentContent> | ||
<RootFolder>$(ProjectDir)</RootFolder> | ||
</None> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<!-- | ||
///////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Call windeployqt | ||
// --> | ||
<Target Name="QtRunDeploy" | ||
Inputs="$(OutDir)\$(TargetName).exe" | ||
Outputs="$(TargetName).windeployqt.$(Platform).$(Configuration)" | ||
Condition="'$(QtDeploy)' == 'true'"> | ||
<PropertyGroup> | ||
<Cmd>$(QTDIR)\bin\windeployqt.exe</Cmd> | ||
<Cmd>$(Cmd) -qmldir "$(MSBuildProjectDirectory)"</Cmd> | ||
<Cmd>$(Cmd) -list relative</Cmd> | ||
<Cmd>$(Cmd) -dir "$(MSBuildProjectDirectory)"</Cmd> | ||
<Cmd>$(Cmd) "$(OutDir)\$(TargetName).exe"</Cmd> | ||
<Cmd>$(Cmd) > "$(TargetName).windeployqt.$(Platform).$(Configuration)"</Cmd> | ||
</PropertyGroup> | ||
<Message Importance="high" Text="windeployqt: $(Cmd)" /> | ||
<Exec Command="$(Cmd)" /> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2019 The Qt Company Ltd. | ||
** Contact: https://www.qt.io/licensing/ | ||
** | ||
** This file is part of the Qt VS Tools. | ||
** | ||
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ | ||
** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||
** accordance with the commercial license agreement provided with the | ||
** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and The Qt Company. For licensing terms | ||
** and conditions see https://www.qt.io/terms-conditions. For further | ||
** information use the contact form at https://www.qt.io/contact-us. | ||
** | ||
** GNU General Public License Usage | ||
** Alternatively, this file may be used under the terms of the GNU | ||
** General Public License version 3 as published by the Free Software | ||
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT | ||
** included in the packaging of this file. Please review the following | ||
** information to ensure the GNU General Public License requirements will | ||
** be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
** | ||
** $QT_END_LICENSE$ | ||
** | ||
****************************************************************************/ | ||
--> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- | ||
///////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Qt/MSBuild import | ||
// --> | ||
<PropertyGroup> | ||
<QtMsBuildProps> | ||
$(QtMsBuildProps); | ||
$(MSBuildThisFileDirectory)qtmoc.props | ||
</QtMsBuildProps> | ||
<QtMsBuildTargets> | ||
$(QtMsBuildTargets); | ||
$(MSBuildThisFileDirectory)qtmoc.targets | ||
</QtMsBuildTargets> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2019 The Qt Company Ltd. | ||
** Contact: https://www.qt.io/licensing/ | ||
** | ||
** This file is part of the Qt VS Tools. | ||
** | ||
** $QT_BEGIN_LICENSE:GPL-EXCEPT$ | ||
** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||
** accordance with the commercial license agreement provided with the | ||
** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and The Qt Company. For licensing terms | ||
** and conditions see https://www.qt.io/terms-conditions. For further | ||
** information use the contact form at https://www.qt.io/contact-us. | ||
** | ||
** GNU General Public License Usage | ||
** Alternatively, this file may be used under the terms of the GNU | ||
** General Public License version 3 as published by the Free Software | ||
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT | ||
** included in the packaging of this file. Please review the following | ||
** information to ensure the GNU General Public License requirements will | ||
** be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
** | ||
** $QT_END_LICENSE$ | ||
** | ||
****************************************************************************/ | ||
--> | ||
<!-- | ||
/////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Qt/MSBuild moc property definitions | ||
// --> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- | ||
///////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Import pre-requisites | ||
// --> | ||
<Import | ||
Condition="'$(QtMsBuildProps_BeforeMoc)' != ''" | ||
Project="$(QtMsBuildProps_BeforeMoc)"/> | ||
|
||
<!-- | ||
///////////////////////////////////////////////////////////////////////////////////////////////// | ||
// QtMoc item template | ||
// --> | ||
<ItemDefinitionGroup> | ||
<QtMoc> | ||
<ExecutionDescription>moc %(Identity)</ExecutionDescription> | ||
|
||
<QTDIR Condition="'$(QtVsProjectSettings)' != 'true'" | ||
>$(QTDIR)</QTDIR> | ||
<QTDIR Condition="'$(QtVsProjectSettings)' == 'true'" | ||
>$(QtInstallDir)</QTDIR> | ||
|
||
<InputFile>%(FullPath)</InputFile> | ||
|
||
<OutputFile Condition="'$(QtVsProjectSettings)' != 'true'" | ||
>$(ProjectDir)GeneratedFiles\$(Configuration)\moc_%(Filename).cpp</OutputFile> | ||
|
||
<QtMocDir Condition="'$(QtVsProjectSettings)' == 'true'" | ||
>$(IntDir)moc\</QtMocDir> | ||
<QtMocFileName Condition="'$(QtVsProjectSettings)' == 'true'" | ||
>moc_%(Filename).cpp</QtMocFileName> | ||
|
||
<DynamicSource>output</DynamicSource> | ||
<ParallelProcess>true</ParallelProcess> | ||
<CommandLineTemplate>[AllOptions] [AdditionalOptions]</CommandLineTemplate> | ||
<Outputs>%(OutputFile)</Outputs> | ||
<OverrideClCompile>false</OverrideClCompile> | ||
</QtMoc> | ||
</ItemDefinitionGroup> | ||
|
||
<!-- | ||
///////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Import dependants | ||
// --> | ||
<Import | ||
Condition="'$(QtMsBuildProps_AfterMoc)' != ''" | ||
Project="$(QtMsBuildProps_AfterMoc)"/> | ||
|
||
</Project> |
Oops, something went wrong.