-
Notifications
You must be signed in to change notification settings - Fork 49
/
fmake.bat
38 lines (30 loc) · 1017 Bytes
/
fmake.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
28
29
30
31
32
33
34
35
36
37
38
set PROJECT=%1
if "%M_VCVARS%" == "" set M_VCVARS="0"
:comp_vc14_userdefined
rem ++ everything is set for compiling
if NOT "%VSINSTALLDIR%"=="" goto comp_vc14_set7
echo "Trying to set Visual Studio Settings for architecture : x64"
@if exist "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" goto comp_vc14_set6
goto comp_vc14_compile
:comp_vc14_set6
echo "found environment variables for x64"
if %M_VCVARS%=="1" goto comp_vc14_compile
set M_VCVARS="1"
REM optie is x86 (alja) of x86_amd64 (Pascal voor C)
call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
if NOT "%VSINSTALLDIR%"=="" goto comp_vc14_compile
:comp_vc14_set7
if %M_VCVARS%=="1" goto comp_vc14_compile
set M_VCVARS="1"
call "%VSINSTALLDIR%\vcvarsall.bat" x86_amd64
goto comp_vc14_compile
:comp_vc14_compile
REM ++ ready to compile
echo Using Microsoft compiler (vs2015 - v14)
call devenv.com %PROJECT% /Build "Release|win32"
if errorlevel 1 goto failure
goto end
:end
exit /b 0
:failure
echo: Error in compiling