WinGetServer.vcxproj (10970B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <PropertyGroup Label="Globals"> 4 <CppWinRTOptimized>true</CppWinRTOptimized> 5 <CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge> 6 <CppWinRTGenerateWindowsMetadata>true</CppWinRTGenerateWindowsMetadata> 7 <MinimalCoreWin>true</MinimalCoreWin> 8 <VCProjectVersion>15.0</VCProjectVersion> 9 <ProjectGuid>{2b00d362-ac92-41f3-a8d2-5b1599bdca01}</ProjectGuid> 10 <Keyword>Win32Proj</Keyword> 11 <RootNamespace>WinGetServer</RootNamespace> 12 <WindowsTargetPlatformVersion>10.0.26100.0</WindowsTargetPlatformVersion> 13 <WindowsTargetPlatformMinVersion>10.0.17763.0</WindowsTargetPlatformMinVersion> 14 <WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support> 15 <ProjectName>WinGetServer</ProjectName> 16 <TargetName>WindowsPackageManagerServer</TargetName> 17 </PropertyGroup> 18 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 19 <ItemGroup Label="ProjectConfigurations"> 20 <ProjectConfiguration Include="Debug|ARM64"> 21 <Configuration>Debug</Configuration> 22 <Platform>ARM64</Platform> 23 </ProjectConfiguration> 24 <ProjectConfiguration Include="Debug|Win32"> 25 <Configuration>Debug</Configuration> 26 <Platform>Win32</Platform> 27 </ProjectConfiguration> 28 <ProjectConfiguration Include="Debug|x64"> 29 <Configuration>Debug</Configuration> 30 <Platform>x64</Platform> 31 </ProjectConfiguration> 32 <ProjectConfiguration Include="ReleaseStatic|ARM64"> 33 <Configuration>ReleaseStatic</Configuration> 34 <Platform>ARM64</Platform> 35 </ProjectConfiguration> 36 <ProjectConfiguration Include="ReleaseStatic|Win32"> 37 <Configuration>ReleaseStatic</Configuration> 38 <Platform>Win32</Platform> 39 </ProjectConfiguration> 40 <ProjectConfiguration Include="ReleaseStatic|x64"> 41 <Configuration>ReleaseStatic</Configuration> 42 <Platform>x64</Platform> 43 </ProjectConfiguration> 44 <ProjectConfiguration Include="Release|ARM64"> 45 <Configuration>Release</Configuration> 46 <Platform>ARM64</Platform> 47 </ProjectConfiguration> 48 <ProjectConfiguration Include="Release|Win32"> 49 <Configuration>Release</Configuration> 50 <Platform>Win32</Platform> 51 </ProjectConfiguration> 52 <ProjectConfiguration Include="Release|x64"> 53 <Configuration>Release</Configuration> 54 <Platform>x64</Platform> 55 </ProjectConfiguration> 56 </ItemGroup> 57 <PropertyGroup Label="Configuration"> 58 <ConfigurationType>Application</ConfigurationType> 59 <PlatformToolset>v140</PlatformToolset> 60 <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset> 61 <PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset> 62 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17.0'">v143</PlatformToolset> 63 <CharacterSet>Unicode</CharacterSet> 64 </PropertyGroup> 65 <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration"> 66 <UseDebugLibraries>true</UseDebugLibraries> 67 <LinkIncremental>true</LinkIncremental> 68 </PropertyGroup> 69 <PropertyGroup Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='ReleaseStatic'" Label="Configuration"> 70 <UseDebugLibraries>false</UseDebugLibraries> 71 <WholeProgramOptimization>true</WholeProgramOptimization> 72 <LinkIncremental>false</LinkIncremental> 73 <SpectreMitigation>Spectre</SpectreMitigation> 74 </PropertyGroup> 75 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 76 <ImportGroup Label="PropertySheets"> 77 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 78 </ImportGroup> 79 <ImportGroup Label="PropertySheets"> 80 <Import Project="PropertySheet.props" /> 81 </ImportGroup> 82 <PropertyGroup> 83 <OutDir>$(SolutionDir)$(PlatformTarget)\$(Configuration)\$(ProjectName)\</OutDir> 84 <IntDir>$(PlatformTarget)\$(Configuration)\</IntDir> 85 <LibraryPath>$(OutDir)..\Microsoft.Management.Deployment;$(OutDir)..\AppInstallerCLICore;$(OutDir)..\AppInstallerRepositoryCore;$(OutDir)..\YamlCppLib;$(OutDir)..\AppInstallerCommonCore;$(LibraryPath)</LibraryPath> 86 <CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors> 87 <RunCodeAnalysis>false</RunCodeAnalysis> 88 <CodeAnalysisRuleSet>..\CodeAnalysis.ruleset</CodeAnalysisRuleSet> 89 </PropertyGroup> 90 <Import Project="$(ProjectDir)\..\vcpkg.props" /> 91 <ItemDefinitionGroup> 92 <ClCompile> 93 <PrecompiledHeader>NotUsing</PrecompiledHeader> 94 <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> 95 <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile> 96 <PreprocessorDefinitions>_CONSOLE;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions> 97 <LanguageStandard>stdcpp17</LanguageStandard> 98 <WarningLevel>Level4</WarningLevel> 99 <AdditionalOptions>%(AdditionalOptions) /permissive- /bigobj</AdditionalOptions> 100 <TreatWarningAsError>true</TreatWarningAsError> 101 <SDLCheck>true</SDLCheck> 102 <EnablePREfast>true</EnablePREfast> 103 <AdditionalIncludeDirectories>$(ProjectDir)..\WindowsPackageManager;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 104 <RuntimeTypeInfo>false</RuntimeTypeInfo> 105 </ClCompile> 106 <Link> 107 <SubSystem>Windows</SubSystem> 108 <GenerateWindowsMetadata>false</GenerateWindowsMetadata> 109 <AdditionalLibraryDirectories>$(OutDir)..\Microsoft.Management.Deployment;$(OutDir)..\AppInstallerCLICore;$(OutDir)..\AppInstallerRepositoryCore;$(OutDir)..\YamlCppLib;$(OutDir)..\AppInstallerCommonCore;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> 110 <AdditionalDependencies>Rpcrt4.lib;Advapi32.lib;Shell32.lib;Ole32.lib;%(AdditionalDependencies)</AdditionalDependencies> 111 <CETCompat Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">true</CETCompat> 112 </Link> 113 <Manifest> 114 <AdditionalManifestFiles>$(ProjectDir)..\manifest\shared.manifest %(AdditionalManifestFiles)</AdditionalManifestFiles> 115 </Manifest> 116 </ItemDefinitionGroup> 117 <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> 118 <ClCompile> 119 <Optimization>Disabled</Optimization> 120 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 121 </ClCompile> 122 <Link> 123 <CETCompat Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">true</CETCompat> 124 </Link> 125 </ItemDefinitionGroup> 126 <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'"> 127 <ClCompile> 128 <PreprocessorDefinitions>WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions> 129 </ClCompile> 130 </ItemDefinitionGroup> 131 <ItemDefinitionGroup Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='ReleaseStatic'"> 132 <ClCompile> 133 <Optimization>MaxSpeed</Optimization> 134 <FunctionLevelLinking>true</FunctionLevelLinking> 135 <IntrinsicFunctions>true</IntrinsicFunctions> 136 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 137 <ControlFlowGuard>Guard</ControlFlowGuard> 138 </ClCompile> 139 <Link> 140 <EnableCOMDATFolding>true</EnableCOMDATFolding> 141 <OptimizeReferences>true</OptimizeReferences> 142 <AdditionalOptions>/debug:full /debugtype:cv,fixup /incremental:no %(AdditionalOptions)</AdditionalOptions> 143 </Link> 144 </ItemDefinitionGroup> 145 <ItemDefinitionGroup Condition="'$(UseProdWingetServer)'=='true'"> 146 <ClCompile> 147 <PreprocessorDefinitions>USE_PROD_WINGET_SERVER;%(PreprocessorDefinitions)</PreprocessorDefinitions> 148 </ClCompile> 149 </ItemDefinitionGroup> 150 <ItemGroup> 151 <ClInclude Include="resource.h" /> 152 <ClCompile Include="WinGetServerManualActivation_Client.cpp"> 153 <ExcludedFromBuild>true</ExcludedFromBuild> 154 </ClCompile> 155 <ClCompile Include="WinGetServer_s.c" /> 156 <ClCompile Include="WinMain.cpp" /> 157 <ClInclude Include="WinGetServerManualActivation_Client.h" /> 158 <ResourceCompile Include="WinGetServer.rc" /> 159 <Manifest Include="WinGetServer.exe.manifest" /> 160 <None Include="packages.config" /> 161 <None Include="PropertySheet.props" /> 162 <ClInclude Include="Utils.h" /> 163 <ClCompile Include="Utils.cpp" /> 164 </ItemGroup> 165 <ItemGroup> 166 <ProjectReference Include="..\WindowsPackageManager\WindowsPackageManager.vcxproj"> 167 <Project>{2046b5af-666d-4ce8-8d3e-c32c57908a56}</Project> 168 </ProjectReference> 169 </ItemGroup> 170 <ItemGroup> 171 <Midl Include="WinGetServer.idl"> 172 <EnableWindowsRuntime>false</EnableWindowsRuntime> 173 <GenerateClientFiles>Stub</GenerateClientFiles> 174 <GenerateServerFiles>Stub</GenerateServerFiles> 175 <ApplicationConfigurationMode>true</ApplicationConfigurationMode> 176 <HeaderFileName>WinGetServer.h</HeaderFileName> 177 </Midl> 178 </ItemGroup> 179 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 180 <ImportGroup Label="ExtensionTargets"> 181 <Import Project="$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.231028.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.231028.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" /> 182 </ImportGroup> 183 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 184 <PropertyGroup> 185 <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> 186 </PropertyGroup> 187 <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.231028.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.231028.1\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" /> 188 <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.props'))" /> 189 <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.targets'))" /> 190 </Target> 191 </Project>