WorkspacesWindowArranger.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 WorkspacesWindowArrangerResource.base.rc WorkspacesWindowArrangerResource.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>{37D07516-4185-43A4-924F-3C7A5D95ECF6}</ProjectGuid> 58 <RootNamespace>WorkspacesWindowArranger</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)</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;%(AdditionalDependencies)</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="WindowArranger.cpp" /> 134 <ClCompile Include="WindowCreationHandler.cpp" /> 135 </ItemGroup> 136 <ItemGroup> 137 <ClInclude Include="pch.h" /> 138 <ClInclude Include="resource.h" /> 139 <ClInclude Include="WindowArranger.h" /> 140 <ClInclude Include="WindowCreationHandler.h" /> 141 </ItemGroup> 142 <ItemGroup> 143 <None Include="packages.config" /> 144 </ItemGroup> 145 <ItemGroup> 146 <ProjectReference Include="..\..\..\common\Display\Display.vcxproj"> 147 <Project>{caba8dfb-823b-4bf2-93ac-3f31984150d9}</Project> 148 </ProjectReference> 149 <ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj"> 150 <Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project> 151 </ProjectReference> 152 <ProjectReference Include="..\WorkspacesLib\WorkspacesLib.vcxproj"> 153 <Project>{b31fcc55-b5a4-4ea7-b414-2dceae6af332}</Project> 154 </ProjectReference> 155 </ItemGroup> 156 <ItemGroup> 157 <ResourceCompile Include="Generated Files/WorkspacesWindowArrangerResource.rc" /> 158 <None Include="WorkspacesWindowArrangerResource.base.rc" /> 159 </ItemGroup> 160 <ItemGroup> 161 <EmbeddedResource Include="Resource.resx"> 162 <SubType>Designer</SubType> 163 </EmbeddedResource> 164 </ItemGroup> 165 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 166 <Import Project="..\..\..\..\deps\spdlog.props" /> 167 <ImportGroup Label="ExtensionTargets"> 168 <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')" /> 169 <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')" /> 170 </ImportGroup> 171 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 172 <PropertyGroup> 173 <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> 174 </PropertyGroup> 175 <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'))" /> 176 <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'))" /> 177 <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'))" /> 178 </Target> 179 </Project>