microsoft/onnxruntime-extensions

Public

mirrored from https://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
e8dcc41497ab56e4a60f2ceff5a552e2c91e2d49

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

build.bat

26lines · modecode

1@ECHO OFF
2ECHO Copy this file to mybuild.bat and make the changes as you needs
3SETLOCAL ENABLEDELAYEDEXPANSION
4
5set VCVARS="NOT/EXISTED"
6FOR %%I in (Enterprise Professional Community BuildTools^
7 ) DO IF EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\%%I\VC\Auxiliary\Build\vcvars64.bat" (
8 SET VCVARS="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\%%I\VC\Auxiliary\Build\vcvars64.bat" )
9
10IF NOT EXIST %VCVARS% GOTO :NOT_FOUND
11ECHO Found %VCVARS%
12CALL %VCVARS%
13mkdir .\out\Windows\ 2>NUL
14cd out\Windows
15cmake -G "Visual Studio 16 2019" -A x64 %* ..\..\
16IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
17cmake --build . --config RelWithDebInfo
18IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
19cd ..\..
20GOTO :EOF
21
22:NOT_FOUND
23ECHO "No Microsoft Visual Studio 2019 installation found!"
24EXIT /B 1
25
26ENDLOCAL