2020-10-06 18:56:59 +02:00
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets= "Build" ToolsVersion= "15.0" xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" >
<PropertyGroup Label= "Globals" >
<ProjectGuid > {CA5CAD1A-d7ec-4107-b7c6-79cb77ae2907}</ProjectGuid>
<Keyword > Win32Proj</Keyword>
<ProjectName > Microsoft.Terminal.Settings.Model.Lib</ProjectName>
<RootNamespace > Microsoft.Terminal.Settings.Model</RootNamespace>
<TargetName > Microsoft.Terminal.Settings.Model.Lib</TargetName>
<WindowsTargetPlatformMinVersion > 10.0.17763.0</WindowsTargetPlatformMinVersion>
<ConfigurationType > StaticLibrary</ConfigurationType>
<SubSystem > Console</SubSystem>
<OpenConsoleUniversalApp > true</OpenConsoleUniversalApp>
</PropertyGroup>
<Import Project= "..\..\..\common.openconsole.props" Condition= "'$(OpenConsoleDir)'==''" />
<Import Project= "$(OpenConsoleDir)src\cppwinrt.build.pre.props" />
<!-- ========================= Headers ======================== -->
<ItemGroup >
2020-11-05 01:55:16 +01:00
<ClInclude Include= "IconPathConverter.h" >
<DependentUpon > IconPathConverter.idl</DependentUpon>
</ClInclude>
2020-10-06 18:56:59 +02:00
<ClInclude Include= "pch.h" />
<ClInclude Include= "ActionArgs.h" >
<DependentUpon > ActionArgs.idl</DependentUpon>
</ClInclude>
<ClInclude Include= "ActionAndArgs.h" >
<DependentUpon > ActionArgs.idl</DependentUpon>
</ClInclude>
<ClInclude Include= "AzureCloudShellGenerator.h" />
<ClInclude Include= "CascadiaSettings.h" >
<DependentUpon > CascadiaSettings.idl</DependentUpon>
</ClInclude>
<ClInclude Include= "ColorScheme.h" >
<DependentUpon > ColorScheme.idl</DependentUpon>
</ClInclude>
<ClInclude Include= "Command.h" >
<DependentUpon > Command.idl</DependentUpon>
</ClInclude>
<ClInclude Include= "DefaultProfileUtils.h" />
<ClInclude Include= "GlobalAppSettings.h" >
<DependentUpon > GlobalAppSettings.idl</DependentUpon>
</ClInclude>
2020-10-27 18:35:09 +01:00
<ClInclude Include= "IInheritable.h" />
2020-10-06 18:56:59 +02:00
<ClInclude Include= "IDynamicProfileGenerator.h" />
<ClInclude Include= "JsonUtils.h" />
<ClInclude Include= "KeyChordSerialization.h" >
<DependentUpon > KeyChordSerialization.idl</DependentUpon>
</ClInclude>
<ClInclude Include= "KeyMapping.h" >
<DependentUpon > KeyMapping.idl</DependentUpon>
</ClInclude>
<ClInclude Include= "PowershellCoreProfileGenerator.h" />
<ClInclude Include= "Profile.h" >
<DependentUpon > Profile.idl</DependentUpon>
</ClInclude>
2021-04-09 00:46:16 +02:00
<ClInclude Include= "AppearanceConfig.h" >
<DependentUpon > AppearanceConfig.idl</DependentUpon>
</ClInclude>
2020-11-03 18:56:04 +01:00
<ClInclude Include= "EnumMappings.h" >
<DependentUpon > EnumMappings.idl</DependentUpon>
</ClInclude>
2020-10-06 18:56:59 +02:00
<ClInclude Include= "SettingsTypes.h" />
2021-03-16 00:15:25 +01:00
<ClInclude Include= "TerminalSettings.h" >
<DependentUpon > TerminalSettings.idl</DependentUpon>
</ClInclude>
2020-10-06 18:56:59 +02:00
<ClInclude Include= "TerminalSettingsSerializationHelpers.h" />
<ClInclude Include= "TerminalWarnings.h" >
<DependentUpon > TerminalWarnings.idl</DependentUpon>
</ClInclude>
<ClInclude Include= "WslDistroGenerator.h" />
</ItemGroup>
<!-- ========================= Cpp Files ======================== -->
<ItemGroup >
2020-11-05 01:55:16 +01:00
<ClCompile Include= "IconPathConverter.cpp" >
<DependentUpon > IconPathConverter.idl</DependentUpon>
</ClCompile>
2020-10-06 18:56:59 +02:00
<ClCompile Include= "init.cpp" />
<ClCompile Include= "pch.cpp" >
<PrecompiledHeader > Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include= "ActionAndArgs.cpp" >
<DependentUpon > ActionArgs.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "ActionArgs.cpp" >
<DependentUpon > ActionArgs.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "AzureCloudShellGenerator.cpp" />
<ClCompile Include= "CascadiaSettings.cpp" >
<DependentUpon > CascadiaSettings.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "CascadiaSettingsSerialization.cpp" >
<DependentUpon > CascadiaSettings.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "ColorScheme.cpp" >
<DependentUpon > ColorScheme.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "Command.cpp" >
<DependentUpon > Command.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "DefaultProfileUtils.cpp" />
<ClCompile Include= "GlobalAppSettings.cpp" >
<DependentUpon > GlobalAppSettings.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "KeyChordSerialization.cpp" >
<DependentUpon > KeyChordSerialization.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "KeyMapping.cpp" >
<DependentUpon > KeyMapping.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "KeyMappingSerialization.cpp" >
<DependentUpon > KeyMapping.idl</DependentUpon>
</ClCompile>
<ClCompile Include= "PowershellCoreProfileGenerator.cpp" />
<ClCompile Include= "Profile.cpp" >
<DependentUpon > Profile.idl</DependentUpon>
</ClCompile>
2021-04-09 00:46:16 +02:00
<ClCompile Include= "AppearanceConfig.cpp" >
<DependentUpon > AppearanceConfig.idl</DependentUpon>
</ClCompile>
2021-03-16 00:15:25 +01:00
<ClCompile Include= "TerminalSettings.cpp" >
<DependentUpon > TerminalSettings.idl</DependentUpon>
</ClCompile>
2020-11-03 18:56:04 +01:00
<ClCompile Include= "EnumMappings.cpp" >
<DependentUpon > EnumMappings.idl</DependentUpon>
</ClCompile>
2020-10-06 18:56:59 +02:00
<ClCompile Include= "WslDistroGenerator.cpp" />
<!-- You _NEED_ to include this file and the jsoncpp IncludePath (below) if
you want to use jsoncpp -->
<ClCompile Include= "$(OpenConsoleDir)\dep\jsoncpp\jsoncpp.cpp" >
<PrecompiledHeader > NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include= "$(GeneratedFilesDir)module.g.cpp" />
</ItemGroup>
<!-- ========================= idl Files ======================== -->
<ItemGroup >
<Midl Include= "ActionArgs.idl" />
<Midl Include= "CascadiaSettings.idl" />
<Midl Include= "ColorScheme.idl" />
<Midl Include= "Command.idl" />
<Midl Include= "GlobalAppSettings.idl" />
2020-11-05 01:55:16 +01:00
<Midl Include= "IconPathConverter.idl" />
2020-10-06 18:56:59 +02:00
<Midl Include= "KeyMapping.idl" />
<Midl Include= "Profile.idl" />
2020-11-03 18:56:04 +01:00
<Midl Include= "EnumMappings.idl" />
2021-03-16 00:15:25 +01:00
<Midl Include= "TerminalSettings.idl" />
2020-10-06 18:56:59 +02:00
<Midl Include= "TerminalWarnings.idl" />
<Midl Include= "KeyChordSerialization.idl" />
2021-04-09 00:46:16 +02:00
<Midl Include= "AppearanceConfig.idl" />
<Midl Include= "IAppearanceConfig.idl" />
2020-10-06 18:56:59 +02:00
</ItemGroup>
<!-- ========================= Misc Files ======================== -->
<ItemGroup >
<PRIResource Include= "Resources\en-US\Resources.resw" />
<OCResourceDirectory Include= "Resources" />
<None Include= "packages.config" />
</ItemGroup>
<!-- ========================= Project References ======================== -->
<ItemGroup >
<!--
the packaging project won't recurse through our dependencies, you have to
make sure that if you add a cppwinrt dependency to any of these projects,
you also update all the consumers
-->
<ProjectReference Include= "$(OpenConsoleDir)src\types\lib\types.vcxproj" />
<ProjectReference Include= "$(OpenConsoleDir)src\cascadia\WinRTUtils\WinRTUtils.vcxproj" >
<Project > {CA5CAD1A-039A-4929-BA2A-8BEB2E4106FE}</Project>
<ReferenceOutputAssembly > false</ReferenceOutputAssembly>
</ProjectReference>
<!-- For whatever reason, we can't include the TerminalControl and
TerminalSettings projects' winmds via project references. So we'll have to
manually include the winmds as References below -->
</ItemGroup>
<ItemGroup >
<!-- Manually add references to each of our dependent winmds. Mark them as
private=false and CopyLocalSatelliteAssemblies=false, so that we don't
propagate them upwards (which can make referencing this project result in
duplicate type definitions)-->
<Reference Include= "Microsoft.Terminal.TerminalConnection" >
2020-10-27 23:00:41 +01:00
<HintPath > $(OpenConsoleCommonOutDir)TerminalConnection\Microsoft.Terminal.TerminalConnection.winmd</HintPath>
2020-10-06 18:56:59 +02:00
<IsWinMDFile > true</IsWinMDFile>
<Private > false</Private>
<CopyLocalSatelliteAssemblies > false</CopyLocalSatelliteAssemblies>
</Reference>
2021-03-17 21:47:24 +01:00
<Reference Include= "Microsoft.Terminal.Control" >
<HintPath > $(OpenConsoleCommonOutDir)Microsoft.Terminal.Control\Microsoft.Terminal.Control.winmd</HintPath>
<IsWinMDFile > true</IsWinMDFile>
<Private > false</Private>
<CopyLocalSatelliteAssemblies > false</CopyLocalSatelliteAssemblies>
</Reference>
<Reference Include= "Microsoft.Terminal.Core" >
<HintPath > $(OpenConsoleCommonOutDir)TerminalCore\Microsoft.Terminal.Core.winmd</HintPath>
2020-10-06 18:56:59 +02:00
<IsWinMDFile > true</IsWinMDFile>
<Private > false</Private>
<CopyLocalSatelliteAssemblies > false</CopyLocalSatelliteAssemblies>
</Reference>
</ItemGroup>
<!-- ====================== Compiler & Linker Flags ===================== -->
<ItemDefinitionGroup >
<ClCompile >
<PrecompiledHeaderFile > pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories > ..;$(OpenConsoleDir)\dep\jsoncpp\json;%(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
<!-- Manually disable unreachable code warning, because jconcpp has a ton of that. -->
<DisableSpecificWarnings > 4702;%(DisableSpecificWarnings)</DisableSpecificWarnings>
</ClCompile>
<Link >
<AdditionalDependencies > WindowsApp.lib;user32.lib;shell32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<Reference >
<Private > false</Private>
</Reference>
</ItemDefinitionGroup>
<!-- ========================= Globals ======================== -->
<Import Project= "$(OpenConsoleDir)src\cppwinrt.build.post.props" />
2020-12-05 00:49:45 +01:00
<Import Project= "..\..\..\packages\Microsoft.UI.Xaml.2.5.0-prerelease.201202003\build\native\Microsoft.UI.Xaml.targets" Condition= "Exists('..\..\..\packages\Microsoft.UI.Xaml.2.5.0-prerelease.201202003\build\native\Microsoft.UI.Xaml.targets')" />
2020-10-06 18:56:59 +02:00
<Target Name= "EnsureNuGetPackageBuildImports" BeforeTargets= "PrepareForBuild" >
<PropertyGroup >
<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>
</PropertyGroup>
2020-12-05 00:49:45 +01:00
<Error Condition= "!Exists('$(OpenConsoleDir)\packages\Microsoft.UI.Xaml.2.5.0-prerelease.201202003\build\native\Microsoft.UI.Xaml.targets')" Text= "$([System.String]::Format('$(ErrorText)', '$(OpenConsoleDir)\packages\Microsoft.UI.Xaml.2.5.0-prerelease.201202003\build\native\Microsoft.UI.Xaml.targets'))" />
2020-10-06 18:56:59 +02:00
</Target>
<!-- This target will take our defaults.json and stamp it into a .h file that
we can include in the code directly. This way, we don't need to worry about
failing to load the default settings at runtime. -->
<Target Name= "_TerminalAppGenerateDefaultsH" Inputs= "defaults.json" Outputs= "Generated Files\defaults.h" BeforeTargets= "BeforeClCompile" >
<Exec Command= "powershell.exe -noprofile – ExecutionPolicy Unrestricted $(OpenConsoleDir)\tools\GenerateHeaderForJson.ps1 -JsonFile defaults.json -OutPath '"Generated Files\defaults.h"' -VariableName DefaultJson" />
</Target>
<!-- A different set of defaults for Universal variant -->
<Target Name= "_TerminalAppGenerateDefaultsUniversalH" Inputs= "defaults-universal.json" Outputs= "Generated Files\defaults-universal.h" BeforeTargets= "BeforeClCompile" >
<Exec Command= "powershell.exe -noprofile – ExecutionPolicy Unrestricted $(OpenConsoleDir)\tools\GenerateHeaderForJson.ps1 -JsonFile defaults-universal.json -OutPath '"Generated Files\defaults-universal.h"' -VariableName DefaultUniversalJson" />
</Target>
<!-- Same as above, but for the default settings.json template -->
<Target Name= "_TerminalAppGenerateUserSettingsH" Inputs= "userDefaults.json" Outputs= "Generated Files\userDefaults.h" BeforeTargets= "BeforeClCompile" >
<Exec Command= "powershell.exe -noprofile – ExecutionPolicy Unrestricted $(OpenConsoleDir)\tools\GenerateHeaderForJson.ps1 -JsonFile userDefaults.json -OutPath '"Generated Files\userDefaults.h"' -VariableName UserSettingsJson" />
</Target>
2020-10-20 00:31:09 +02:00
<Import Project= "$(SolutionDir)build\rules\CollectWildcardResources.targets" />
2020-10-06 18:56:59 +02:00
</Project>