BuildWinCom.bat 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @echo off
  2. set CMAKE_EXE="C:\Program Files\CMake\bin\cmake.exe"
  3. rem Path to folder where the result should be copied to
  4. rem This should be the path to the folder containing SDKManifest.xml
  5. set DESTINATION="%~dp0\UAP\v0.8.0.0\ExtensionSDKs\ZXingWinRT\1.0.0.0"
  6. pushd %DESTINATION%
  7. set DESTINATION=%CD%
  8. popd
  9. set BUILD_LOC=%~dp0..\..\build_uwp_x86
  10. md %BUILD_LOC%
  11. pushd %BUILD_LOC%
  12. %CMAKE_EXE% -G "Visual Studio 15 2017" -A Win32 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
  13. %CMAKE_EXE% --build . --config Release
  14. %CMAKE_EXE% --build . --config RelWithDebInfo
  15. popd
  16. rd /s /q %BUILD_LOC%
  17. set BUILD_LOC=%~dp0..\..\build_uwp_x64
  18. md %BUILD_LOC%
  19. pushd %BUILD_LOC%
  20. %CMAKE_EXE% -G "Visual Studio 15 2017" -A x64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
  21. %CMAKE_EXE% --build . --config Release
  22. %CMAKE_EXE% --build . --config RelWithDebInfo
  23. popd
  24. rd /s /q %BUILD_LOC%
  25. set BUILD_LOC=%~dp0..\..\build_uwp_arm
  26. md %BUILD_LOC%
  27. pushd %BUILD_LOC%
  28. %CMAKE_EXE% -G "Visual Studio 15 2017" -A ARM -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
  29. %CMAKE_EXE% --build . --config Release
  30. %CMAKE_EXE% --build . --config RelWithDebInfo
  31. popd
  32. rd /s /q %BUILD_LOC%
  33. set BUILD_LOC=%~dp0..\..\build_uwp_arm64
  34. md %BUILD_LOC%
  35. pushd %BUILD_LOC%
  36. %CMAKE_EXE% -G "Visual Studio 15 2017" -A ARM64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
  37. %CMAKE_EXE% --build . --config Release
  38. %CMAKE_EXE% --build . --config RelWithDebInfo
  39. popd
  40. rd /s /q %BUILD_LOC%