/ src / modules / Hosts / HostsModuleInterface / HostsModuleInterface.vcxproj
HostsModuleInterface.vcxproj
 1  <?xml version="1.0" encoding="utf-8"?>
 2  <Project DefaultTargets="Build" ToolsVersion="15.0" 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    <Target Name="GenerateResourceFiles" BeforeTargets="PrepareForBuild">
 6      <Exec Command="powershell -NonInteractive -executionpolicy Unrestricted ..\..\..\..\tools\build\convert-resx-to-rc.ps1 $(MSBuildThisFileDirectory) resource.base.h resource.h HostsModuleInterface.base.rc HostsModuleInterface.rc" />
 7    </Target>
 8    <PropertyGroup Label="Globals">
 9      <VCProjectVersion>16.0</VCProjectVersion>
10      <ProjectGuid>{B41B888C-7DB8-4747-B262-4062E05A230D}</ProjectGuid>
11      <Keyword>Win32Proj</Keyword>
12      <RootNamespace>HostsModuleInterface</RootNamespace>
13      <ProjectName>HostsModuleInterface</ProjectName>
14    </PropertyGroup>
15    <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
16      <ConfigurationType>DynamicLibrary</ConfigurationType>
17      <UseDebugLibraries>true</UseDebugLibraries>
18      
19      <CharacterSet>Unicode</CharacterSet>
20    </PropertyGroup>
21    <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
22      <ConfigurationType>DynamicLibrary</ConfigurationType>
23      <UseDebugLibraries>false</UseDebugLibraries>
24      
25      <WholeProgramOptimization>true</WholeProgramOptimization>
26      <CharacterSet>Unicode</CharacterSet>
27    </PropertyGroup>
28    <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
29    <ImportGroup Label="ExtensionSettings">
30    </ImportGroup>
31    <ImportGroup Label="Shared">
32    </ImportGroup>
33    <ImportGroup Label="PropertySheets">
34      <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
35    </ImportGroup>
36    <PropertyGroup Label="UserMacros" />
37    <PropertyGroup>
38      <OutDir>$(RepoRoot)$(Platform)\$(Configuration)\WinUI3Apps\</OutDir>
39      <TargetName>PowerToys.HostsModuleInterface</TargetName>
40    </PropertyGroup>
41    <PropertyGroup Condition="'$(Configuration)'=='Debug'">
42      <LinkIncremental>true</LinkIncremental>
43    </PropertyGroup>
44    <PropertyGroup Condition="'$(Configuration)'=='Release'">
45      <LinkIncremental>false</LinkIncremental>
46    </PropertyGroup>
47    <ItemDefinitionGroup>
48      <ClCompile>
49        <AdditionalIncludeDirectories>$(RepoRoot)src\common\inc;$(RepoRoot)src\common\Telemetry;..\..\;$(RepoRoot)src\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
50      </ClCompile>
51    </ItemDefinitionGroup>
52    <ItemGroup>
53      <None Include="packages.config" />
54      <None Include="resource.base.h" />
55      <ClInclude Include="Generated Files\resource.h" />
56      <ClInclude Include="trace.h" />
57      <ClInclude Include="pch.h" />
58    </ItemGroup>
59    <ItemGroup>
60      <ClCompile Include="trace.cpp" />
61      <ClCompile Include="pch.cpp">
62        <PrecompiledHeader Condition="'$(UsePrecompiledHeaders)' != 'false'">Create</PrecompiledHeader>
63      </ClCompile>
64      <ClCompile Include="dllmain.cpp" />
65    </ItemGroup>
66    <ItemGroup>
67      <ProjectReference Include="$(RepoRoot)src\common\logger\logger.vcxproj">
68        <Project>{d9b8fc84-322a-4f9f-bbb9-20915c47ddfd}</Project>
69      </ProjectReference>
70      <ProjectReference Include="$(RepoRoot)src\common\SettingsAPI\SettingsAPI.vcxproj">
71        <Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
72      </ProjectReference>
73    </ItemGroup>
74    <ItemGroup>
75      <None Include="HostsModuleInterface.base.rc" />
76      <ResourceCompile Include="Generated Files\HostsModuleInterface.rc" />
77    </ItemGroup>
78    <ItemGroup>
79      <None Include="Resource.resx" />
80    </ItemGroup>
81    <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
82    <Import Project="$(RepoRoot)deps\spdlog.props" />
83    <ImportGroup Label="ExtensionTargets">
84      <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')" />
85    </ImportGroup>
86    <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
87      <PropertyGroup>
88        <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>
89      </PropertyGroup>
90      <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'))" />
91      <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'))" />
92    </Target>
93  </Project>