Move resources to the Ext project

This commit is contained in:
Ivan Stošić 2022-09-20 16:23:49 +02:00
parent 382a4be84b
commit 039c75f4f4
7 changed files with 14 additions and 14 deletions

View File

@ -5,7 +5,7 @@
#include "Settings.h"
#include "dllmain.h"
#include "Trace.h"
#include "../FileLocksmithLib/Generated Files/resource.h"
#include "Generated Files/resource.h"
// Implementations of inherited IUnknown methods

View File

@ -1,5 +1,8 @@
<?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 FileLocksmithExt.base.rc FileLocksmithExt.rc"/>
</Target>
<Import Project="..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.220418.1\build\native\Microsoft.Windows.CppWinRT.props')" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
@ -168,6 +171,15 @@
<ClInclude Include="Registry.h" />
<ClInclude Include="Settings.h" />
<ClInclude Include="Trace.h" />
<None Include="resource.base.h"/>
<ClInclude Include="Generated Files/resource.h"/>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Generated Files/FileLocksmithExt.rc"/>
<None Include="FileLocksmithExt.base.rc"/>
</ItemGroup>
<ItemGroup>
<None Include="Resources.resx"/>
</ItemGroup>
<ItemGroup>
<ClCompile Include="ClassFactory.cpp" />

View File

@ -10,7 +10,7 @@
#include "dllmain.h"
#include "Settings.h"
#include "Trace.h"
#include "../FileLocksmithLib/Generated Files/resource.h"
#include "Generated Files/resource.h"
class FileLocksmithModule : public PowertoyModuleIface
{

View File

@ -1,8 +1,5 @@
<?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 FileLocksmithLib.base.rc FileLocksmithLib.rc"/>
</Target>
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
@ -159,15 +156,6 @@
<ClInclude Include="NtdllBase.h" />
<ClInclude Include="NtdllExtensions.h" />
<ClInclude Include="pch.h" />
<None Include="resource.base.h"/>
<ClInclude Include="Generated Files/resource.h"/>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Generated Files/FileLocksmithLib.rc"/>
<None Include="FileLocksmithLib.base.rc"/>
</ItemGroup>
<ItemGroup>
<None Include="Resources.resx"/>
</ItemGroup>
<ItemGroup>
<ClCompile Include="FileLocksmith.cpp" />