forked from iamaisim/ProjectAirSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
35 lines (28 loc) · 640 Bytes
/
build.cmd
File metadata and controls
35 lines (28 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
REM Copyright (C) Microsoft Corporation.
REM Copyright (C) 2025 IAMAI CONSULTING CORP
REM MIT License.
@echo off
setlocal
set ROOT_DIR=%~dp0
if "%VisualStudioVersion%" == "16.0" goto ver_ok
if "%VisualStudioVersion%" == "17.0" goto ver_ok
echo:
echo:You need to run this command from x64 Native Tools Command Prompt for VS 2019 or VS 2022.
goto :buildfailed_nomsg
:ver_ok
where /q nmake
if errorlevel 1 (
echo:
echo:nmake not found.
goto :buildfailed_nomsg
)
nmake /f build_windows.mk %*
if errorlevel 1 (
goto :buildfailed_nomsg
)
exit /b 0
:buildfailed_nomsg
chdir /d %ROOT_DIR%
echo:
echo:Build Failed.
exit /b 1