Microsoft.Terminal.UI.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 <PropertyGroup Label="NuGet"> 4 <!-- Tell NuGet this is PackageReference style --> 5 <RestoreProjectStyle>PackageReference</RestoreProjectStyle> 6 <!-- Tell NuGet we're a native project --> 7 <NuGetTargetMoniker>native,Version=v0.0</NuGetTargetMoniker> 8 <!-- Tell NuGet we target Windows (use your existing WindowsTargetPlatformVersion) --> 9 <NuGetTargetPlatformIdentifier>Windows</NuGetTargetPlatformIdentifier> 10 <NuGetTargetPlatformVersion>$(WindowsTargetPlatformVersion)</NuGetTargetPlatformVersion> 11 </PropertyGroup> 12 <PropertyGroup> 13 </PropertyGroup> 14 <PropertyGroup Label="Globals"> 15 <CppWinRTOptimized>true</CppWinRTOptimized> 16 <CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge> 17 <CppWinRTGenerateWindowsMetadata>true</CppWinRTGenerateWindowsMetadata> 18 <MinimalCoreWin>true</MinimalCoreWin> 19 <ProjectGuid>{6515F03F-E56D-4DB4-B23D-AC4FB80DB36F}</ProjectGuid> 20 <ProjectName>Microsoft.Terminal.UI</ProjectName> 21 <RootNamespace>Microsoft.Terminal.UI</RootNamespace> 22 <DefaultLanguage>en-US</DefaultLanguage> 23 <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion> 24 <AppContainerApplication>false</AppContainerApplication> 25 <ApplicationType>Windows Store</ApplicationType> 26 <ApplicationTypeRevision>10.0</ApplicationTypeRevision> 27 <WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.26100.0</WindowsTargetPlatformVersion> 28 <WindowsTargetPlatformMinVersion>10.0.19041.0</WindowsTargetPlatformMinVersion> 29 </PropertyGroup> 30 <ItemGroup> 31 <PackageReference Include="Microsoft.WindowsAppSDK" GeneratePathProperty="true" /> 32 <PackageReference Include="Microsoft.Windows.CppWinRT" GeneratePathProperty="true" /> 33 <PackageReference Include="Microsoft.Windows.ImplementationLibrary" GeneratePathProperty="true" /> 34 </ItemGroup> 35 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 36 <ItemGroup Label="ProjectConfigurations"> 37 <ProjectConfiguration Include="Debug|ARM64"> 38 <Configuration>Debug</Configuration> 39 <Platform>ARM64</Platform> 40 </ProjectConfiguration> 41 <ProjectConfiguration Include="Debug|x64"> 42 <Configuration>Debug</Configuration> 43 <Platform>x64</Platform> 44 </ProjectConfiguration> 45 <ProjectConfiguration Include="Release|ARM64"> 46 <Configuration>Release</Configuration> 47 <Platform>ARM64</Platform> 48 </ProjectConfiguration> 49 <ProjectConfiguration Include="Release|x64"> 50 <Configuration>Release</Configuration> 51 <Platform>x64</Platform> 52 </ProjectConfiguration> 53 </ItemGroup> 54 <PropertyGroup Label="Configuration"> 55 <ConfigurationType>DynamicLibrary</ConfigurationType> 56 57 58 <CharacterSet>Unicode</CharacterSet> 59 <GenerateManifest>false</GenerateManifest> 60 <DesktopCompatible>true</DesktopCompatible> 61 </PropertyGroup> 62 <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration"> 63 <UseDebugLibraries>true</UseDebugLibraries> 64 <LinkIncremental>true</LinkIncremental> 65 </PropertyGroup> 66 <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration"> 67 <UseDebugLibraries>false</UseDebugLibraries> 68 <WholeProgramOptimization>true</WholeProgramOptimization> 69 <LinkIncremental>false</LinkIncremental> 70 </PropertyGroup> 71 <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> 72 <ClCompile> 73 <LanguageStandard>stdcpp20</LanguageStandard> 74 </ClCompile> 75 <ClCompile> 76 <!-- We use MultiThreadedDebug, rather than MultiThreadedDebugDLL, to avoid DLL dependencies on VCRUNTIME140d.dll and MSVCP140d.dll. --> 77 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 78 </ClCompile> 79 <Link> 80 <!-- Link statically against the runtime and STL, but link dynamically against the CRT by ignoring the static CRT 81 lib and instead linking against the Universal CRT DLL import library. This "hybrid" linking mechanism is 82 supported according to the CRT maintainer. Dynamic linking against the CRT makes the binaries a bit smaller 83 than they would otherwise be if the CRT, runtime, and STL were all statically linked in. --> 84 <IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries);libucrtd.lib</IgnoreSpecificDefaultLibraries> 85 <AdditionalOptions>%(AdditionalOptions) /defaultlib:ucrtd.lib /profile /opt:ref /opt:icf</AdditionalOptions> 86 </Link> 87 </ItemDefinitionGroup> 88 <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> 89 <ClCompile> 90 <LanguageStandard>stdcpp20</LanguageStandard> 91 </ClCompile> 92 <ClCompile> 93 <!-- We use MultiThreaded, rather than MultiThreadedDLL, to avoid DLL dependencies on VCRUNTIME140.dll and MSVCP140.dll. --> 94 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 95 </ClCompile> 96 <Link> 97 <!-- Link statically against the runtime and STL, but link dynamically against the CRT by ignoring the static CRT 98 lib and instead linking against the Universal CRT DLL import library. This "hybrid" linking mechanism is 99 supported according to the CRT maintainer. Dynamic linking against the CRT makes the binaries a bit smaller 100 than they would otherwise be if the CRT, runtime, and STL were all statically linked in. --> 101 <IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries);libucrt.lib</IgnoreSpecificDefaultLibraries> 102 <AdditionalOptions>%(AdditionalOptions) /defaultlib:ucrt.lib /profile /opt:ref /opt:icf</AdditionalOptions> 103 </Link> 104 </ItemDefinitionGroup> 105 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 106 <ImportGroup Label="ExtensionSettings"> 107 </ImportGroup> 108 <ImportGroup Label="Shared"> 109 </ImportGroup> 110 <ImportGroup Label="PropertySheets"> 111 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 112 </ImportGroup> 113 <PropertyGroup Label="UserMacros" /> 114 <ItemDefinitionGroup> 115 <ClCompile> 116 <PrecompiledHeader>Use</PrecompiledHeader> 117 <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> 118 <PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile> 119 <WarningLevel>Level4</WarningLevel> 120 <AdditionalOptions>%(AdditionalOptions) /bigobj /Zi</AdditionalOptions> 121 <PreprocessorDefinitions>_WINRT_DLL;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions)</PreprocessorDefinitions> 122 <AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories> 123 <ControlFlowGuard>Guard</ControlFlowGuard> 124 <SpectreMitigation>Spectre</SpectreMitigation> 125 </ClCompile> 126 <Link> 127 <SubSystem>Console</SubSystem> 128 <GenerateWindowsMetadata>false</GenerateWindowsMetadata> 129 <ModuleDefinitionFile>Microsoft.Terminal.UI.def</ModuleDefinitionFile> 130 </Link> 131 </ItemDefinitionGroup> 132 <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'"> 133 <ClCompile> 134 <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 135 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 136 </ClCompile> 137 </ItemDefinitionGroup> 138 <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> 139 <ClCompile> 140 <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 141 </ClCompile> 142 <Link> 143 <EnableCOMDATFolding>true</EnableCOMDATFolding> 144 <OptimizeReferences>true</OptimizeReferences> 145 </Link> 146 </ItemDefinitionGroup> 147 <ItemDefinitionGroup> 148 <Link> 149 <AdditionalDependencies>%(AdditionalDependencies);user32.lib;shell32.lib</AdditionalDependencies> 150 </Link> 151 </ItemDefinitionGroup> 152 <ItemGroup> 153 <ClInclude Include="pch.h" /> 154 <ClInclude Include="Converters.h"> 155 <DependentUpon>Converters.idl</DependentUpon> 156 </ClInclude> 157 <ClInclude Include="IconPathConverter.h"> 158 <DependentUpon>IconPathConverter.idl</DependentUpon> 159 </ClInclude> 160 <ClInclude Include="RunHistory.h"> 161 <DependentUpon>RunHistory.idl</DependentUpon> 162 </ClInclude> 163 <ClInclude Include="ResourceString.h"> 164 <DependentUpon>ResourceString.idl</DependentUpon> 165 </ClInclude> 166 <ClInclude Include="FontIconGlyphClassifier.h"> 167 <DependentUpon>FontIconGlyphClassifier.idl</DependentUpon> 168 </ClInclude> 169 </ItemGroup> 170 <ItemGroup> 171 <ClCompile Include="init.cpp" /> 172 <ClCompile Include="pch.cpp"> 173 <PrecompiledHeader>Create</PrecompiledHeader> 174 </ClCompile> 175 <ClCompile Include="Converters.cpp"> 176 <DependentUpon>Converters.idl</DependentUpon> 177 </ClCompile> 178 <ClCompile Include="IconPathConverter.cpp"> 179 <DependentUpon>IconPathConverter.idl</DependentUpon> 180 </ClCompile> 181 <ClCompile Include="RunHistory.cpp"> 182 <DependentUpon>RunHistory.idl</DependentUpon> 183 </ClCompile> 184 <ClCompile Include="ResourceString.cpp"> 185 <DependentUpon>ResourceString.idl</DependentUpon> 186 </ClCompile> 187 <ClCompile Include="$(GeneratedFilesDir)module.g.cpp" /> 188 <ClCompile Include="FontIconGlyphClassifier.cpp"> 189 <DependentUpon>FontIconGlyphClassifier.idl</DependentUpon> 190 </ClCompile> 191 </ItemGroup> 192 <ItemGroup> 193 <Midl Include="Converters.idl" /> 194 <Midl Include="IconPathConverter.idl" /> 195 <Midl Include="RunHistory.idl" /> 196 <Midl Include="IDirectKeyListener.idl" /> 197 <Midl Include="ResourceString.idl" /> 198 <Midl Include="FontIconGlyphClassifier.idl" /> 199 </ItemGroup> 200 <ItemGroup> 201 <None Include="Microsoft.Terminal.UI.def" /> 202 </ItemGroup> 203 <PropertyGroup> 204 <OutDir>..\..\..\..\$(Platform)\$(Configuration)\WinUI3Apps\CmdPal\</OutDir> 205 <IntDir>obj\$(Platform)\$(Configuration)\</IntDir> 206 </PropertyGroup> 207 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 208 </Project>