2021-10-22 13:30:18 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2025-12-16 10:46:39 +08:00
|
|
|
<PropertyGroup Label="NuGet">
|
|
|
|
|
<!-- Tell NuGet this is PackageReference style -->
|
|
|
|
|
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
|
|
|
|
|
|
|
|
|
<!-- Tell NuGet we're a native project -->
|
|
|
|
|
<NuGetTargetMoniker>native,Version=v0.0</NuGetTargetMoniker>
|
|
|
|
|
|
|
|
|
|
<!-- Tell NuGet we target Windows (use your existing WindowsTargetPlatformVersion) -->
|
|
|
|
|
<NuGetTargetPlatformIdentifier>Windows</NuGetTargetPlatformIdentifier>
|
|
|
|
|
<NuGetTargetPlatformVersion>$(WindowsTargetPlatformVersion)</NuGetTargetPlatformVersion>
|
|
|
|
|
</PropertyGroup>
|
2021-10-22 13:30:18 +01:00
|
|
|
<PropertyGroup Label="Globals">
|
|
|
|
|
<VCProjectVersion>15.0</VCProjectVersion>
|
|
|
|
|
<ProjectGuid>{e94fd11c-0591-456f-899f-efc0ca548336}</ProjectGuid>
|
|
|
|
|
<Keyword>Win32Proj</Keyword>
|
|
|
|
|
<RootNamespace>FindMyMouse</RootNamespace>
|
|
|
|
|
<ProjectName>FindMyMouse</ProjectName>
|
2025-09-26 13:03:00 +08:00
|
|
|
<CppWinRTOptimized>true</CppWinRTOptimized>
|
|
|
|
|
<CppWinRTEnableComponentProjection>false</CppWinRTEnableComponentProjection>
|
|
|
|
|
<CppWinRTGenerateWindowsMetadata>false</CppWinRTGenerateWindowsMetadata>
|
|
|
|
|
<WindowsAppSdkBootstrapInitialize>false</WindowsAppSdkBootstrapInitialize>
|
|
|
|
|
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
|
|
|
|
|
<WindowsAppSDKVerifyTransitiveDependencies>false</WindowsAppSDKVerifyTransitiveDependencies>
|
2021-10-22 13:30:18 +01:00
|
|
|
</PropertyGroup>
|
2025-12-16 10:46:39 +08:00
|
|
|
<ItemGroup>
|
|
|
|
|
<PackageReference Include="Microsoft.WindowsAppSDK" GeneratePathProperty="true"/>
|
|
|
|
|
<PackageReference Include="Microsoft.WindowsAppSDK.Foundation" GeneratePathProperty="true"/>
|
|
|
|
|
<PackageReference Include="Microsoft.Windows.CppWinRT" GeneratePathProperty="true"/>
|
|
|
|
|
</ItemGroup>
|
2021-10-22 13:30:18 +01:00
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
2022-05-11 13:35:18 +03:00
|
|
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
2021-10-22 13:30:18 +01:00
|
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
|
|
|
<UseDebugLibraries>true</UseDebugLibraries>
|
2022-02-07 06:08:30 -08:00
|
|
|
<PlatformToolset>v143</PlatformToolset>
|
2021-10-22 13:30:18 +01:00
|
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
|
|
|
</PropertyGroup>
|
2022-05-11 13:35:18 +03:00
|
|
|
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
2021-10-22 13:30:18 +01:00
|
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
|
|
|
<UseDebugLibraries>false</UseDebugLibraries>
|
2022-02-07 06:08:30 -08:00
|
|
|
<PlatformToolset>v143</PlatformToolset>
|
2021-10-22 13:30:18 +01:00
|
|
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
|
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<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-10-22 13:30:18 +01:00
|
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
|
|
|
</ImportGroup>
|
2025-09-26 13:03:00 +08:00
|
|
|
|
2021-10-22 13:30:18 +01:00
|
|
|
<PropertyGroup Label="UserMacros" />
|
2022-05-11 13:35:18 +03:00
|
|
|
<PropertyGroup>
|
2023-07-20 00:12:46 +01:00
|
|
|
<OutDir>..\..\..\..\$(Platform)\$(Configuration)\</OutDir>
|
2021-12-10 10:50:46 +01:00
|
|
|
<TargetName>PowerToys.FindMyMouse</TargetName>
|
2021-10-22 13:30:18 +01:00
|
|
|
</PropertyGroup>
|
2022-05-11 13:35:18 +03:00
|
|
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
|
|
|
|
<LinkIncremental>true</LinkIncremental>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
2021-10-22 13:30:18 +01:00
|
|
|
<LinkIncremental>false</LinkIncremental>
|
|
|
|
|
</PropertyGroup>
|
2022-05-11 13:35:18 +03:00
|
|
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
2021-10-22 13:30:18 +01:00
|
|
|
<ClCompile>
|
|
|
|
|
<WarningLevel>Level3</WarningLevel>
|
|
|
|
|
<Optimization>Disabled</Optimization>
|
|
|
|
|
<SDLCheck>true</SDLCheck>
|
|
|
|
|
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<ConformanceMode>true</ConformanceMode>
|
2025-11-12 10:39:21 +08:00
|
|
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
2021-10-22 13:30:18 +01:00
|
|
|
<LanguageStandard>stdcpplatest</LanguageStandard>
|
|
|
|
|
</ClCompile>
|
|
|
|
|
<Link>
|
|
|
|
|
<SubSystem>Windows</SubSystem>
|
|
|
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
|
|
|
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
|
|
|
|
</Link>
|
|
|
|
|
</ItemDefinitionGroup>
|
2022-05-11 13:35:18 +03:00
|
|
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
2021-10-22 13:30:18 +01:00
|
|
|
<ClCompile>
|
|
|
|
|
<WarningLevel>Level3</WarningLevel>
|
|
|
|
|
<Optimization>MaxSpeed</Optimization>
|
|
|
|
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
|
|
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
|
|
|
<SDLCheck>true</SDLCheck>
|
|
|
|
|
<PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
|
<ConformanceMode>true</ConformanceMode>
|
2025-11-12 10:39:21 +08:00
|
|
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
2021-10-22 13:30:18 +01:00
|
|
|
<LanguageStandard>stdcpplatest</LanguageStandard>
|
|
|
|
|
</ClCompile>
|
|
|
|
|
<Link>
|
|
|
|
|
<SubSystem>Windows</SubSystem>
|
|
|
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
|
|
|
<OptimizeReferences>true</OptimizeReferences>
|
|
|
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
|
|
|
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
|
|
|
|
</Link>
|
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
|
<ClCompile>
|
2025-09-26 13:03:00 +08:00
|
|
|
<!-- Add Generated Files folder so #include <winrt/...> finds projected headers -->
|
|
|
|
|
<AdditionalIncludeDirectories>$(GeneratedFilesDir);$(SolutionDir)src\;$(SolutionDir)src\modules;$(SolutionDir)src\common\Telemetry;$(MSBuildThisFileDirectory)..\..\..\..\src\;$(MSBuildThisFileDirectory)..\..\..\..\src\modules;$(MSBuildThisFileDirectory)..\..\..\..\src\common\Telemetry;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2021-10-22 13:30:18 +01:00
|
|
|
</ClCompile>
|
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ClInclude Include="FindMyMouse.h" />
|
|
|
|
|
<ClInclude Include="pch.h" />
|
2022-01-21 17:41:44 +00:00
|
|
|
<ClInclude Include="resource.h" />
|
2021-10-22 13:30:18 +01:00
|
|
|
<ClInclude Include="trace.h" />
|
2023-09-04 17:58:37 +02:00
|
|
|
<ClInclude Include="WinHookEventIDs.h" />
|
2021-10-22 13:30:18 +01:00
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ClCompile Include="dllmain.cpp" />
|
|
|
|
|
<ClCompile Include="FindMyMouse.cpp" />
|
|
|
|
|
<ClCompile Include="pch.cpp">
|
2024-03-22 03:29:14 -07:00
|
|
|
<PrecompiledHeader Condition="'$(UsePrecompiledHeaders)' != 'false'">Create</PrecompiledHeader>
|
2021-10-22 13:30:18 +01:00
|
|
|
</ClCompile>
|
|
|
|
|
<ClCompile Include="trace.cpp" />
|
2023-09-04 17:58:37 +02:00
|
|
|
<ClCompile Include="WinHookEventIDs.cpp" />
|
2021-10-22 13:30:18 +01:00
|
|
|
</ItemGroup>
|
2025-09-26 13:03:00 +08:00
|
|
|
|
2021-10-22 13:30:18 +01:00
|
|
|
<ItemGroup>
|
|
|
|
|
<ProjectReference Include="..\..\..\common\logger\logger.vcxproj">
|
|
|
|
|
<Project>{d9b8fc84-322a-4f9f-bbb9-20915c47ddfd}</Project>
|
|
|
|
|
</ProjectReference>
|
2022-04-12 11:13:22 -04:00
|
|
|
<ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj">
|
2021-10-22 13:30:18 +01:00
|
|
|
<Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
|
|
|
|
|
</ProjectReference>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
2022-01-21 17:41:44 +00:00
|
|
|
<ResourceCompile Include="FindMyMouse.rc" />
|
2021-10-22 13:30:18 +01:00
|
|
|
</ItemGroup>
|
2025-09-26 13:03:00 +08:00
|
|
|
<!-- Deduplicate WindowsAppRuntimeAutoInitializer.cpp (added twice via transitive imports causing LNK4042). Remove all then add exactly once. -->
|
2025-12-16 10:46:39 +08:00
|
|
|
<Target Name="FixWinAppSDKAutoInitializer" BeforeTargets="ClCompile" AfterTargets="WindowsAppRuntimeAutoInitializer">
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<!-- Remove ALL injected versions of the file -->
|
|
|
|
|
<ClCompile Remove="@(ClCompile)" Condition="'%(Filename)' == 'WindowsAppRuntimeAutoInitializer'" />
|
|
|
|
|
|
|
|
|
|
<!-- Add ONE copy back manually -->
|
|
|
|
|
<ClCompile Include="$(PkgMicrosoft_WindowsAppSDK_Foundation)\include\WindowsAppRuntimeAutoInitializer.cpp">
|
|
|
|
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
|
|
|
|
</ClCompile>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
</Target>
|
2025-09-26 13:03:00 +08:00
|
|
|
<Target Name="RemoveManagedWebView2CoreFromNativeOutDir" AfterTargets="Build">
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<_ToDelete Include="$(OutDir)Microsoft.Web.WebView2.Core.dll" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<Delete Files="@(_ToDelete)" Condition="Exists('%(Identity)')" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
2021-10-22 13:30:18 +01:00
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
|
|
|
<Import Project="..\..\..\..\deps\spdlog.props" />
|
2026-01-05 22:41:01 +08:00
|
|
|
</Project>
|