<?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$
**
****************************************************************************/
-->
<Rule
    Name="QtRule10_Settings"
    DisplayName="Qt Project Settings"
    PageTemplate="generic"
    Description="Qt Project Settings"
    Order="8"
    xmlns="http://schemas.microsoft.com/build/2009/properties">
  <Rule.DataSource>
    <DataSource Persistence="ProjectFile" Label="QtSettings" HasConfigurationCondition="true"/>
  </Rule.DataSource>
  <Rule.Categories>
    <Category Name="QtSettings_01_General" DisplayName="General"/>
    <Category Name="QtSettings_02_Paths" DisplayName="Paths"/>
    <Category Name="QtSettings_03_QMake" DisplayName="qmake"/>
    <Category Name="QtSettings_04_QML" DisplayName="QML"/>
    <Category Name="QtSettings_05_AdditionalOptions" DisplayName="Qt Additional Compiler Options"/>
    <Category Name="QtSettings_06_AdditionalLinkOptions" DisplayName="Qt Additional Linker Options"/>
  </Rule.Categories>
  <EnumProperty
    Name="Keyword"
    DisplayName="Qt VS Project Format Version"
    Category="QtSettings_01_General"
    ReadOnly="true"
    Description="Version of the format of this Qt Visual Studio project.">
    <EnumProperty.DataSource>
      <DataSource Persistence="ProjectFile" Label="Globals" />
    </EnumProperty.DataSource>
    <EnumValue Name="Qt4VSv1.0" DisplayName="Version 2.0"/>
    <EnumValue Name="QtVS_v300" DisplayName="Version 3.0"/>
    <EnumValue Name="QtVS_v301" DisplayName="Version 3.1"/>
    <EnumValue Name="QtVS_v302" DisplayName="Version 3.2"/>
    <EnumValue Name="QtVS_v303" DisplayName="Version 3.3"/>
    <EnumValue Name="QtVS_v304" DisplayName="Version 3.4"/>
  </EnumProperty>
  <StringProperty
    Name="QtLastBackgroundBuild"
    DisplayName="Last Background Build"
    Category="QtSettings_01_General"
    Visible="False">
    <StringProperty.DataSource>
      <DataSource Persistence="UserFile" Label="QtSettings" HasConfigurationCondition="true"/>
    </StringProperty.DataSource>
  </StringProperty>
  <DynamicEnumProperty
    Name="QtInstall"
    DisplayName="Qt Installation"
    Category="QtSettings_01_General"
    EnumProvider="QtVersionProvider"
    Description=
"Select Qt installation; can be either a path to an installation directory or a version name registered through the Qt Visual Studio Tools (v2.4 or above).">
  </DynamicEnumProperty>
  <StringListProperty
    Name="QtModules"
    Category="QtSettings_01_General"
    DisplayName="Qt Modules">
    <StringListProperty.ValueEditors>
      <ValueEditor EditorType="QtModulesEditor" DisplayName="&lt;Select Modules...&gt;" />
    </StringListProperty.ValueEditors>
  </StringListProperty>
  <EnumProperty
    Name="QtBuildConfig"
    Category="QtSettings_01_General"
    DisplayName="Build Config"
    Description="Select whether to use debug or release.">
    <EnumValue Name="debug" DisplayName="Debug"/>
    <EnumValue Name="release" DisplayName="Release"/>
  </EnumProperty>
  <BoolProperty
    Name="QtDeploy"
    Category="QtSettings_01_General"
    DisplayName="Run Deployment Tool"
    Description="Select whether Qt for Windows Deployment Tool (windeployqt) should be called after build."/>
  <EnumProperty
    Name="QtToolsDesignTime"
    Category="QtSettings_01_General"
    DisplayName="Design Time Build"
    Description="Run Qt tools during IntelliSense builds.">
    <EnumValue Name="true" DisplayName="Run Qt Tools"/>
    <EnumValue Name="false" DisplayName="Skip Qt Tools"/>
  </EnumProperty>
  <StringProperty
    Name="QtPathBinaries"
    Category="QtSettings_02_Paths"
    DisplayName="Qt Binaries"
    Description=
"Path to folder containing executables of Qt tools (qmake, moc, etc.) When a non-rooted path is specified, it will be considered relative to the Qt installation directory."/>
  <StringProperty
    Name="QtPathLibraryExecutables"
    Category="QtSettings_02_Paths"
    DisplayName="Qt Library Executables"
    Description=
"Path to folder containing executable files of Qt modules. When a non-rooted path is specified, it will be considered relative to the Qt installation directory."/>
  <StringListProperty
    Name="QtHeaderSearchPath"
    Category="QtSettings_02_Paths"
    DisplayName="Additional Qt header search paths" />
  <StringListProperty
    Name="QtLibrarySearchPath"
    Category="QtSettings_02_Paths"
    DisplayName="Additional Qt library search paths" />
  <EnumProperty
    Name="QtQMakeTemplate"
    Category="QtSettings_03_QMake"
    DisplayName="Template"
    Description="Template of generated project files for extraction of Qt build settings.">
    <EnumValue Name="vcapp" DisplayName="MSBuild" />
    <EnumValue Name="app" DisplayName="Makefile" />
  </EnumProperty>
  <StringListProperty
    Name="QtVars"
    Category="QtSettings_03_QMake"
    DisplayName="Extract Variables"
    Visible="False" />
  <StringListProperty
    Name="QMakeExtraArgs"
    Category="QtSettings_03_QMake"
    DisplayName="Additional Command Arguments" />
  <StringListProperty
    Name="QMakeCodeLines"
    Category="QtSettings_03_QMake"
    DisplayName="Additional Project Settings" />
  <BoolProperty
    Name="QtQMLDebugEnable"
    Category="QtSettings_04_QML"
    DisplayName="Enable QML Debugging"
    Description="Select whether to launch a QML session when debugging.">
  </BoolProperty>
  <StringProperty
    Name="Qt_CL_OPTIONS_"
    ReadOnly="true"
    Category="QtSettings_05_AdditionalOptions"
    DisplayName="Additional Options"
    Description="
Additional compiler options required by Qt. These options will be passed
to the compiler, unless specifically excluded in the next field." />
  <StringProperty
    Name="QtExcludedOptions"
    Category="QtSettings_05_AdditionalOptions"
    DisplayName="Excluded Options"
    Description="
Options to exclude from the above compiler options required by Qt.
These options will NOT be passed to the compiler. Prefix options
with '/' or '-', and separate them with spaces." />
  <BoolProperty
    Name="QtOptionsBuildLog"
    Category="QtSettings_05_AdditionalOptions"
    DisplayName="Show in Build Log"
    Description="
Print to the build log the list of additional options passed to the compiler." />
  <EnumProperty
    Name="QtLinkNatvisFile"
    Category="QtSettings_06_AdditionalLinkOptions"
    DisplayName="Embed .natvis file into PDB"
    Description=
"Embeds the debugger visualizations (.natvis file) into the PDB file
generated by LINK. The user-specific Natvis directory (for example,
%USERPROFILE%\\Documents\\Visual Studio 2022\\Visualizers) still takes precedence
over the embedded one.">
    <EnumValue Name="false" DisplayName="No" />
    <EnumValue Name="true" DisplayName="Yes" />
  </EnumProperty>
  </Rule>
