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