From 83ee449b1b1f3930e4d514491e91a08048936032 Mon Sep 17 00:00:00 2001 From: seraphima Date: Wed, 3 Jul 2024 20:43:32 +0200 Subject: [PATCH] projects common lib --- PowerToys.sln | 19 +++ .../ProjectsLauncher/ProjectsLauncher.vcxproj | 6 +- .../Projects/ProjectsLib/ProjectsLib.vcxproj | 49 +++++++ .../ProjectsLib/ProjectsLib.vcxproj.filters | 27 ++++ .../Projects/ProjectsLib/Resource.resx | 123 ++++++++++++++++++ src/modules/Projects/ProjectsLib/pch.cpp | 5 + src/modules/Projects/ProjectsLib/pch.h | 10 ++ .../ProjectsSnapshotTool.vcxproj | 6 +- 8 files changed, 239 insertions(+), 6 deletions(-) create mode 100644 src/modules/Projects/ProjectsLib/ProjectsLib.vcxproj create mode 100644 src/modules/Projects/ProjectsLib/ProjectsLib.vcxproj.filters create mode 100644 src/modules/Projects/ProjectsLib/Resource.resx create mode 100644 src/modules/Projects/ProjectsLib/pch.cpp create mode 100644 src/modules/Projects/ProjectsLib/pch.h diff --git a/PowerToys.sln b/PowerToys.sln index ed6a86dace..a67288a272 100644 --- a/PowerToys.sln +++ b/PowerToys.sln @@ -605,6 +605,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "projects-common", "projects EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ProjectsModuleInterface", "src\modules\Projects\ProjectsModuleInterface\ProjectsModuleInterface.vcxproj", "{45285DF2-9742-4ECA-9AC9-58951FC26489}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ProjectsLib", "src\modules\Projects\ProjectsLib\ProjectsLib.vcxproj", "{B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -3423,6 +3425,22 @@ Global {45285DF2-9742-4ECA-9AC9-58951FC26489}.Release|x64.Build.0 = Release|x64 {45285DF2-9742-4ECA-9AC9-58951FC26489}.Release|x86.ActiveCfg = Release|x64 {45285DF2-9742-4ECA-9AC9-58951FC26489}.Release|x86.Build.0 = Release|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Debug|Any CPU.ActiveCfg = Debug|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Debug|Any CPU.Build.0 = Debug|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Debug|ARM64.Build.0 = Debug|ARM64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Debug|x64.ActiveCfg = Debug|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Debug|x64.Build.0 = Debug|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Debug|x86.ActiveCfg = Debug|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Debug|x86.Build.0 = Debug|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Release|Any CPU.ActiveCfg = Release|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Release|Any CPU.Build.0 = Release|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Release|ARM64.ActiveCfg = Release|ARM64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Release|ARM64.Build.0 = Release|ARM64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Release|x64.ActiveCfg = Release|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Release|x64.Build.0 = Release|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Release|x86.ActiveCfg = Release|x64 + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332}.Release|x86.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -3645,6 +3663,7 @@ Global {3D63307B-9D27-44FD-B033-B26F39245B85} = {A2221D7E-55E7-4BEA-90D1-4F162D670BBF} {BE126CBB-AE12-406A-9837-A05ACFCA57A7} = {A2221D7E-55E7-4BEA-90D1-4F162D670BBF} {45285DF2-9742-4ECA-9AC9-58951FC26489} = {A2221D7E-55E7-4BEA-90D1-4F162D670BBF} + {B31FCC55-B5A4-4EA7-B414-2DCEAE6AF332} = {A2221D7E-55E7-4BEA-90D1-4F162D670BBF} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {C3A2F9D1-7930-4EF4-A6FC-7EE0A99821D0} diff --git a/src/modules/Projects/ProjectsLauncher/ProjectsLauncher.vcxproj b/src/modules/Projects/ProjectsLauncher/ProjectsLauncher.vcxproj index f096291e15..d28725be22 100644 --- a/src/modules/Projects/ProjectsLauncher/ProjectsLauncher.vcxproj +++ b/src/modules/Projects/ProjectsLauncher/ProjectsLauncher.vcxproj @@ -143,12 +143,12 @@ {caba8dfb-823b-4bf2-93ac-3f31984150d9} - - {d9b8fc84-322a-4f9f-bbb9-20915c47ddfd} - {6955446d-23f7-4023-9bb3-8657f904af99} + + {b31fcc55-b5a4-4ea7-b414-2dceae6af332} + diff --git a/src/modules/Projects/ProjectsLib/ProjectsLib.vcxproj b/src/modules/Projects/ProjectsLib/ProjectsLib.vcxproj new file mode 100644 index 0000000000..41e95bf188 --- /dev/null +++ b/src/modules/Projects/ProjectsLib/ProjectsLib.vcxproj @@ -0,0 +1,49 @@ + + + + 16.0 + {b31fcc55-b5a4-4ea7-b414-2dceae6af332} + Win32Proj + ProjectsLib + ProjectsLib + + + + StaticLibrary + v143 + + + + + + + + + + + + ..\..\..\..\$(Platform)\$(Configuration)\ + + + + _LIB;%(PreprocessorDefinitions) + ..\;..\..\..\common\inc;..\..\..\common\Telemetry;..\..\;..\..\..\;%(AdditionalIncludeDirectories) + + + + + + + + Create + + + + + {d9b8fc84-322a-4f9f-bbb9-20915c47ddfd} + + + + + + \ No newline at end of file diff --git a/src/modules/Projects/ProjectsLib/ProjectsLib.vcxproj.filters b/src/modules/Projects/ProjectsLib/ProjectsLib.vcxproj.filters new file mode 100644 index 0000000000..5ceea4c757 --- /dev/null +++ b/src/modules/Projects/ProjectsLib/ProjectsLib.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Header Files + + + + + Source Files + + + \ No newline at end of file diff --git a/src/modules/Projects/ProjectsLib/Resource.resx b/src/modules/Projects/ProjectsLib/Resource.resx new file mode 100644 index 0000000000..087c56e9e9 --- /dev/null +++ b/src/modules/Projects/ProjectsLib/Resource.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Project + + \ No newline at end of file diff --git a/src/modules/Projects/ProjectsLib/pch.cpp b/src/modules/Projects/ProjectsLib/pch.cpp new file mode 100644 index 0000000000..64b7eef6d6 --- /dev/null +++ b/src/modules/Projects/ProjectsLib/pch.cpp @@ -0,0 +1,5 @@ +// pch.cpp: source file corresponding to the pre-compiled header + +#include "pch.h" + +// When you are using pre-compiled headers, this source file is necessary for compilation to succeed. diff --git a/src/modules/Projects/ProjectsLib/pch.h b/src/modules/Projects/ProjectsLib/pch.h new file mode 100644 index 0000000000..dba977e716 --- /dev/null +++ b/src/modules/Projects/ProjectsLib/pch.h @@ -0,0 +1,10 @@ +// pch.h: This is a precompiled header file. +// Files listed below are compiled only once, improving build performance for future builds. +// This also affects IntelliSense performance, including code completion and many code browsing features. +// However, files listed here are ALL re-compiled if any one of them is updated between builds. +// Do not add files here that you will be updating frequently as this negates the performance advantage. + +#ifndef PCH_H +#define PCH_H + +#endif //PCH_H diff --git a/src/modules/Projects/ProjectsSnapshotTool/ProjectsSnapshotTool.vcxproj b/src/modules/Projects/ProjectsSnapshotTool/ProjectsSnapshotTool.vcxproj index 76f754072e..35396b5ada 100644 --- a/src/modules/Projects/ProjectsSnapshotTool/ProjectsSnapshotTool.vcxproj +++ b/src/modules/Projects/ProjectsSnapshotTool/ProjectsSnapshotTool.vcxproj @@ -143,12 +143,12 @@ {caba8dfb-823b-4bf2-93ac-3f31984150d9} - - {d9b8fc84-322a-4f9f-bbb9-20915c47ddfd} - {6955446d-23f7-4023-9bb3-8657f904af99} + + {b31fcc55-b5a4-4ea7-b414-2dceae6af332} +