|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<Rule Name="CppWinRT" DisplayName="C++/WinRT" Order="75" PageTemplate="generic" xmlns="http://schemas.microsoft.com/build/2009/properties"> |
| 3 | + |
| 4 | + <Rule.Categories> |
| 5 | + <Category Name="General" DisplayName="General"/> |
| 6 | + </Rule.Categories> |
| 7 | + |
| 8 | + <Rule.DataSource> |
| 9 | + <DataSource Persistence="ProjectFile" HasConfigurationCondition="false" Label="Globals" /> |
| 10 | + </Rule.DataSource> |
| 11 | + |
| 12 | + <StringProperty Name="RootNamespace" |
| 13 | + DisplayName="Root Namespace" |
| 14 | + Description="Specifies the default namespace to be used with new files created in this project." |
| 15 | + Category="General" /> |
| 16 | + |
| 17 | + <EnumProperty Name="CppWinRTVerbosity" |
| 18 | + DisplayName="Verbosity" |
| 19 | + Description="Sets the importance of C++/WinRT build messages" |
| 20 | + Category="General"> |
| 21 | + <EnumValue Name="low" DisplayName="low" Description="Enables messages when MSBuild verbosity is set to at least 'detailed'" /> |
| 22 | + <EnumValue Name="normal" DisplayName="normal" Description="Enables messages when MSBuild verbosity is set to at least 'normal'" /> |
| 23 | + <EnumValue Name="high" DisplayName="high" Description="Enables messages when MSBuild verbosity is set to at least 'minimal'" /> |
| 24 | + </EnumProperty> |
| 25 | + |
| 26 | + <EnumProperty Name="CppWinRTProjectLanguage" |
| 27 | + DisplayName="Project Language" |
| 28 | + Description="Sets the C++ dialect for the project. C++/WinRT provides full projection support, C++/CX permits consuming projection headers." |
| 29 | + Category="General"> |
| 30 | + <EnumValue Name="C++/WinRT" DisplayName="C++/WinRT" Description="Enables full consuming and producing projection support and Xaml integration" /> |
| 31 | + <EnumValue Name="C++/CX" DisplayName="C++/CX" Description="Enables C++/CX code to generate and use consuming projections" /> |
| 32 | + </EnumProperty> |
| 33 | + |
| 34 | + <BoolProperty Name="CppWinRTLibs" |
| 35 | + DisplayName="Umbrella Library" |
| 36 | + Description="Adds the WindowsApp.lib umbrella library for Windows Runtime imports" |
| 37 | + Category="General" /> |
| 38 | + |
| 39 | + <BoolProperty Name="CppWinRTModernIDL" |
| 40 | + DisplayName="Modern IDL" |
| 41 | + Description="Enables midlrt.exe modern IDL support (disable for custom behavior such as proxy/stub generation)" |
| 42 | + Category="General" /> |
| 43 | + |
| 44 | + <IntProperty Name="CppWinRTNamespaceMergeDepth" |
| 45 | + DisplayName="Namespace Merge Depth" |
| 46 | + Description="Overrides the depth of mdmerge.exe namespace merging (Xaml apps require 1)" |
| 47 | + Category="General" /> |
| 48 | + |
| 49 | + <BoolProperty Name="CppWinRTRootNamespaceAutoMerge" |
| 50 | + DisplayName="Use Root Namespace Merge Depth" |
| 51 | + Description="Use the Root Namespace as the default merge depth" |
| 52 | + Category="General" /> |
| 53 | + |
| 54 | + <BoolProperty Name="CppWinRTUsePrefixes" |
| 55 | + DisplayName="Use Prefixes" |
| 56 | + Description="Uses a dotted prefix namespace convention (versus a nested folder convention)" |
| 57 | + Category="General" /> |
| 58 | + |
| 59 | + <StringProperty Name="CppWinRTParameters" |
| 60 | + DisplayName="Additional Parameters" |
| 61 | + Description="Additional cppwinrt.exe command-line parameters" |
| 62 | + Category="General" /> |
| 63 | + |
| 64 | + <BoolProperty Name="CppWinRTFastAbi" |
| 65 | + DisplayName="Fast ABI" |
| 66 | + Description="Enables Fast ABI feature for both consuming and producing projections" |
| 67 | + Category="General" /> |
| 68 | + |
| 69 | + <BoolProperty Name="CppWinRTOptimized" |
| 70 | + DisplayName="Optimized" |
| 71 | + Description="Enables component projection optimization features (e.g., unified construction)" |
| 72 | + Category="General" /> |
| 73 | + |
| 74 | + <BoolProperty Name="CppWinRTGenerateWindowsMetadata" |
| 75 | + DisplayName="Generate Windows Metadata" |
| 76 | + Description="Enables or disables the generation of Windows Metadata" |
| 77 | + Category="General" /> |
| 78 | + |
| 79 | + <BoolProperty Name="CppWinRTEnableDefaultCopyLocalFalse" |
| 80 | + DisplayName="Enable C++/WinRT Copy Local Defaults" |
| 81 | + Description="Enables or disables the default for copying binaries to the output folder to be false" |
| 82 | + Category="General" /> |
| 83 | + |
| 84 | + <BoolProperty Name="CppWinRTEnableLegacyCoroutines" |
| 85 | + DisplayName="Enable legacy coroutines (C++17)" |
| 86 | + Description="Enables the /await compiler option (disable this if you want to pass this yourself)" |
| 87 | + Category="General" /> |
| 88 | + |
| 89 | +</Rule> |
0 commit comments