From 94bf48b67c76e55d54c922a4472b00f9314ba673 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 18 Aug 2020 17:34:06 -0700 Subject: [PATCH] msbuild: refactor stuff out of project files (for dolphin) --- Languages/Languages.vcxproj | 70 ++++++------------- Source/Core/AudioCommon/AudioCommon.vcxproj | 42 ++--------- Source/Core/Common/Common.vcxproj | 42 ++--------- Source/Core/Core/Core.vcxproj | 42 ++--------- Source/Core/DiscIO/DiscIO.vcxproj | 42 ++--------- Source/Core/DolphinNoGUI/DolphinNoGUI.vcxproj | 43 ++---------- Source/Core/DolphinQt/DolphinQt.vcxproj | 47 +++---------- Source/Core/InputCommon/InputCommon.vcxproj | 42 ++--------- Source/Core/UICommon/UICommon.vcxproj | 42 ++--------- .../Core/UpdaterCommon/UpdaterCommon.vcxproj | 52 +++----------- Source/Core/VideoBackends/D3D/D3D.vcxproj | 42 ++--------- Source/Core/VideoBackends/D3D12/D3D12.vcxproj | 42 ++--------- .../VideoBackends/D3DCommon/D3DCommon.vcxproj | 42 ++--------- Source/Core/VideoBackends/Null/Null.vcxproj | 42 ++--------- Source/Core/VideoBackends/OGL/OGL.vcxproj | 42 ++--------- .../VideoBackends/Software/Software.vcxproj | 42 ++--------- .../Core/VideoBackends/Vulkan/Vulkan.vcxproj | 42 ++--------- Source/Core/VideoCommon/VideoCommon.vcxproj | 42 ++--------- Source/Core/WinUpdater/WinUpdater.vcxproj | 43 ++---------- Source/DSPTool/DSPTool.vcxproj | 42 ++--------- Source/PCH/pch.vcxproj | 42 ++--------- Source/UnitTests/UnitTests.vcxproj | 42 ++--------- Source/VSProps/Base.Macros.props | 18 +++++ Source/VSProps/Base.Targets.props | 24 +++++++ Source/VSProps/Base.props | 16 +---- .../VSProps/Configuration.Application.props | 7 ++ Source/VSProps/Configuration.Base.props | 14 ++++ .../VSProps/Configuration.StaticLibrary.props | 7 ++ Source/VSProps/Configuration.Utility.props | 7 ++ 29 files changed, 252 insertions(+), 810 deletions(-) create mode 100644 Source/VSProps/Base.Macros.props create mode 100644 Source/VSProps/Base.Targets.props create mode 100644 Source/VSProps/Configuration.Application.props create mode 100644 Source/VSProps/Configuration.Base.props create mode 100644 Source/VSProps/Configuration.StaticLibrary.props create mode 100644 Source/VSProps/Configuration.Utility.props diff --git a/Languages/Languages.vcxproj b/Languages/Languages.vcxproj index fc5ad9998a..1027c3c1c2 100644 --- a/Languages/Languages.vcxproj +++ b/Languages/Languages.vcxproj @@ -1,23 +1,25 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + + + {0E033BE3-2E08-428E-9AE9-BC673EFA12B5} + + + + + + + + + + + + + + + $(BinaryOutputDir) + @@ -48,36 +50,6 @@ - - {0E033BE3-2E08-428E-9AE9-BC673EFA12B5} - 10.0 - - - - Utility - v142 - - - true - - - false - - - - - - - - - - - - $(BinaryOutputDir) - - - - diff --git a/Source/Core/AudioCommon/AudioCommon.vcxproj b/Source/Core/AudioCommon/AudioCommon.vcxproj index dd3a37f852..cfb43648b2 100644 --- a/Source/Core/AudioCommon/AudioCommon.vcxproj +++ b/Source/Core/AudioCommon/AudioCommon.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {54AA7840-5BEB-4A0C-9452-74BA4CC7FD44} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/Common/Common.vcxproj b/Source/Core/Common/Common.vcxproj index 0679a09ec5..cb027cca2b 100644 --- a/Source/Core/Common/Common.vcxproj +++ b/Source/Core/Common/Common.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {2E6C348C-C75C-4D94-8D1E-9C1FCBF3EFE4} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/Core/Core.vcxproj b/Source/Core/Core/Core.vcxproj index f264587297..89c294cf08 100644 --- a/Source/Core/Core/Core.vcxproj +++ b/Source/Core/Core/Core.vcxproj @@ -1,46 +1,18 @@ - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {E54CF649-140E-4255-81A5-30A673C1FB36} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/DiscIO/DiscIO.vcxproj b/Source/Core/DiscIO/DiscIO.vcxproj index b70e8e3a8c..3d35b3ba50 100644 --- a/Source/Core/DiscIO/DiscIO.vcxproj +++ b/Source/Core/DiscIO/DiscIO.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {160BDC25-5626-4B0D-BDD8-2953D9777FB5} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/DolphinNoGUI/DolphinNoGUI.vcxproj b/Source/Core/DolphinNoGUI/DolphinNoGUI.vcxproj index c1fbaa34fd..1efaccc17e 100644 --- a/Source/Core/DolphinNoGUI/DolphinNoGUI.vcxproj +++ b/Source/Core/DolphinNoGUI/DolphinNoGUI.vcxproj @@ -1,49 +1,20 @@ - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {974E563D-23F8-4E8F-9083-F62876B04E08} - 10.0 - - Application - v142 - Unicode - - - true - - - false - + - - + - - + + - avrt.lib;iphlpapi.lib;winmm.lib;setupapi.lib;rpcrt4.lib;comctl32.lib;Shlwapi.lib;discord-rpc.lib;%(AdditionalDependencies) diff --git a/Source/Core/DolphinQt/DolphinQt.vcxproj b/Source/Core/DolphinQt/DolphinQt.vcxproj index 6761f1f104..d749086fbe 100644 --- a/Source/Core/DolphinQt/DolphinQt.vcxproj +++ b/Source/Core/DolphinQt/DolphinQt.vcxproj @@ -1,51 +1,22 @@ - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + {FA3FA62B-6F58-4B86-9453-4D149940A066} - 10.0 Dolphin - - Application - v142 - Unicode - - - true - - - false - + - - + - - - + + + - - + @@ -551,7 +522,7 @@ - + diff --git a/Source/Core/InputCommon/InputCommon.vcxproj b/Source/Core/InputCommon/InputCommon.vcxproj index b5c9ef0bef..1325ca0eab 100644 --- a/Source/Core/InputCommon/InputCommon.vcxproj +++ b/Source/Core/InputCommon/InputCommon.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {6BBD47CF-91FD-4077-B676-8B76980178A9} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/UICommon/UICommon.vcxproj b/Source/Core/UICommon/UICommon.vcxproj index 4386fbe602..ba1fe12067 100644 --- a/Source/Core/UICommon/UICommon.vcxproj +++ b/Source/Core/UICommon/UICommon.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {604C8368-F34A-4D55-82C8-CC92A0C13254} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/UpdaterCommon/UpdaterCommon.vcxproj b/Source/Core/UpdaterCommon/UpdaterCommon.vcxproj index 02067c225a..b6296570fc 100644 --- a/Source/Core/UpdaterCommon/UpdaterCommon.vcxproj +++ b/Source/Core/UpdaterCommon/UpdaterCommon.vcxproj @@ -1,52 +1,23 @@ - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + - 15.0 {B001D13E-7EAB-4689-842D-801E5ACFFAC5} - UpdaterCommon - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - - - + - + + - + + + {2e6c348c-c75c-4d94-8d1e-9c1fcbf3efe4} @@ -67,9 +38,6 @@ {ff213b23-2c26-4214-9f88-85271e557e87} - - - diff --git a/Source/Core/VideoBackends/D3D/D3D.vcxproj b/Source/Core/VideoBackends/D3D/D3D.vcxproj index 94dc1f1d41..9f2f1b8fe1 100644 --- a/Source/Core/VideoBackends/D3D/D3D.vcxproj +++ b/Source/Core/VideoBackends/D3D/D3D.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {96020103-4BA5-4FD2-B4AA-5B6D24492D4E} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/VideoBackends/D3D12/D3D12.vcxproj b/Source/Core/VideoBackends/D3D12/D3D12.vcxproj index 9201593243..3fcbdb67a7 100644 --- a/Source/Core/VideoBackends/D3D12/D3D12.vcxproj +++ b/Source/Core/VideoBackends/D3D12/D3D12.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {570215B7-E32F-4438-95AE-C8D955F9FCA3} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/VideoBackends/D3DCommon/D3DCommon.vcxproj b/Source/Core/VideoBackends/D3DCommon/D3DCommon.vcxproj index 567710bd25..83b93edd81 100644 --- a/Source/Core/VideoBackends/D3DCommon/D3DCommon.vcxproj +++ b/Source/Core/VideoBackends/D3DCommon/D3DCommon.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {DEA96CF2-F237-4A1A-B32F-C916769EFB50} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/VideoBackends/Null/Null.vcxproj b/Source/Core/VideoBackends/Null/Null.vcxproj index 2c3cac1a43..53ffafa847 100644 --- a/Source/Core/VideoBackends/Null/Null.vcxproj +++ b/Source/Core/VideoBackends/Null/Null.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {53A5391B-737E-49A8-BC8F-312ADA00736F} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/VideoBackends/OGL/OGL.vcxproj b/Source/Core/VideoBackends/OGL/OGL.vcxproj index faf54ef72d..70b1e64a22 100644 --- a/Source/Core/VideoBackends/OGL/OGL.vcxproj +++ b/Source/Core/VideoBackends/OGL/OGL.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {EC1A314C-5588-4506-9C1E-2E58E5817F75} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/VideoBackends/Software/Software.vcxproj b/Source/Core/VideoBackends/Software/Software.vcxproj index 93e7a6c84a..d447824cf4 100644 --- a/Source/Core/VideoBackends/Software/Software.vcxproj +++ b/Source/Core/VideoBackends/Software/Software.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {A4C423AA-F57C-46C7-A172-D1A777017D29} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/VideoBackends/Vulkan/Vulkan.vcxproj b/Source/Core/VideoBackends/Vulkan/Vulkan.vcxproj index 807e2aee31..b472838113 100644 --- a/Source/Core/VideoBackends/Vulkan/Vulkan.vcxproj +++ b/Source/Core/VideoBackends/Vulkan/Vulkan.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {29F29A19-F141-45AD-9679-5A2923B49DA3} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/VideoCommon/VideoCommon.vcxproj b/Source/Core/VideoCommon/VideoCommon.vcxproj index 890dd61e10..f83ef2b4a7 100644 --- a/Source/Core/VideoCommon/VideoCommon.vcxproj +++ b/Source/Core/VideoCommon/VideoCommon.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {3DE9EE35-3E91-4F27-A014-2866AD8C3FE3} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/Core/WinUpdater/WinUpdater.vcxproj b/Source/Core/WinUpdater/WinUpdater.vcxproj index 93bef66f82..a59ef2bedb 100644 --- a/Source/Core/WinUpdater/WinUpdater.vcxproj +++ b/Source/Core/WinUpdater/WinUpdater.vcxproj @@ -1,49 +1,20 @@ - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {E4BECBAB-9C6E-41AB-BB56-F9D70AB6BE03} - 10.0 - - Application - v142 - Unicode - - - true - - - false - + - - + - - + + - Updater diff --git a/Source/DSPTool/DSPTool.vcxproj b/Source/DSPTool/DSPTool.vcxproj index 1145e2f231..11cc86948b 100644 --- a/Source/DSPTool/DSPTool.vcxproj +++ b/Source/DSPTool/DSPTool.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {1970D175-3DE8-4738-942A-4D98D1CDBF64} - 10.0 - - Application - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/PCH/pch.vcxproj b/Source/PCH/pch.vcxproj index 8ed61f8fcd..daa908b4c5 100644 --- a/Source/PCH/pch.vcxproj +++ b/Source/PCH/pch.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {76563A7F-1011-4EAD-B667-7BB18D09568E} - 10.0 - - StaticLibrary - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/UnitTests/UnitTests.vcxproj b/Source/UnitTests/UnitTests.vcxproj index 31f7e3ad38..db0c349495 100644 --- a/Source/UnitTests/UnitTests.vcxproj +++ b/Source/UnitTests/UnitTests.vcxproj @@ -1,46 +1,18 @@  - - - - Debug - ARM64 - - - Debug - x64 - - - Release - ARM64 - - - Release - x64 - - + + + {474661E7-C73A-43A6-AFEE-EE1EC433D49E} - 10.0 - - Application - v142 - Unicode - - - true - - - false - + - - + - - + + diff --git a/Source/VSProps/Base.Macros.props b/Source/VSProps/Base.Macros.props new file mode 100644 index 0000000000..bd57a5978a --- /dev/null +++ b/Source/VSProps/Base.Macros.props @@ -0,0 +1,18 @@ + + + + false + + D + $(SolutionDir)..\ + $(DolphinRootDir)Build\ + $(DolphinRootDir)Binary\ + $(BinaryRootDir)$(Platform)\ + $(DolphinRootDir)Externals\ + $(SolutionDir)Core\ + $(SolutionDir)VSProps\ + + + true + + \ No newline at end of file diff --git a/Source/VSProps/Base.Targets.props b/Source/VSProps/Base.Targets.props new file mode 100644 index 0000000000..7925a455ec --- /dev/null +++ b/Source/VSProps/Base.Targets.props @@ -0,0 +1,24 @@ + + + + + Debug + ARM64 + + + Debug + x64 + + + Release + ARM64 + + + Release + x64 + + + + 10.0 + + \ No newline at end of file diff --git a/Source/VSProps/Base.props b/Source/VSProps/Base.props index 6d95d05cf5..a73f438abf 100644 --- a/Source/VSProps/Base.props +++ b/Source/VSProps/Base.props @@ -1,18 +1,6 @@ - - - - false - - - D - $(SolutionDir)..\ - $(DolphinRootDir)Build\ - $(DolphinRootDir)Binary\ - $(BinaryRootDir)$(Platform)\ - $(DolphinRootDir)Externals\ - $(SolutionDir)Core\ - + + + + + true + + + false + + \ No newline at end of file diff --git a/Source/VSProps/Configuration.StaticLibrary.props b/Source/VSProps/Configuration.StaticLibrary.props new file mode 100644 index 0000000000..162dd946f2 --- /dev/null +++ b/Source/VSProps/Configuration.StaticLibrary.props @@ -0,0 +1,7 @@ + + + + + StaticLibrary + + \ No newline at end of file diff --git a/Source/VSProps/Configuration.Utility.props b/Source/VSProps/Configuration.Utility.props new file mode 100644 index 0000000000..5897ceda06 --- /dev/null +++ b/Source/VSProps/Configuration.Utility.props @@ -0,0 +1,7 @@ + + + + + Utility + + \ No newline at end of file