diff mupdf-source/thirdparty/zxing-cpp/wrappers/winrt/BuildWinCom.bat @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mupdf-source/thirdparty/zxing-cpp/wrappers/winrt/BuildWinCom.bat	Mon Sep 15 11:43:07 2025 +0200
@@ -0,0 +1,47 @@
+@echo off
+
+set CMAKE_EXE="C:\Program Files\CMake\bin\cmake.exe"
+
+rem Path to folder where the result should be copied to
+rem This should be the path to the folder containing SDKManifest.xml
+set DESTINATION="%~dp0\UAP\v0.8.0.0\ExtensionSDKs\ZXingWinRT\1.0.0.0"
+
+pushd %DESTINATION%
+set DESTINATION=%CD%
+popd
+
+set BUILD_LOC=%~dp0..\..\build_uwp_x86
+md %BUILD_LOC%
+pushd %BUILD_LOC%
+%CMAKE_EXE% -G "Visual Studio 15 2017" -A Win32 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
+%CMAKE_EXE% --build . --config Release
+%CMAKE_EXE% --build . --config RelWithDebInfo
+popd
+rd /s /q %BUILD_LOC%
+
+set BUILD_LOC=%~dp0..\..\build_uwp_x64
+md %BUILD_LOC%
+pushd %BUILD_LOC%
+%CMAKE_EXE% -G "Visual Studio 15 2017" -A x64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
+%CMAKE_EXE% --build . --config Release
+%CMAKE_EXE% --build . --config RelWithDebInfo
+popd
+rd /s /q %BUILD_LOC%
+
+set BUILD_LOC=%~dp0..\..\build_uwp_arm
+md %BUILD_LOC%
+pushd %BUILD_LOC%
+%CMAKE_EXE% -G "Visual Studio 15 2017" -A ARM -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
+%CMAKE_EXE% --build . --config Release
+%CMAKE_EXE% --build . --config RelWithDebInfo
+popd
+rd /s /q %BUILD_LOC%
+
+set BUILD_LOC=%~dp0..\..\build_uwp_arm64
+md %BUILD_LOC%
+pushd %BUILD_LOC%
+%CMAKE_EXE% -G "Visual Studio 15 2017" -A ARM64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
+%CMAKE_EXE% --build . --config Release
+%CMAKE_EXE% --build . --config RelWithDebInfo
+popd
+rd /s /q %BUILD_LOC%