MarkdownPreviewHandlerCpp.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 <Target Name="GenerateResourceFiles" BeforeTargets="PrepareForBuild"> 6 <Exec Command="powershell -NonInteractive -executionpolicy Unrestricted $(RepoRoot)tools\build\convert-resx-to-rc.ps1 $(MSBuildThisFileDirectory) resource.base.h resource.h markdownpreviewhandler.base.rc markdownpreviewhandler.rc" /> 7 </Target> 8 <PropertyGroup Label="Globals"> 9 <VCProjectVersion>16.0</VCProjectVersion> 10 <Keyword>Win32Proj</Keyword> 11 <ProjectGuid>{ed9a1ac6-aeb0-4569-a6e9-e1696182b545}</ProjectGuid> 12 <RootNamespace>MarkdownPreviewHandlerCpp</RootNamespace> 13 </PropertyGroup> 14 <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration"> 15 <ConfigurationType>DynamicLibrary</ConfigurationType> 16 <UseDebugLibraries>true</UseDebugLibraries> 17 18 <CharacterSet>Unicode</CharacterSet> 19 </PropertyGroup> 20 <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration"> 21 <ConfigurationType>DynamicLibrary</ConfigurationType> 22 <UseDebugLibraries>false</UseDebugLibraries> 23 24 <WholeProgramOptimization>true</WholeProgramOptimization> 25 <CharacterSet>Unicode</CharacterSet> 26 </PropertyGroup> 27 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 28 <ImportGroup Label="ExtensionSettings"> 29 </ImportGroup> 30 <ImportGroup Label="Shared"> 31 </ImportGroup> 32 <ImportGroup Label="PropertySheets"> 33 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 34 </ImportGroup> 35 <PropertyGroup Label="UserMacros" /> 36 <PropertyGroup> 37 <OutDir>$(RepoRoot)$(Platform)\$(Configuration)\</OutDir> 38 <CopyCppRuntimeToOutputDir>true</CopyCppRuntimeToOutputDir> 39 </PropertyGroup> 40 <PropertyGroup> 41 <TargetName>PowerToys.$(ProjectName)</TargetName> 42 </PropertyGroup> 43 <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> 44 <ClCompile> 45 <WarningLevel>Level3</WarningLevel> 46 <SDLCheck>true</SDLCheck> 47 <PreprocessorDefinitions>_DEBUG;MARKDOWNPREVIEWHANDLERCPP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 48 <ConformanceMode>true</ConformanceMode> 49 <AdditionalIncludeDirectories>../../..</AdditionalIncludeDirectories> 50 </ClCompile> 51 <Link> 52 <SubSystem>Windows</SubSystem> 53 <GenerateDebugInformation>true</GenerateDebugInformation> 54 <EnableUAC>false</EnableUAC> 55 <ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile> 56 <AdditionalDependencies>Shlwapi.lib;dwmapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies> 57 </Link> 58 </ItemDefinitionGroup> 59 <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> 60 <ClCompile> 61 <WarningLevel>Level3</WarningLevel> 62 <FunctionLevelLinking>true</FunctionLevelLinking> 63 <IntrinsicFunctions>true</IntrinsicFunctions> 64 <SDLCheck>true</SDLCheck> 65 <PreprocessorDefinitions>NDEBUG;MARKDOWNPREVIEWHANDLERCPP_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 66 <ConformanceMode>true</ConformanceMode> 67 <AdditionalIncludeDirectories>../../..</AdditionalIncludeDirectories> 68 </ClCompile> 69 <Link> 70 <SubSystem>Windows</SubSystem> 71 <EnableCOMDATFolding>true</EnableCOMDATFolding> 72 <OptimizeReferences>true</OptimizeReferences> 73 <GenerateDebugInformation>true</GenerateDebugInformation> 74 <EnableUAC>false</EnableUAC> 75 <ModuleDefinitionFile>GlobalExportFunctions.def</ModuleDefinitionFile> 76 <AdditionalDependencies>Shlwapi.lib;dwmapi.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies> 77 </Link> 78 </ItemDefinitionGroup> 79 <ItemGroup> 80 <ClInclude Include="ClassFactory.h" /> 81 <ClInclude Include="MarkdownPreviewHandler.h" /> 82 <ClInclude Include="pch.h" /> 83 <ClInclude Include="resource.base.h" /> 84 <ClInclude Include="resource.h" /> 85 </ItemGroup> 86 <ItemGroup> 87 <ClCompile Include="ClassFactory.cpp" /> 88 <ClCompile Include="dllmain.cpp" /> 89 <ClCompile Include="MarkdownPreviewHandler.cpp" /> 90 <ClCompile Include="pch.cpp"> 91 <PrecompiledHeader Condition="'$(UsePrecompiledHeaders)' != 'false'">Create</PrecompiledHeader> 92 </ClCompile> 93 </ItemGroup> 94 <ItemGroup> 95 <None Include="GlobalExportFunctions.def" /> 96 <None Include="packages.config" /> 97 </ItemGroup> 98 <ItemGroup> 99 <ResourceCompile Include="Generated Files/markdownpreviewhandler.rc" /> 100 <None Include="markdownpreviewhandler.base.rc" /> 101 </ItemGroup> 102 <ItemGroup> 103 <ProjectReference Include="$(RepoRoot)src\common\logger\logger.vcxproj"> 104 <Project>{d9b8fc84-322a-4f9f-bbb9-20915c47ddfd}</Project> 105 </ProjectReference> 106 <ProjectReference Include="$(RepoRoot)src\common\SettingsAPI\SettingsAPI.vcxproj"> 107 <Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project> 108 </ProjectReference> 109 <ProjectReference Include="$(RepoRoot)src\common\Themes\Themes.vcxproj"> 110 <Project>{98537082-0fdb-40de-abd8-0dc5a4269bab}</Project> 111 </ProjectReference> 112 </ItemGroup> 113 <ItemGroup> 114 <None Include="Resources.resx" /> 115 </ItemGroup> 116 <Import Project="$(RepoRoot)deps\spdlog.props" /> 117 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 118 <ImportGroup Label="ExtensionTargets"> 119 <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')" /> 120 </ImportGroup> 121 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 122 <PropertyGroup> 123 <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> 124 </PropertyGroup> 125 <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'))" /> 126 <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'))" /> 127 </Target> 128 </Project>