diff --git a/build.bat b/build.bat new file mode 100644 index 0000000000000000000000000000000000000000..8d21febcc27004f0b4cf5a0fe07ca320e3128d48 --- /dev/null +++ b/build.bat @@ -0,0 +1,14 @@ +powershell -Command "Invoke-WebRequest https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile C:\TEMP\vs_buildtools.exe" +SET "CURRENTDIR=%cd%" +SET "BUILDDIR=%CURRENTDIR%\build" +SET "BUILDTOOLSDIR=%BUILDDIR%\buildtools" +SET "SIPINSTALLDIR=%BUILDDIR%\sipinstall" +mkdir "%BUILDDIR%" +mkdir "%BUILDTOOLSDIR%" +mkdir "%SIPINSTALLDIR%" +C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath "%BUILDTOOLSDIR%" --add Microsoft.VisualStudio.Workload.AzureBuildTools --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 --remove Microsoft.VisualStudio.Component.Windows81SDK --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 || IF "%ERRORLEVEL%"=="3010" EXIT 0 +"$BUILDTOOLSDIR"\ +tar xvf sip-4.19.3.tar.gz -C "$BUILDDIR" +cd "$BUILDDIR"\sip-* +python "configure.py" -b "$SIPINSTALLDIR" -d "$SIPINSTALLDIR" -e "$SIPINSTALLDIR" --pyidir="$SIPINSTALLDIR" +nmake