mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
130 lines
6.8 KiB
XML
130 lines
6.8 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||
|
|
<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 FileLocksmithContextMenu.base.rc FileLocksmithContextMenu.rc" />
|
||
|
|
</Target>
|
||
|
|
<PropertyGroup Label="Globals">
|
||
|
|
<VCProjectVersion>17.0</VCProjectVersion>
|
||
|
|
<Keyword>Win32Proj</Keyword>
|
||
|
|
<ProjectGuid>{799a50d8-de89-4ed1-8ff8-ad5a9ed8c0ca}</ProjectGuid>
|
||
|
|
<RootNamespace>FileLocksmithContextMenu</RootNamespace>
|
||
|
|
</PropertyGroup>
|
||
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||
|
|
<PropertyGroup>
|
||
|
|
<TargetName>PowerToys.FileLocksmithContextMenu</TargetName>
|
||
|
|
<!-- Needs a different int dir to avoid conflicts in msix creation. -->
|
||
|
|
<IntDir>$(SolutionDir)$(Platform)\$(Configuration)\TemporaryBuild\obj\$(ProjectName)\</IntDir>
|
||
|
|
<OutDir>..\..\..\..\$(Platform)\$(Configuration)\WinUI3Apps\</OutDir>
|
||
|
|
</PropertyGroup>
|
||
|
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
|
||
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||
|
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||
|
|
<PlatformToolset>v143</PlatformToolset>
|
||
|
|
<CharacterSet>Unicode</CharacterSet>
|
||
|
|
</PropertyGroup>
|
||
|
|
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
|
||
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||
|
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||
|
|
<PlatformToolset>v143</PlatformToolset>
|
||
|
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||
|
|
<CharacterSet>Unicode</CharacterSet>
|
||
|
|
</PropertyGroup>
|
||
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||
|
|
<ImportGroup Label="ExtensionSettings">
|
||
|
|
</ImportGroup>
|
||
|
|
<ImportGroup Label="Shared">
|
||
|
|
</ImportGroup>
|
||
|
|
<ImportGroup Label="PropertySheets">
|
||
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||
|
|
</ImportGroup>
|
||
|
|
<PropertyGroup Label="UserMacros" />
|
||
|
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
||
|
|
<ClCompile>
|
||
|
|
<WarningLevel>Level3</WarningLevel>
|
||
|
|
<SDLCheck>true</SDLCheck>
|
||
|
|
<PreprocessorDefinitions>WIN32;_DEBUG;FILELOCKSMITHCONTEXTMENU_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||
|
|
<ConformanceMode>true</ConformanceMode>
|
||
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||
|
|
<AdditionalIncludeDirectories>..;../../..;</AdditionalIncludeDirectories>
|
||
|
|
</ClCompile>
|
||
|
|
<Link>
|
||
|
|
<SubSystem>Windows</SubSystem>
|
||
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||
|
|
<EnableUAC>false</EnableUAC>
|
||
|
|
<AdditionalDependencies>runtimeobject.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||
|
|
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
|
||
|
|
</Link>
|
||
|
|
<PreBuildEvent>
|
||
|
|
<Command>del $(OutDir)\FileLocksmithContextMenuPackage.msix /q
|
||
|
|
MakeAppx.exe pack /d . /p $(OutDir)FileLocksmithContextMenuPackage.msix /nv</Command>
|
||
|
|
</PreBuildEvent>
|
||
|
|
</ItemDefinitionGroup>
|
||
|
|
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
||
|
|
<ClCompile>
|
||
|
|
<WarningLevel>Level3</WarningLevel>
|
||
|
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||
|
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||
|
|
<SDLCheck>true</SDLCheck>
|
||
|
|
<PreprocessorDefinitions>WIN32;NDEBUG;FILELOCKSMITHCONTEXTMENU_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||
|
|
<ConformanceMode>true</ConformanceMode>
|
||
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||
|
|
<AdditionalIncludeDirectories>..;../../..;</AdditionalIncludeDirectories>
|
||
|
|
</ClCompile>
|
||
|
|
<Link>
|
||
|
|
<SubSystem>Windows</SubSystem>
|
||
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||
|
|
<OptimizeReferences>true</OptimizeReferences>
|
||
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||
|
|
<EnableUAC>false</EnableUAC>
|
||
|
|
<AdditionalDependencies>runtimeobject.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||
|
|
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
|
||
|
|
</Link>
|
||
|
|
<PreBuildEvent>
|
||
|
|
<Command>del $(OutDir)\FileLocksmithContextMenuPackage.msix /q
|
||
|
|
MakeAppx.exe pack /d . /p $(OutDir)FileLocksmithContextMenuPackage.msix /nv</Command>
|
||
|
|
</PreBuildEvent>
|
||
|
|
</ItemDefinitionGroup>
|
||
|
|
<ItemGroup>
|
||
|
|
<ClInclude Include="framework.h" />
|
||
|
|
<ClInclude Include="pch.h" />
|
||
|
|
<ClInclude Include="resource.base.h" />
|
||
|
|
</ItemGroup>
|
||
|
|
<ItemGroup>
|
||
|
|
<ClCompile Include="dllmain.cpp" />
|
||
|
|
<ClCompile Include="pch.cpp">
|
||
|
|
<PrecompiledHeader>Create</PrecompiledHeader>
|
||
|
|
</ClCompile>
|
||
|
|
</ItemGroup>
|
||
|
|
<ItemGroup>
|
||
|
|
<None Include="packages.config" />
|
||
|
|
<None Include="Resources.resx" />
|
||
|
|
</ItemGroup>
|
||
|
|
<ItemGroup>
|
||
|
|
<None Include="Assets\FileLocksmith\**" CopyToOutputDirectory="PreserveNewest" />
|
||
|
|
</ItemGroup>
|
||
|
|
<ItemGroup>
|
||
|
|
<ProjectReference Include="..\..\..\common\SettingsAPI\SettingsAPI.vcxproj">
|
||
|
|
<Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
|
||
|
|
</ProjectReference>
|
||
|
|
<ProjectReference Include="..\..\..\common\version\version.vcxproj">
|
||
|
|
<Project>{cc6e41ac-8174-4e8a-8d22-85dd7f4851df}</Project>
|
||
|
|
</ProjectReference>
|
||
|
|
<ProjectReference Include="..\FileLocksmithLib\FileLocksmithLib.vcxproj">
|
||
|
|
<Project>{9d52fd25-ef90-4f9a-a015-91efc5daf54f}</Project>
|
||
|
|
</ProjectReference>
|
||
|
|
</ItemGroup>
|
||
|
|
<ItemGroup>
|
||
|
|
<ResourceCompile Include="FileLocksmithContextMenu.base.rc" />
|
||
|
|
</ItemGroup>
|
||
|
|
<Import Project="..\..\..\..\deps\spdlog.props" />
|
||
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||
|
|
<ImportGroup Label="ExtensionTargets">
|
||
|
|
<Import Project="..\..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('..\..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" />
|
||
|
|
</ImportGroup>
|
||
|
|
<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>
|
||
|
|
<Error Condition="!Exists('..\..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" />
|
||
|
|
</Target>
|
||
|
|
</Project>
|