From 281f7c57898367da64c1f34edd4e9a6b2e012826 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 4 Jul 2021 19:08:55 +1000 Subject: [PATCH] Build: Add UWP configurations --- .gitignore | 4 ++ dep/msvc/vsprops/Base.props | 16 +++++-- dep/msvc/vsprops/Configurations.props | 43 +++++++++++++++++- dep/msvc/vsprops/StaticLibrary.props | 8 +++- dep/msvc/vsprops/Targets.props | 12 ++++- dep/msvc/vsprops/Toolkit.props | 4 +- src/common/common.vcxproj | 20 +++++---- src/frontend-common/frontend-common.props | 6 +-- src/frontend-common/frontend-common.vcxproj | 50 +++++++++++++++------ 9 files changed, 130 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index e49baff2e..a41dabf27 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,7 @@ __pycache__ # other repos /dep/mac + +# UWP crap +Generated Files +/packages diff --git a/dep/msvc/vsprops/Base.props b/dep/msvc/vsprops/Base.props index 1f5d32f77..b43e5326f 100644 --- a/dep/msvc/vsprops/Base.props +++ b/dep/msvc/vsprops/Base.props @@ -30,15 +30,23 @@ - - + + _HAS_EXCEPTIONS=0;%(PreprocessorDefinitions) false - + + + NotUsing + + _UWP;%(PreprocessorDefinitions) + + + + Disabled _DEBUG;%(PreprocessorDefinitions) @@ -67,7 +75,7 @@ true - + MaxSpeed true diff --git a/dep/msvc/vsprops/Configurations.props b/dep/msvc/vsprops/Configurations.props index 9d1cad756..f05c5447d 100644 --- a/dep/msvc/vsprops/Configurations.props +++ b/dep/msvc/vsprops/Configurations.props @@ -49,18 +49,59 @@ Release x64 + + DebugUWP + ARM64 + + + DebugUWP + Win32 + + + DebugUWP + x64 + + + ReleaseUWP + ARM64 + + + ReleaseUWP + Win32 + + + ReleaseUWP + x64 + + + true + + + + $(MSBuildProjectName) $(MSBuildProjectName) - + Win32Proj 10.0 + + true + en-US + 15.0 + true + Windows Store + 10.0 + 10.0.19041.0 + 10.0.17134.0 + + $(SolutionDir)build\$(Configuration)-$(Platform)\ diff --git a/dep/msvc/vsprops/StaticLibrary.props b/dep/msvc/vsprops/StaticLibrary.props index f0cef39c4..6c8f21e65 100644 --- a/dep/msvc/vsprops/StaticLibrary.props +++ b/dep/msvc/vsprops/StaticLibrary.props @@ -8,6 +8,12 @@ StaticLibrary + + true + false + false + + @@ -19,4 +25,4 @@ - \ No newline at end of file + diff --git a/dep/msvc/vsprops/Targets.props b/dep/msvc/vsprops/Targets.props index 490f98933..2d3e2bf8f 100644 --- a/dep/msvc/vsprops/Targets.props +++ b/dep/msvc/vsprops/Targets.props @@ -1,4 +1,14 @@ - \ No newline at end of file + + + + + + 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}. + + + + + diff --git a/dep/msvc/vsprops/Toolkit.props b/dep/msvc/vsprops/Toolkit.props index c2de1e9cb..5babeaf17 100644 --- a/dep/msvc/vsprops/Toolkit.props +++ b/dep/msvc/vsprops/Toolkit.props @@ -6,10 +6,10 @@ false - + true - + false \ No newline at end of file diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj index 797d14ed2..f14160ae9 100644 --- a/src/common/common.vcxproj +++ b/src/common/common.vcxproj @@ -33,8 +33,7 @@ - true - true + true @@ -62,7 +61,9 @@ - + + true + @@ -79,7 +80,9 @@ - + + true + @@ -116,8 +119,7 @@ - true - true + true @@ -140,7 +142,7 @@ - true + true @@ -155,7 +157,9 @@ - + + true + diff --git a/src/frontend-common/frontend-common.props b/src/frontend-common/frontend-common.props index 8cd4b58d0..6cddcadca 100644 --- a/src/frontend-common/frontend-common.props +++ b/src/frontend-common/frontend-common.props @@ -12,7 +12,7 @@ - + WITH_SDL2=1;WITH_DINPUT=1;WITH_DISCORD_PRESENCE=1;%(PreprocessorDefinitions) $(SolutionDir)dep\cubeb\include;$(SolutionDir)dep\discord-rpc\include;%(AdditionalIncludeDirectories) @@ -22,5 +22,5 @@ - - \ No newline at end of file + + diff --git a/src/frontend-common/frontend-common.vcxproj b/src/frontend-common/frontend-common.vcxproj index bc3f13a9f..cddfd6f8d 100644 --- a/src/frontend-common/frontend-common.vcxproj +++ b/src/frontend-common/frontend-common.vcxproj @@ -4,9 +4,13 @@ - + + true + - + + true + @@ -14,7 +18,9 @@ - + + true + @@ -31,9 +37,15 @@ - - - + + true + + + true + + + true + @@ -41,9 +53,13 @@ - + + true + - + + true + @@ -51,7 +67,9 @@ - + + true + @@ -68,9 +86,15 @@ - - - + + true + + + true + + + true + @@ -84,4 +108,4 @@ - + \ No newline at end of file