Skip to content

Commit 8244f9c

Browse files
committed
fix target
1 parent 9f3caab commit 8244f9c

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

build/NuSpecs/WindowsAppSDK-Nuget-Native.AutoInitializer.targets

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,40 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
31
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
42

53
<Target Name="WindowsAppRuntimeAutoInitializer">
4+
<PropertyGroup>
5+
<AutoInitializerPreprocessorDefinitions />
6+
<AutoInitializerPreprocessorDefinitions Condition="'$(WindowsAppSdkBootstrapInitialize)'=='true'">
7+
MICROSOFT_WINDOWSAPPSDK_AUTOINITIALIZE_BOOTSTRAP;$(AutoInitializerPreprocessorDefinitions)
8+
</AutoInitializerPreprocessorDefinitions>
9+
<AutoInitializerPreprocessorDefinitions Condition="'$(WindowsAppSdkDeploymentManagerInitialize)'=='true'">
10+
MICROSOFT_WINDOWSAPPSDK_AUTOINITIALIZE_DEPLOYMENTMANAGER;$(AutoInitializerPreprocessorDefinitions)
11+
</AutoInitializerPreprocessorDefinitions>
12+
<AutoInitializerPreprocessorDefinitions Condition="'$(WindowsAppSdkUndockedRegFreeWinRTInitialize)'=='true'">
13+
MICROSOFT_WINDOWSAPPSDK_AUTOINITIALIZE_UNDOCKEDREGFREEWINRT;$(AutoInitializerPreprocessorDefinitions)
14+
</AutoInitializerPreprocessorDefinitions>
15+
<AutoInitializerPreprocessorDefinitions Condition="'$(WindowsAppSdkCompatibilityInitialize)'=='true'">
16+
MICROSOFT_WINDOWSAPPSDK_AUTOINITIALIZE_COMPATIBILITY;$(AutoInitializerPreprocessorDefinitions)
17+
</AutoInitializerPreprocessorDefinitions>
18+
</PropertyGroup>
19+
620
<ItemGroup>
7-
<ClCompile Include="$(MSBuildThisFileDirectory)..\..\include\WindowsAppRuntimeAutoInitializer.cpp">
21+
<AutoInitializerClCompile Include="$(MSBuildThisFileDirectory)..\..\include\WindowsAppRuntimeAutoInitializer.cpp">
822
<PrecompiledHeader>NotUsing</PrecompiledHeader>
9-
<PreprocessorDefinitions Condition="'$(WindowsAppSdkBootstrapInitialize)'=='true'">MICROSOFT_WINDOWSAPPSDK_AUTOINITIALIZE_BOOTSTRAP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
10-
<PreprocessorDefinitions Condition="'$(WindowsAppSdkDeploymentManagerInitialize)'=='true'">MICROSOFT_WINDOWSAPPSDK_AUTOINITIALIZE_DEPLOYMENTMANAGER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
11-
<PreprocessorDefinitions Condition="'$(WindowsAppSdkUndockedRegFreeWinRTInitialize)'=='true'">MICROSOFT_WINDOWSAPPSDK_AUTOINITIALIZE_UNDOCKEDREGFREEWINRT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
12-
<PreprocessorDefinitions Condition="'$(WindowsAppSdkCompatibilityInitialize)'=='true'">MICROSOFT_WINDOWSAPPSDK_AUTOINITIALIZE_COMPATIBILITY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
23+
<PreprocessorDefinitions>$(AutoInitializerPreprocessorDefinitions)</PreprocessorDefinitions>
24+
</AutoInitializerClCompile>
25+
</ItemGroup>
26+
27+
<ItemGroup>
28+
<ClCompile Include="@(AutoInitializerClCompile->'%(Identity)')">
29+
<PrecompiledHeader>%(AutoInitializerClCompile.PrecompiledHeader)</PrecompiledHeader>
30+
<PreprocessorDefinitions>%(AutoInitializerClCompile.PreprocessorDefinitions)</PreprocessorDefinitions>
1331
</ClCompile>
1432
</ItemGroup>
1533
</Target>
1634

1735
<PropertyGroup>
1836
<BeforeClCompileTargets>
19-
$(BeforeClCompileTargets); WindowsAppRuntimeAutoInitializer;
37+
$(BeforeClCompileTargets);WindowsAppRuntimeAutoInitializer;
2038
</BeforeClCompileTargets>
2139
</PropertyGroup>
2240

0 commit comments

Comments
 (0)