BackgroundActivatorDLL.vcxproj
1 <?xml version="1.0" encoding="utf-8"?> 2 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 4 <Import Project="$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" /> 5 <PropertyGroup Label="Globals"> 6 <VCProjectVersion>16.0</VCProjectVersion> 7 <ProjectGuid>{031AC72E-FA28-4AB7-B690-6F7B9C28AA73}</ProjectGuid> 8 <Keyword>Win32Proj</Keyword> 9 <RootNamespace>BackgroundActivatorDLL</RootNamespace> 10 </PropertyGroup> 11 <PropertyGroup Label="Configuration"> 12 <ConfigurationType>DynamicLibrary</ConfigurationType> 13 14 </PropertyGroup> 15 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 16 <ImportGroup Label="ExtensionSettings"> 17 </ImportGroup> 18 <ImportGroup Label="Shared"> 19 </ImportGroup> 20 <ImportGroup Label="PropertySheets"> 21 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 22 </ImportGroup> 23 <PropertyGroup Label="UserMacros" /> 24 <PropertyGroup> 25 <TargetName>PowerToys.BackgroundActivatorDLL</TargetName> 26 </PropertyGroup> 27 <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> 28 <ClCompile> 29 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 30 </ClCompile> 31 </ItemDefinitionGroup> 32 <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> 33 <ClCompile> 34 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> 35 </ClCompile> 36 </ItemDefinitionGroup> 37 <ItemDefinitionGroup> 38 <ClCompile> 39 <WarningLevel>Level4</WarningLevel> 40 <PreprocessorDefinitions>NDEBUG;NOTIFICATIONSDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 41 </ClCompile> 42 <Link> 43 <EnableUAC>false</EnableUAC> 44 <ModuleDefinitionFile>BackgroundActivator.def</ModuleDefinitionFile> 45 <AdditionalDependencies>WindowsApp.lib;%(AdditionalDependencies)</AdditionalDependencies> 46 <AdditionalOptions> /ignore:4099 %(AdditionalOptions)</AdditionalOptions> 47 </Link> 48 </ItemDefinitionGroup> 49 <ItemGroup> 50 <None Include="cpp.hint" /> 51 <None Include="notifications.def" /> 52 <None Include="packages.config" /> 53 </ItemGroup> 54 <ItemGroup> 55 <ClInclude Include="framework.h" /> 56 <ClInclude Include="pch.h" /> 57 <ClInclude Include="resource.h" /> 58 </ItemGroup> 59 <ItemGroup> 60 <ClCompile Include="dllmain.cpp" /> 61 <ClCompile Include="pch.cpp"> 62 <PrecompiledHeader Condition="'$(UsePrecompiledHeaders)' != 'false'">Create</PrecompiledHeader> 63 </ClCompile> 64 </ItemGroup> 65 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 66 <ImportGroup Label="ExtensionTargets"> 67 <Import Project="$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" /> 68 </ImportGroup> 69 <ItemGroup> 70 <ProjectReference Include="$(RepoRoot)src\common\version\version.vcxproj"> 71 <Project>{cc6e41ac-8174-4e8a-8d22-85dd7f4851df}</Project> 72 </ProjectReference> 73 <ProjectReference Include="..\BackgroundActivator\BackgroundActivator.vcxproj"> 74 <Project>{031AC72E-FA28-4AB7-B690-6F7B9C28AA73}</Project> 75 </ProjectReference> 76 </ItemGroup> 77 <ItemGroup> 78 <ResourceCompile Include="BackgroundActivator.rc" /> 79 </ItemGroup> 80 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 81 <PropertyGroup> 82 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> 83 </PropertyGroup> 84 <Error Condition="!Exists('$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props'))" /> 85 <Error Condition="!Exists('$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets'))" /> 86 </Target> 87 </Project>