-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjustdoit.bat
96 lines (75 loc) · 2.04 KB
/
justdoit.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
@echo off
call ShiaLaBeouf.bat
REM search msbuild.exe
REM http://stackoverflow.com/questions/328017/path-to-msbuild
set bb.build.msbuild.exe=
for /D %%D in (%SYSTEMROOT%\Microsoft.NET\Framework\v4*) do set msbuild.exe=%%D\MSBuild.exe
if not defined msbuild.exe echo error: can't find MSBuild.exe & goto :eof
if not exist "%msbuild.exe%" echo error: %msbuild.exe%: not found & goto :eof
set projectdir=JPEG-Encoder-SIMD
set projectfile=%projectdir%\JPEG-Encoder-SIMD.vcxproj
set msbuildCMD=/p:Configuration=Release /t:rebuild
echo.
echo --=== Building with MSVC 14.0 ===--
%msbuild.exe% build\vs14\%projectfile% %msbuildCMD%
set msvc14=%errorlevel%
echo --=== End building with MSVC 14.0 ===--
echo.
echo.
echo --=== Building with MSVC 15.0 ===--
%msbuild.exe% build\vs15\%projectfile% %msbuildCMD%
set msvc15=%errorlevel%
echo --=== End building with MSVC 15.0 ===--
echo.
:clang
echo.
echo --=== Begin building with Clang ===--
%msbuild.exe% build\clang\%projectfile% %msbuildCMD%
set clang=%errorlevel%
echo --=== End building with Clang ===--
echo.
:intel
echo.
echo --=== Begin building with Intel Compiler ===--
%msbuild.exe% build\intel\%projectfile% %msbuildCMD%
set intel=%errorlevel%
echo --=== End building with Intel Compiler ===--
echo.
:gcc
echo.
echo --=== Begin building with GCC ===--
mingw32-make --directory=build\gcc\ --always-make
set gcc=%errorlevel%
echo --=== End building with GCC ===--
echo.
if %msvc14% == 0 (
echo Running MSVC 14.0
build\vs14\%projectdir%\Release\JPEG-Encoder-SIMD.exe %*
) else (
echo Skipping MSVC 14.0
)
if %msvc15% == 0 (
echo Running MSVC 15.0
build\vs15\%projectdir%\Release\JPEG-Encoder-SIMD.exe %*
) else (
echo Skipping MSVC 15.0
)
if %clang% == 0 (
echo Running Clang
build\clang\%projectdir%\Release\JPEG-Encoder-SIMD.exe %*
) else (
echo Skipping Clang
)
if %intel% == 0 (
echo Running Intel
build\intel\%projectdir%\Release\JPEG-Encoder-SIMD.exe %*
) else (
echo Skipping Intel
)
if %gcc% == 0 (
echo Running GCC
build\gcc\%projectdir%\JPEG-Encoder-SIMD.exe %*
) else (
echo Skipping GCC
)
:eof