setlocal
call "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat"

cl.exe -std:c++latest -nologo -c -O2 -I"deps/vst3sdk/Windows/include" -I"deps/OpenXR/Windows/include" -MT -EHs-c- -DNDEBUG -D_USE_MATH_DEFINES -DUNICODE -D_HAS_EXCEPTIONS=0 -DXR_USE_GRAPHICS_API_OPENGL -GS- -utf-8 -bigobj shr3d.cpp

rc.exe -nologo -fo shr3d.res res/shr3d.rc

link.exe -OUT:"Shr3D.exe" -SUBSYSTEM:WINDOWS -STACK:"4194304" -NOEXP -NOIMPLIB -NOLOGO -manifest:embed -manifestinput:res/shr3d.manifest "deps/vst3sdk/Windows/lib/base.lib" "deps/vst3sdk/Windows/lib/pluginterfaces.lib" "deps/vst3sdk/Windows/lib/sdk_hosting.lib" "deps/vst3sdk/Windows/lib/sdk_common.lib" "deps/OpenXR/Windows/lib/openxr_loader.lib" "winmm.lib" "opengl32.lib" "user32.lib" "gdi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "comdlg32.lib" "advapi32.lib" "version.lib" "imm32.lib" "Setupapi.lib" "Normaliz.lib" "Crypt32.lib" "Wldap32.lib" "Ws2_32.lib" shr3d.obj shr3d.res

del shr3d.obj
del shr3d.res
