1
1
<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
2
2
3
+ <Target Name =" SetBootstrapPreprocessorDefinitions" BeforeTargets =" BeforeClCompile" >
4
+ <PropertyGroup >
5
+ <!-- Build the Bootstrap preprocessor definitions based on conditions -->
6
+ <BootstrapPreprocessorDefinitions >MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE=1</BootstrapPreprocessorDefinitions >
7
+ <BootstrapPreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_Default)'=='true'" >$(BootstrapPreprocessorDefinitions);MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_DEFAULT</BootstrapPreprocessorDefinitions >
8
+ <BootstrapPreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_None)'=='true'" >$(BootstrapPreprocessorDefinitions);MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_NONE</BootstrapPreprocessorDefinitions >
9
+ <BootstrapPreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnError_DebugBreak)'=='true'" >$(BootstrapPreprocessorDefinitions);MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONERROR_DEBUGBREAK</BootstrapPreprocessorDefinitions >
10
+ <BootstrapPreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnError_DebugBreak_IfDebuggerAttached)'=='true'" >$(BootstrapPreprocessorDefinitions);MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONERROR_DEBUGBREAK_IFDEBUGGERATTACHED</BootstrapPreprocessorDefinitions >
11
+ <BootstrapPreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnError_FailFast)'=='true'" >$(BootstrapPreprocessorDefinitions);MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONERROR_FAILFAST</BootstrapPreprocessorDefinitions >
12
+ <BootstrapPreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnNoMatch_ShowUI)'=='true'" >$(BootstrapPreprocessorDefinitions);MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONNOMATCH_SHOWUI</BootstrapPreprocessorDefinitions >
13
+ <BootstrapPreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnPackageIdentity_NoOp)'=='true'" >$(BootstrapPreprocessorDefinitions);MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONPACKAGEIDENTITY_NOOP</BootstrapPreprocessorDefinitions >
14
+ <!-- Inherit the previous definitions based on condition -->
15
+ <BootstrapPreprocessorDefinitions >$(BootstrapPreprocessorDefinitions);%(ClCompile.PreprocessorDefinitions)</BootstrapPreprocessorDefinitions >
16
+ </PropertyGroup >
17
+ </Target >
18
+
3
19
<Target Name =" GenerateBootstrapCpp" >
4
20
<ItemGroup >
5
21
<ClCompile Include =" $(MSBuildThisFileDirectory)..\..\include\MddBootstrapAutoInitializer.cpp" >
6
22
<PrecompiledHeader >NotUsing</PrecompiledHeader >
7
- <PreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_Default)'=='true'" >MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_DEFAULT;%(PreprocessorDefinitions)</PreprocessorDefinitions >
8
- <PreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_None)'=='true'" >MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_NONE;%(PreprocessorDefinitions)</PreprocessorDefinitions >
9
- <PreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnError_DebugBreak)'=='true'" >MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONERROR_DEBUGBREAK;%(PreprocessorDefinitions)</PreprocessorDefinitions >
10
- <PreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnError_DebugBreak_IfDebuggerAttached)'=='true'" >MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONERROR_DEBUGBREAK_IFDEBUGGERATTACHED;%(PreprocessorDefinitions)</PreprocessorDefinitions >
11
- <PreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnError_FailFast)'=='true'" >MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONERROR_FAILFAST;%(PreprocessorDefinitions)</PreprocessorDefinitions >
12
- <PreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnNoMatch_ShowUI)'=='true'" >MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONNOMATCH_SHOWUI;%(PreprocessorDefinitions)</PreprocessorDefinitions >
13
- <PreprocessorDefinitions Condition =" '$(WindowsAppSDKBootstrapAutoInitializeOptions_OnPackageIdentity_NoOp)'=='true'" >MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE_OPTIONS_ONPACKAGEIDENTITY_NOOP;%(PreprocessorDefinitions)</PreprocessorDefinitions >
14
- <PreprocessorDefinitions >%(PreprocessorDefinitions);MICROSOFT_WINDOWSAPPSDK_BOOTSTRAP_AUTO_INITIALIZE=1</PreprocessorDefinitions >
23
+ <PreprocessorDefinitions >$(BootstrapPreprocessorDefinitions)</PreprocessorDefinitions >
15
24
</ClCompile >
16
25
</ItemGroup >
17
26
</Target >
21
30
$(BeforeClCompileTargets); GenerateBootstrapCpp;
22
31
</BeforeClCompileTargets >
23
32
</PropertyGroup >
24
-
25
- </Project >
33
+ </Project >
0 commit comments