2021-04-26 22:01:38 +03:00
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets= "Build" xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" >
<!-- Project configurations -->
2023-11-07 07:26:19 -07:00
<Import Project= "..\..\..\..\packages\Microsoft.UI.Xaml.2.8.2-prerelease.220830001\build\native\Microsoft.UI.Xaml.props" Condition= "Exists('..\..\..\..\packages\Microsoft.UI.Xaml.2.8.2-prerelease.220830001\build\native\Microsoft.UI.Xaml.props')" />
<Import Project= "..\..\..\..\packages\Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.3\build\native\Microsoft.Toolkit.Win32.UI.XamlApplication.props" Condition= "Exists('..\..\..\..\packages\Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.3\build\native\Microsoft.Toolkit.Win32.UI.XamlApplication.props')" />
2024-02-13 13:55:14 +00:00
<Import Project= "..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props" Condition= "Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" />
2022-03-01 06:32:23 -08:00
<PropertyGroup >
<NoWarn > 81010002</NoWarn>
</PropertyGroup>
2021-04-26 22:01:38 +03:00
<!-- C++ source compile - specific things for all configurations -->
<ItemDefinitionGroup >
<ClCompile >
<WarningLevel > Level3</WarningLevel>
<ConformanceMode > false</ConformanceMode>
<TreatWarningAsError > true</TreatWarningAsError>
<LanguageStandard > stdcpplatest</LanguageStandard>
<AdditionalOptions > /await %(AdditionalOptions)</AdditionalOptions>
<PreprocessorDefinitions > _UNICODE;UNICODE;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link >
<SubSystem > Windows</SubSystem>
</Link>
<Lib >
<TreatLibWarningAsErrors > true</TreatLibWarningAsErrors>
</Lib>
</ItemDefinitionGroup>
<!-- C++ source compile - specific things for Debug/Release configurations -->
2022-05-11 13:35:18 +03:00
<ItemDefinitionGroup Condition= "'$(Configuration)'=='Debug'" >
2021-04-26 22:01:38 +03:00
<ClCompile >
<PreprocessorDefinitions > _DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Optimization > Disabled</Optimization>
<SDLCheck > true</SDLCheck>
<RuntimeLibrary > MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<Link >
<GenerateDebugInformation > true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
2022-05-11 13:35:18 +03:00
<ItemDefinitionGroup Condition= "'$(Configuration)'=='Release'" >
2021-04-26 22:01:38 +03:00
<ClCompile >
<PreprocessorDefinitions > NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<Optimization > MaxSpeed</Optimization>
<SDLCheck > false</SDLCheck>
<RuntimeLibrary > MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking > true</FunctionLevelLinking>
<IntrinsicFunctions > true</IntrinsicFunctions>
</ClCompile>
<Link >
<GenerateDebugInformation > true</GenerateDebugInformation>
<EnableCOMDATFolding > true</EnableCOMDATFolding>
<OptimizeReferences > true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<!-- Global props -->
<PropertyGroup Label= "Globals" >
<VCProjectVersion > 16.0</VCProjectVersion>
<Keyword > Win32Proj</Keyword>
<ProjectGuid > {8df78b53-200e-451f-9328-01eb907193ae}</ProjectGuid>
<RootNamespace > KeyboardManagerEditor</RootNamespace>
</PropertyGroup>
<!-- Props that are constant for both Debug and Release configurations -->
<PropertyGroup Label= "Configuration" >
2022-02-07 06:08:30 -08:00
<PlatformToolset > v143</PlatformToolset>
2023-07-20 00:12:46 +01:00
<OutDir > ..\..\..\..\$(Platform)\$(Configuration)\$(MSBuildProjectName)\</OutDir>
2021-04-26 22:01:38 +03:00
<CharacterSet > Unicode</CharacterSet>
<SpectreMitigation > Spectre</SpectreMitigation>
<ConfigurationType > Application</ConfigurationType>
<TargetName > PowerToys.$(MSBuildProjectName)</TargetName>
</PropertyGroup>
<!-- Debug/Release props -->
2022-05-11 13:35:18 +03:00
<PropertyGroup Condition= "'$(Configuration)'=='Debug'" Label= "Configuration" >
2021-04-26 22:01:38 +03:00
<UseDebugLibraries > true</UseDebugLibraries>
<LinkIncremental > true</LinkIncremental>
</PropertyGroup>
2022-05-11 13:35:18 +03:00
<PropertyGroup Condition= "'$(Configuration)'=='Release'" Label= "Configuration" >
2021-04-26 22:01:38 +03:00
<UseDebugLibraries > false</UseDebugLibraries>
<WholeProgramOptimization > true</WholeProgramOptimization>
<LinkIncremental > false</LinkIncremental>
</PropertyGroup>
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label= "ExtensionSettings" >
</ImportGroup>
<ImportGroup Label= "Shared" >
</ImportGroup>
2022-05-11 13:35:18 +03:00
<ImportGroup Label= "PropertySheets" >
2021-04-26 22:01:38 +03:00
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label= "UserMacros" />
2022-05-11 13:35:18 +03:00
<ItemDefinitionGroup Condition= "'$(Configuration)'=='Debug'" >
2021-04-26 22:01:38 +03:00
<ClCompile >
2021-05-07 11:16:31 +03:00
<AdditionalIncludeDirectories > ./;$(SolutionDir)src\modules\;$(SolutionDir)src\modules\KeyboardManager\KeyboardManagerEditorLibrary\;$(SolutionDir)src\common\Display;$(SolutionDir)src\common\inc;$(SolutionDir)src\common\Telemetry;$(SolutionDir)src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2021-04-26 22:01:38 +03:00
</ClCompile>
<Link >
2023-11-07 07:26:19 -07:00
<AdditionalDependencies > Display.lib;shcore.lib;Dbghelp.lib;dwmapi.lib;uxtheme.lib;%(AdditionalDependencies)</AdditionalDependencies>
2021-04-26 22:01:38 +03:00
<AdditionalLibraryDirectories > $(SolutionDir)$(Platform)\$(ConfigurationName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
2022-05-11 13:35:18 +03:00
<ItemDefinitionGroup Condition= "'$(Configuration)'=='Release'" >
2021-04-26 22:01:38 +03:00
<ClCompile >
2021-05-07 11:16:31 +03:00
<AdditionalIncludeDirectories > ./;$(SolutionDir)src\modules\;$(SolutionDir)src\modules\KeyboardManager\KeyboardManagerEditorLibrary\;$(SolutionDir)src\common\Display;$(SolutionDir)src\common\inc;$(SolutionDir)src\common\Telemetry;$(SolutionDir)src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2021-04-26 22:01:38 +03:00
</ClCompile>
<Link >
<EnableCOMDATFolding > true</EnableCOMDATFolding>
<OptimizeReferences > true</OptimizeReferences>
2023-11-07 07:26:19 -07:00
<AdditionalDependencies > Display.lib;shcore.lib;Dbghelp.lib;dwmapi.lib;uxtheme.lib;%(AdditionalDependencies)</AdditionalDependencies>
2021-04-26 22:01:38 +03:00
<AdditionalLibraryDirectories > $(SolutionDir)$(Platform)\$(ConfigurationName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup >
<ClInclude Include= "Generated Files\resource.h" />
<ClInclude Include= "KeyboardManagerEditor.h" />
<ClInclude Include= "pch.h" />
2022-05-11 16:38:12 +02:00
<None Include= "packages.config" />
2021-04-26 22:01:38 +03:00
<None Include= "resource.base.h" />
<ClInclude Include= "targetver.h" />
</ItemGroup>
<ItemGroup >
<ClCompile Include= "KeyboardManagerEditor.cpp" />
<ClCompile Include= "pch.cpp" >
2024-03-22 03:29:14 -07:00
<PrecompiledHeader Condition= "'$(UsePrecompiledHeaders)' != 'false'" > Create</PrecompiledHeader>
2021-04-26 22:01:38 +03:00
</ClCompile>
</ItemGroup>
<ItemGroup >
<ResourceCompile Include= "Generated Files\KeyboardManagerEditor.rc" />
<None Include= "KeyboardManagerEditor.base.rc" />
</ItemGroup>
<ItemGroup >
<ProjectReference Include= "..\..\..\common\Display\Display.vcxproj" >
<Project > {caba8dfb-823b-4bf2-93ac-3f31984150d9}</Project>
</ProjectReference>
<ProjectReference Include= "..\..\..\common\logger\logger.vcxproj" >
<Project > {d9b8fc84-322a-4f9f-bbb9-20915c47ddfd}</Project>
</ProjectReference>
<ProjectReference Include= "..\..\..\common\Themes\Themes.vcxproj" >
<Project > {98537082-0fdb-40de-abd8-0dc5a4269bab}</Project>
</ProjectReference>
<ProjectReference Include= "..\common\KeyboardManagerCommon.vcxproj" >
<Project > {8affa899-0b73-49ec-8c50-0fadda57b2fc}</Project>
</ProjectReference>
<ProjectReference Include= "..\KeyboardManagerEditorLibrary\KeyboardManagerEditorLibrary.vcxproj" >
<Project > {23d2070d-e4ad-4add-85a7-083d9c76ad49}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup >
<Manifest Include= "KeyboardManagerEditor.exe.manifest" />
</ItemGroup>
<ItemGroup >
[KBM]Launch apps / URI with keyboard shortcuts, support chords (#30121)
* Working UI update with just runProgram Path and isRunProgram
* First working, basic. no args or path, or setting change detections.
* Revert and fixed.
* Some clean up, working with config file monitor
* Args and Start-in should be working.
* File monitor, quotes, xaml screens one
* Fixed enable/disable toogle from XAML
* Code cleanup.
* Betting logging.
* Cleanup, start of RunProgramDescriptor and usage of run_non_elevated/run_elevated
* Code moved to KeyboardEventHandlers, but not enabled since it won't build as is, needs elevation.h. Other testing..
* Key chords working, pretty much
* Added gui for elevation level, need to refresh on change...
* f: include shellapi.h and reference wil in KBMEL
* run_elevated/run_non_elevated sorted out. Working!
* Removed lots of old temp code.
* Fix some speling errors.
* Cleanup before trying to add a UI for the chord
* Added "DifferentUser" option
* Closer on UI for chords.
* Better UI, lots working.
* Clean up
* Text for “Allow chords” – needs to look better…
* Bugs and clean-up
* Cleanup
* Refactor and clean up.
* More clean up
* Some localization.
* Don’t show “Allow chords“ to the “to” shortcut
* Maybe better foreground after opening new app
* Better chord matching.
* Runprogram fix for stealing existing shortcut.
* Better runProgram stuff
* Temp commit
* Working well
* Toast test
* More toast
* Added File and Folder picker UI
* Pre-check on run program file exists.
* Refactor to SetupRunProgramControls
* Open URI UI is going.
* Open URI working well
* Open URI stuff working well
* Allowed AppSpecific shortcut and fixed backup/restore shortcut dups
* Fixed settings screen
* Start of code to find by name...
* UI fixed
* Small fixes
* Some single edit code working.
* UI getting better.
* Fixes
* Fixed and merge from main
* UI updates
* UI updates.
* UI stuff
* Fixed crash from move ui item locations.
* Fixed crash from move ui item locations.
* Added delete confirm
* Basic sound working.
* Localized some stuff
* Added sounds
* Better experiance when shortcut is in use.
* UI tweaks
* Fixed KBM ui for unicode shortcut not having ","
* Some clean up
* Cleanup
* Cleanup
* Fixed applyXamlStyling
* Added back stuff lost in merge
* applyXamlStyling, again
* Fixed crash on change from non shortcut to shortcut
* Update src/modules/keyboardmanager/KeyboardManagerEngineTest/KeyboardManagerEngineTest.vcxproj
* Fixed some spelling type issues.
* ImplementationLibrary 231216
* Comment bump to see if the Microsoft.Windows.ImplementationLibrary version thing gets picked up
* Correct, Microsoft.Windows.ImplementationLibrary, finally?
* Fixed two test that failed because we now allow key-chords.
* Removed shortcut sounds.
* use original behavior when "allow chords" is off in shortcut window
* fix crash when editing a shortcut that has apps specified for it
* split KBM chords with comma on dashboard page
* Fix some spelling items.
* More "spelling"
* Fix XAML styling
* align TextBlock and ToggleSwitch
* fix cutoff issue at the top
* increase ComboBox width
* Added *Unsupported* for backwards compat on config of KBM
* fix spellcheck
* Fix crash on Remap key screen
* Fixed Remap Keys ComboBox width too short.
* Removed KBM Single Edit mode, fixed crash.
* Fix Xaml with xaml cops
* Fix crash on setting "target app" for some types of shortcuts.
* Space to toggle chord, combobox back
* fix spellcheck
* fix some code nits
* Code review updates.
* Add exclusions to the bug report tool
* Code review and kill CloseAndEndTask
* Fix alignment / 3 comboboxes per row
* Fix daily telemetry events to exclude start app and open URI
* Add chords and remove app start and open uri from config telemetry
* comma instead of plus in human readable shortcut telemetry data
* Code review, restore default-old state when new row added in KBM
* Code review, restore default-old state when new row added in KBM, part 2
* Still show target app on Settings
* Only allow enabling chords for origin shortcuts
---------
Co-authored-by: Andrey Nekrasov <yuyoyuppe@users.noreply.github.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
2024-02-27 18:12:05 -05:00
<None Include= "Resources.resx" >
<SubType > Designer</SubType>
</None>
2021-04-26 22:01:38 +03:00
</ItemGroup>
<ItemGroup >
<Image Include= "Keyboard.ico" />
</ItemGroup>
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label= "ExtensionTargets" >
2024-02-13 13:55:14 +00:00
<Import Project= "..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets" Condition= "Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" />
2023-11-07 07:26:19 -07:00
<Import Project= "..\..\..\..\packages\Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.3\build\native\Microsoft.Toolkit.Win32.UI.XamlApplication.targets" Condition= "Exists('..\..\..\..\packages\Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.3\build\native\Microsoft.Toolkit.Win32.UI.XamlApplication.targets')" />
<Import Project= "..\..\..\..\packages\Microsoft.VCRTForwarders.140.1.0.7\build\native\Microsoft.VCRTForwarders.140.targets" Condition= "Exists('..\..\..\..\packages\Microsoft.VCRTForwarders.140.1.0.7\build\native\Microsoft.VCRTForwarders.140.targets')" />
<Import Project= "..\..\..\..\packages\Microsoft.UI.Xaml.2.8.2-prerelease.220830001\build\native\Microsoft.UI.Xaml.targets" Condition= "Exists('..\..\..\..\packages\Microsoft.UI.Xaml.2.8.2-prerelease.220830001\build\native\Microsoft.UI.Xaml.targets')" />
2024-03-14 10:02:28 -07:00
<Import Project= "..\..\..\..\packages\Microsoft.Web.WebView2.1.0.2365.46\build\native\Microsoft.Web.WebView2.targets" Condition= "Exists('..\..\..\..\packages\Microsoft.Web.WebView2.1.0.2365.46\build\native\Microsoft.Web.WebView2.targets')" />
2021-04-26 22:01:38 +03:00
</ImportGroup>
<Import Project= "..\..\..\..\deps\spdlog.props" />
2022-05-11 16:38:12 +02:00
<Target Name= "GenerateResourceFiles" BeforeTargets= "PrepareForBuild" >
<Exec Command= "powershell -NonInteractive -executionpolicy Unrestricted $(SolutionDir)tools\build\convert-resx-to-rc.ps1 $(MSBuildThisFileDirectory) resource.base.h resource.h KeyboardManagerEditor.base.rc KeyboardManagerEditor.rc" />
</Target>
2021-04-26 22:01:38 +03: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>
2024-02-13 13:55:14 +00:00
<Error Condition= "!Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" Text= "$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props'))" />
<Error Condition= "!Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" Text= "$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets'))" />
2023-11-07 07:26:19 -07:00
<Error Condition= "!Exists('..\..\..\..\packages\Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.3\build\native\Microsoft.Toolkit.Win32.UI.XamlApplication.props')" Text= "$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.3\build\native\Microsoft.Toolkit.Win32.UI.XamlApplication.props'))" />
<Error Condition= "!Exists('..\..\..\..\packages\Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.3\build\native\Microsoft.Toolkit.Win32.UI.XamlApplication.targets')" Text= "$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Toolkit.Win32.UI.XamlApplication.6.1.3\build\native\Microsoft.Toolkit.Win32.UI.XamlApplication.targets'))" />
<Error Condition= "!Exists('..\..\..\..\packages\Microsoft.VCRTForwarders.140.1.0.7\build\native\Microsoft.VCRTForwarders.140.targets')" Text= "$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.VCRTForwarders.140.1.0.7\build\native\Microsoft.VCRTForwarders.140.targets'))" />
<Error Condition= "!Exists('..\..\..\..\packages\Microsoft.UI.Xaml.2.8.2-prerelease.220830001\build\native\Microsoft.UI.Xaml.props')" Text= "$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.UI.Xaml.2.8.2-prerelease.220830001\build\native\Microsoft.UI.Xaml.props'))" />
<Error Condition= "!Exists('..\..\..\..\packages\Microsoft.UI.Xaml.2.8.2-prerelease.220830001\build\native\Microsoft.UI.Xaml.targets')" Text= "$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.UI.Xaml.2.8.2-prerelease.220830001\build\native\Microsoft.UI.Xaml.targets'))" />
2024-03-14 10:02:28 -07:00
<Error Condition= "!Exists('..\..\..\..\packages\Microsoft.Web.WebView2.1.0.2365.46\build\native\Microsoft.Web.WebView2.targets')" Text= "$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Web.WebView2.1.0.2365.46\build\native\Microsoft.Web.WebView2.targets'))" />
2023-11-07 07:26:19 -07:00
</Target>
<Target Name= "FakeResourcesPriMerge" BeforeTargets= "FinalizeBuildStatus" DependsOnTargets= "CopyFilesToOutputDirectory" >
<Message Text= "Renaming Microsoft.UI.Xaml.pri to resources.pri" />
<Move SourceFiles= "$(OutDir)\Microsoft.UI.Xaml.pri" DestinationFiles= "$(OutDir)\resources.pri" />
2021-04-26 22:01:38 +03:00
</Target>
</Project>