forked from FixedBit/lslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreator_win64.bat
27 lines (25 loc) · 1.02 KB
/
creator_win64.bat
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
@echo off
rem :: Check for Visual Studio
reg query "HKEY_CLASSES_ROOT\VisualStudio.DTE.14.0" >> nul 2>&1
if not errorlevel 1 (
rem :: VS2015
call "C:\Program Files (x86)\Microsoft Visual studio 14.0\VC\vcvarsall.bat" amd64
) else (
reg query "HKEY_CLASSES_ROOT\VisualStudio.DTE.15.0" >> nul 2>&1
if not errorlevel 1 (
rem :: VS2017
rem :: NOTE: The instructions contained in the NMakefile are no longer necessary with this method.
pushd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\"
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
popd
) else (
echo You do not appear to have Visual Studio 2015 or 2017 installed.
exit /b 1
)
)
if not exist C:\flexandbison\ ( echo "You need to have the Flex and Bison Packages, please see documentation." && exit /b 1 )
set PATH=%PATH%;C:\flexandbison
nmake /F NMakefile
mkdir binary\windows64\
move lslint.exe binary\windows64\
nmake /F NMakefile clean