WorkspacesSnapshotTool.vcxproj
1 <?xml version="1.0" encoding="utf-8"?> 2 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <!-- Project configurations --> 4 <!-- Props that should be disabled while building on CI server --> 5 <Import Project="..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" /> 6 <Target Name="GenerateResourceFiles" BeforeTargets="PrepareForBuild"> 7 <Exec Command="powershell -NonInteractive -executionpolicy Unrestricted $(SolutionDir)tools\build\convert-resx-to-rc.ps1 $(MSBuildThisFileDirectory) resource.base.h resource.h WorkspacesSnapshotToolResources.base.rc WorkspacesSnapshotToolResources.rc" /> 8 </Target> 9 <!-- C++ source compile-specific things for all configurations --> 10 <ItemDefinitionGroup> 11 <ClCompile> 12 <WarningLevel>Level3</WarningLevel> 13 <ConformanceMode>false</ConformanceMode> 14 <TreatWarningAsError>true</TreatWarningAsError> 15 <LanguageStandard>stdcpplatest</LanguageStandard> 16 <AdditionalOptions>/await %(AdditionalOptions)</AdditionalOptions> 17 <PreprocessorDefinitions>_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 18 </ClCompile> 19 <Link> 20 <SubSystem>Windows</SubSystem> 21 </Link> 22 <Lib> 23 <TreatLibWarningAsErrors>true</TreatLibWarningAsErrors> 24 </Lib> 25 </ItemDefinitionGroup> 26 <!-- C++ source compile-specific things for Debug/Release configurations --> 27 <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> 28 <ClCompile> 29 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 30 <Optimization>Disabled</Optimization> 31 <SDLCheck>true</SDLCheck> 32 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 33 </ClCompile> 34 <Link> 35 <GenerateDebugInformation>true</GenerateDebugInformation> 36 </Link> 37 </ItemDefinitionGroup> 38 <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> 39 <ClCompile> 40 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 41 <Optimization>MaxSpeed</Optimization> 42 <SDLCheck>false</SDLCheck> 43 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 44 <FunctionLevelLinking>true</FunctionLevelLinking> 45 <IntrinsicFunctions>true</IntrinsicFunctions> 46 </ClCompile> 47 <Link> 48 <GenerateDebugInformation>true</GenerateDebugInformation> 49 <EnableCOMDATFolding>true</EnableCOMDATFolding> 50 <OptimizeReferences>true</OptimizeReferences> 51 </Link> 52 </ItemDefinitionGroup> 53 <!-- Global props --> 54 <PropertyGroup Label="Globals"> 55 <VCProjectVersion>16.0</VCProjectVersion> 56 <Keyword>Win32Proj</Keyword> 57 <ProjectGuid>{3d63307b-9d27-44fd-b033-b26f39245b85}</ProjectGuid> 58 <RootNamespace>WorkspacesSnapshotTool</RootNamespace> 59 </PropertyGroup> 60 <!-- Props that are constant for both Debug and Release configurations --> 61 <PropertyGroup Label="Configuration"> 62 <ConfigurationType>Application</ConfigurationType> 63 64 <CharacterSet>Unicode</CharacterSet> 65 <SpectreMitigation>Spectre</SpectreMitigation> 66 </PropertyGroup> 67 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 68 <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration"> 69 <UseDebugLibraries>true</UseDebugLibraries> 70 <LinkIncremental>true</LinkIncremental> 71 </PropertyGroup> 72 <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration"> 73 <UseDebugLibraries>false</UseDebugLibraries> 74 <WholeProgramOptimization>true</WholeProgramOptimization> 75 <LinkIncremental>false</LinkIncremental> 76 </PropertyGroup> 77 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 78 <ImportGroup Label="ExtensionSettings"> 79 </ImportGroup> 80 <ImportGroup Label="Shared"> 81 </ImportGroup> 82 <ImportGroup Label="PropertySheets"> 83 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 84 </ImportGroup> 85 <PropertyGroup Label="UserMacros" /> 86 <PropertyGroup> 87 <TargetName>PowerToys.$(MSBuildProjectName)</TargetName> 88 <OutDir>..\..\..\..\$(Platform)\$(Configuration)\</OutDir> 89 </PropertyGroup> 90 <PropertyGroup Condition="'$(Configuration)'=='Debug'"> 91 <LinkIncremental>true</LinkIncremental> 92 </PropertyGroup> 93 <PropertyGroup Condition="'$(Configuration)'=='Release'"> 94 <LinkIncremental>false</LinkIncremental> 95 </PropertyGroup> 96 <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> 97 <ClCompile> 98 <WarningLevel>Level3</WarningLevel> 99 <SDLCheck>true</SDLCheck> 100 <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 101 <ConformanceMode>true</ConformanceMode> 102 <AdditionalIncludeDirectories>./../;$(SolutionDir)src\common\Telemetry;$(SolutionDir)src\common;$(SolutionDir)src\;./;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 103 </ClCompile> 104 <Link> 105 <SubSystem>Windows</SubSystem> 106 <GenerateDebugInformation>true</GenerateDebugInformation> 107 <AdditionalDependencies>shcore.lib;Shell32.lib;propsys.lib;DbgHelp.lib</AdditionalDependencies> 108 </Link> 109 </ItemDefinitionGroup> 110 <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> 111 <ClCompile> 112 <WarningLevel>Level3</WarningLevel> 113 <FunctionLevelLinking>true</FunctionLevelLinking> 114 <IntrinsicFunctions>true</IntrinsicFunctions> 115 <SDLCheck>true</SDLCheck> 116 <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 117 <ConformanceMode>true</ConformanceMode> 118 <AdditionalIncludeDirectories>./../;$(SolutionDir)src\common\Telemetry;$(SolutionDir)src\common;$(SolutionDir)src\;./;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 119 </ClCompile> 120 <Link> 121 <SubSystem>Windows</SubSystem> 122 <EnableCOMDATFolding>true</EnableCOMDATFolding> 123 <OptimizeReferences>true</OptimizeReferences> 124 <GenerateDebugInformation>true</GenerateDebugInformation> 125 <AdditionalDependencies>shcore.lib;Shell32.lib;propsys.lib;DbgHelp.lib;wbemuuid.lib</AdditionalDependencies> 126 </Link> 127 </ItemDefinitionGroup> 128 <ItemGroup> 129 <ClCompile Include="main.cpp" /> 130 <ClCompile Include="pch.cpp"> 131 <PrecompiledHeader Condition="'$(UsePrecompiledHeaders)' != 'false'">Create</PrecompiledHeader> 132 </ClCompile> 133 <ClCompile Include="SnapshotUtils.cpp" /> 134 </ItemGroup> 135 <ItemGroup> 136 <ClInclude Include="pch.h" /> 137 <ClInclude Include="resource.base.h" /> 138 <ClInclude Include="SnapshotUtils.h" /> 139 </ItemGroup> 140 <ItemGroup> 141 <None Include="packages.config" /> 142 </ItemGroup> 143 <ItemGroup> 144 <ProjectReference Include="..\..\..\common\Display\Display.vcxproj"> 145 <Project>{caba8dfb-823b-4bf2-93ac-3f31984150d9}</Project> 146 </ProjectReference> 147 <ProjectReference Include="..\..\..\common\notifications\notifications.vcxproj"> 148 <Project>{1d5be09d-78c0-4fd7-af00-ae7c1af7c525}</Project> 149 </ProjectReference> 150 <ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj"> 151 <Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project> 152 </ProjectReference> 153 <ProjectReference Include="..\WorkspacesLib\WorkspacesLib.vcxproj"> 154 <Project>{b31fcc55-b5a4-4ea7-b414-2dceae6af332}</Project> 155 </ProjectReference> 156 </ItemGroup> 157 <ItemGroup> 158 <ResourceCompile Include="Generated Files/WorkspacesSnapshotToolResources.rc" /> 159 <None Include="WorkspacesSnapshotToolResources.base.rc" /> 160 </ItemGroup> 161 <ItemGroup> 162 <EmbeddedResource Include="Resource.resx"> 163 <SubType>Designer</SubType> 164 </EmbeddedResource> 165 </ItemGroup> 166 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 167 <Import Project="..\..\..\..\deps\spdlog.props" /> 168 <ImportGroup Label="ExtensionTargets"> 169 <Import Project="..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" /> 170 <Import Project="..\..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('..\..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" /> 171 </ImportGroup> 172 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 173 <PropertyGroup> 174 <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> 175 </PropertyGroup> 176 <Error Condition="!Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props'))" /> 177 <Error Condition="!Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets'))" /> 178 <Error Condition="!Exists('..\..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" /> 179 </Target> 180 </Project>