2608e94822
Introduces a new TerminalSettingsModel (TSM) project. This project is responsible for (de)serializing and exposing Windows Terminal's settings as WinRT objects. ## References #885: TSM epic #1564: Settings UI is dependent on this for data binding and settings access #6904: TSM Spec In the process of ripping out TSM from TerminalApp, a few other changes were made to make this possible: 1. AppLogic's `ApplicationDisplayName` and `ApplicationVersion` was moved to `CascadiaSettings` - These are defined as static functions. They also no longer check if `AppLogic::Current()` is nullptr. 2. `enum LaunchMode` was moved from TerminalApp to TSM 3. `AzureConnectionType` and `TelnetConnectionType` were moved from the profile generators to their respective TerminalConnections 4. CascadiaSettings' `SettingsPath` and `DefaultSettingsPath` are exposed as `hstring` instead of `std::filesystem::path` 5. `Command::ExpandCommands()` was exposed via the IDL - This required some of the warnings to be saved to an `IVector` instead of `std::vector`, among some other small changes. 6. The localization resources had to be split into two halves. - Resource file linked in init.cpp. Verified at runtime thanks to the StaticResourceLoader. 7. Added constructors to some `ActionArgs` 8. Utils.h/cpp were moved to `cascadia/inc`. `JsonKey()` was moved to `JsonUtils`. Both TermApp and TSM need access to Utils.h/cpp. A large amount of work includes moving to the new namespace (`TerminalApp` --> `Microsoft::Terminal::Settings::Model`). Fixing the tests had its own complications. Testing required us to split up TSM into a DLL and LIB, similar to TermApp. Discussion on creating a non-local test variant can be found in #7743. Closes #885
90 lines
3.3 KiB
XML
90 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ItemGroup>
|
|
<Natvis Include="$(SolutionDir)tools\ConsoleTypes.natvis" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PRIResource Include="Resources\en-US\Resources.resw" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClCompile Include="pch.cpp" />
|
|
<ClCompile Include="$(GeneratedFilesDir)module.g.cpp" />
|
|
<ClCompile Include="AzureCloudShellGenerator.cpp">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="PowershellCoreProfileGenerator.cpp">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="WslDistroGenerator.cpp">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="KeyMappingSerialization.cpp" />
|
|
<ClCompile Include="CascadiaSettings.cpp" />
|
|
<ClCompile Include="CascadiaSettingsSerialization.cpp" />
|
|
<ClCompile Include="GlobalAppSettings.cpp" />
|
|
<ClCompile Include="KeyChordSerialization.cpp" />
|
|
<ClCompile Include="Profile.cpp" />
|
|
<ClCompile Include="ColorScheme.cpp" />
|
|
<ClCompile Include="DefaultProfileUtils.cpp">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="Utils.cpp" />
|
|
<ClCompile Include="$(OpenConsoleDir)\dep\jsoncpp\jsoncpp.cpp">
|
|
<Filter>json</Filter>
|
|
</ClCompile>
|
|
<ClCompile Include="init.cpp" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClInclude Include="pch.h" />
|
|
<ClInclude Include="AzureCloudShellGenerator.h">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClInclude>
|
|
<ClInclude Include="IDynamicProfileGenerator.h">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClInclude>
|
|
<ClInclude Include="PowershellCoreProfileGenerator.h">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClInclude>
|
|
<ClInclude Include="WslDistroGenerator.h">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClInclude>
|
|
<ClInclude Include="CascadiaSettings.h" />
|
|
<ClInclude Include="GlobalAppSettings.h" />
|
|
<ClInclude Include="TerminalSettingsSerializationHelpers.h" />
|
|
<ClInclude Include="KeyChordSerialization.h" />
|
|
<ClInclude Include="Profile.h" />
|
|
<ClInclude Include="SettingsTypes.h" />
|
|
<ClInclude Include="TerminalWarnings.h" />
|
|
<ClInclude Include="ColorScheme.h" />
|
|
<ClInclude Include="Utils.h" />
|
|
<ClInclude Include="DefaultProfileUtils.h">
|
|
<Filter>profileGeneration</Filter>
|
|
</ClInclude>
|
|
<ClInclude Include="JsonUtils.h">
|
|
<Filter>json</Filter>
|
|
</ClInclude>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Midl Include="ActionArgs.idl" />
|
|
<Midl Include="ColorScheme.idl" />
|
|
<Midl Include="Command.idl" />
|
|
<Midl Include="GlobalAppSettings.idl" />
|
|
<Midl Include="KeyMapping.idl" />
|
|
<Midl Include="Profile.idl" />
|
|
<Midl Include="TerminalWarnings.idl" />
|
|
<Midl Include="CascadiaSettings.idl" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="packages.config" />
|
|
<None Include="TerminalSettingsModel.def" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Filter Include="profileGeneration">
|
|
<UniqueIdentifier>{c81be61b-0d58-4277-8fd1-fcc888c3da9c}</UniqueIdentifier>
|
|
</Filter>
|
|
<Filter Include="json">
|
|
<UniqueIdentifier>{81a6314f-aa5b-4533-a499-13bc3a5c4af0}</UniqueIdentifier>
|
|
</Filter>
|
|
</ItemGroup>
|
|
</Project>
|