summaryrefslogtreecommitdiffstats
path: root/tools/buildsteps/windows/x64-uwp/BuildSetup.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildsteps/windows/x64-uwp/BuildSetup.bat')
-rw-r--r--tools/buildsteps/windows/x64-uwp/BuildSetup.bat18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/buildsteps/windows/x64-uwp/BuildSetup.bat b/tools/buildsteps/windows/x64-uwp/BuildSetup.bat
new file mode 100644
index 0000000..8144248
--- /dev/null
+++ b/tools/buildsteps/windows/x64-uwp/BuildSetup.bat
@@ -0,0 +1,18 @@
+@ECHO OFF
+
+PUSHD %~dp0\..
+CALL vswhere.bat x64 store
+IF ERRORLEVEL 1 (
+ ECHO ERROR! BuildSetup.bat: Something went wrong when calling vswhere.bat
+ POPD
+ EXIT /B 1
+)
+
+SET cmakeGenerator=Visual Studio %vsver%
+SET cmakeArch=x64
+SET TARGET_ARCHITECTURE=x64
+SET TARGET_PLATFORM=%TARGET_ARCHITECTURE%-uwp
+SET cmakeProps=-DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=%UCRTVersion%
+
+CALL BuildSetup.bat %*
+POPD