mmozeiko / pkg2zip

Decrypts PlayStation Vita pkg file and packages to zip archive
The Unlicense
406 stars 89 forks source link

Make build.cmd to work with different types of Visual Studio 2017 (Build Tools, Community, Pro) #28

Open windsurfer1122 opened 5 years ago

windsurfer1122 commented 5 years ago

Please update build.cmd as following to make it more flexible for different VS setups, e.g. in my case I only use VS build tools which are in "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\BuildTools"

@echo off

if not "%VSINSTALLDIR%" == "" goto vsdevcmd_present
echo Please run %~0 inside a Visual Studio 2017 Tools Developer Command Prompt
exit /B

:vsdevcmd_present
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
cd /d "%~dp0"

...
JeffreyO commented 1 month ago

This might help. With CMake, you should be able to just generate the Visual Studio project files.

https://github.com/JeffreyO/pkg2zip/tree/cmake-and-aarch64-port