diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-12-07 20:40:51 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-12-08 15:12:41 -0600 |
| commit | 551b856f775a4d91ffe65b74c668662dd986c85c (patch) | |
| tree | 7f8c0601b66a6034927f75495e0b6fafe374138a /src | |
| parent | 3523c9d809b86737a18a6c43845cbd894c5e1a97 (diff) | |
| download | wix-551b856f775a4d91ffe65b74c668662dd986c85c.tar.gz wix-551b856f775a4d91ffe65b74c668662dd986c85c.tar.bz2 wix-551b856f775a4d91ffe65b74c668662dd986c85c.zip | |
Create WixBootstrapperApplicationDllSymbol.
Diffstat (limited to 'src')
3 files changed, 57 insertions, 17 deletions
diff --git a/src/WixToolset.Data/Symbols/SymbolDefinitions.cs b/src/WixToolset.Data/Symbols/SymbolDefinitions.cs index ea90ef7b..771d1ec8 100644 --- a/src/WixToolset.Data/Symbols/SymbolDefinitions.cs +++ b/src/WixToolset.Data/Symbols/SymbolDefinitions.cs | |||
| @@ -116,6 +116,7 @@ namespace WixToolset.Data | |||
| 116 | WixApprovedExeForElevation, | 116 | WixApprovedExeForElevation, |
| 117 | WixBindUpdatedFiles, | 117 | WixBindUpdatedFiles, |
| 118 | WixBootstrapperApplication, | 118 | WixBootstrapperApplication, |
| 119 | WixBootstrapperApplicationDll, | ||
| 119 | WixBuildInfo, | 120 | WixBuildInfo, |
| 120 | WixBundle, | 121 | WixBundle, |
| 121 | WixBundleCatalog, | 122 | WixBundleCatalog, |
| @@ -533,6 +534,9 @@ namespace WixToolset.Data | |||
| 533 | case SymbolDefinitionType.WixBootstrapperApplication: | 534 | case SymbolDefinitionType.WixBootstrapperApplication: |
| 534 | return SymbolDefinitions.WixBootstrapperApplication; | 535 | return SymbolDefinitions.WixBootstrapperApplication; |
| 535 | 536 | ||
| 537 | case SymbolDefinitionType.WixBootstrapperApplicationDll: | ||
| 538 | return SymbolDefinitions.WixBootstrapperApplicationDll; | ||
| 539 | |||
| 536 | case SymbolDefinitionType.WixBuildInfo: | 540 | case SymbolDefinitionType.WixBuildInfo: |
| 537 | return SymbolDefinitions.WixBuildInfo; | 541 | return SymbolDefinitions.WixBuildInfo; |
| 538 | 542 | ||
diff --git a/src/WixToolset.Data/Symbols/WixBootstrapperApplicationDllSymbol.cs b/src/WixToolset.Data/Symbols/WixBootstrapperApplicationDllSymbol.cs new file mode 100644 index 00000000..d3a66754 --- /dev/null +++ b/src/WixToolset.Data/Symbols/WixBootstrapperApplicationDllSymbol.cs | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data.Symbols; | ||
| 6 | |||
| 7 | public static partial class SymbolDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateSymbolDefinition WixBootstrapperApplicationDll = new IntermediateSymbolDefinition( | ||
| 10 | SymbolDefinitionType.WixBootstrapperApplicationDll, | ||
| 11 | new IntermediateFieldDefinition[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(WixBootstrapperApplicationDllSymbolFields.DpiAwareness), IntermediateFieldType.Number), | ||
| 14 | }, | ||
| 15 | typeof(WixBootstrapperApplicationDllSymbol)); | ||
| 16 | } | ||
| 17 | } | ||
| 18 | |||
| 19 | namespace WixToolset.Data.Symbols | ||
| 20 | { | ||
| 21 | public enum WixBootstrapperApplicationDllSymbolFields | ||
| 22 | { | ||
| 23 | DpiAwareness, | ||
| 24 | } | ||
| 25 | |||
| 26 | public enum WixBootstrapperApplicationDpiAwarenessType | ||
| 27 | { | ||
| 28 | Unaware, | ||
| 29 | System, | ||
| 30 | PerMonitor, | ||
| 31 | PerMonitorV2, | ||
| 32 | GdiScaled, | ||
| 33 | } | ||
| 34 | |||
| 35 | public class WixBootstrapperApplicationDllSymbol : IntermediateSymbol | ||
| 36 | { | ||
| 37 | public WixBootstrapperApplicationDllSymbol() : base(SymbolDefinitions.WixBootstrapperApplicationDll, null, null) | ||
| 38 | { | ||
| 39 | } | ||
| 40 | |||
| 41 | public WixBootstrapperApplicationDllSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBootstrapperApplicationDll, sourceLineNumber, id) | ||
| 42 | { | ||
| 43 | } | ||
| 44 | |||
| 45 | public IntermediateField this[WixBootstrapperApplicationDllSymbolFields index] => this.Fields[(int)index]; | ||
| 46 | |||
| 47 | public WixBootstrapperApplicationDpiAwarenessType DpiAwareness | ||
| 48 | { | ||
| 49 | get => (WixBootstrapperApplicationDpiAwarenessType)this.Fields[(int)WixBootstrapperApplicationDllSymbolFields.DpiAwareness].AsNumber(); | ||
| 50 | set => this.Set((int)WixBootstrapperApplicationDllSymbolFields.DpiAwareness, (int)value); | ||
| 51 | } | ||
| 52 | } | ||
| 53 | } | ||
diff --git a/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs b/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs index d49e9503..3d7876fd 100644 --- a/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs +++ b/src/WixToolset.Data/Symbols/WixBootstrapperApplicationSymbol.cs | |||
| @@ -10,7 +10,6 @@ namespace WixToolset.Data | |||
| 10 | SymbolDefinitionType.WixBootstrapperApplication, | 10 | SymbolDefinitionType.WixBootstrapperApplication, |
| 11 | new IntermediateFieldDefinition[] | 11 | new IntermediateFieldDefinition[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixBootstrapperApplicationSymbolFields.DpiAwareness), IntermediateFieldType.Number), | ||
| 14 | }, | 13 | }, |
| 15 | typeof(WixBootstrapperApplicationSymbol)); | 14 | typeof(WixBootstrapperApplicationSymbol)); |
| 16 | } | 15 | } |
| @@ -20,16 +19,6 @@ namespace WixToolset.Data.Symbols | |||
| 20 | { | 19 | { |
| 21 | public enum WixBootstrapperApplicationSymbolFields | 20 | public enum WixBootstrapperApplicationSymbolFields |
| 22 | { | 21 | { |
| 23 | DpiAwareness, | ||
| 24 | } | ||
| 25 | |||
| 26 | public enum WixBootstrapperApplicationDpiAwarenessType | ||
| 27 | { | ||
| 28 | Unaware, | ||
| 29 | System, | ||
| 30 | PerMonitor, | ||
| 31 | PerMonitorV2, | ||
| 32 | GdiScaled, | ||
| 33 | } | 22 | } |
| 34 | 23 | ||
| 35 | public class WixBootstrapperApplicationSymbol : IntermediateSymbol | 24 | public class WixBootstrapperApplicationSymbol : IntermediateSymbol |
| @@ -43,11 +32,5 @@ namespace WixToolset.Data.Symbols | |||
| 43 | } | 32 | } |
| 44 | 33 | ||
| 45 | public IntermediateField this[WixBootstrapperApplicationSymbolFields index] => this.Fields[(int)index]; | 34 | public IntermediateField this[WixBootstrapperApplicationSymbolFields index] => this.Fields[(int)index]; |
| 46 | |||
| 47 | public WixBootstrapperApplicationDpiAwarenessType DpiAwareness | ||
| 48 | { | ||
| 49 | get => (WixBootstrapperApplicationDpiAwarenessType)this.Fields[(int)WixBootstrapperApplicationSymbolFields.DpiAwareness].AsNumber(); | ||
| 50 | set => this.Set((int)WixBootstrapperApplicationSymbolFields.DpiAwareness, (int)value); | ||
| 51 | } | ||
| 52 | } | 35 | } |
| 53 | } | 36 | } |
