-
Notifications
You must be signed in to change notification settings - Fork 49
/
RunOACR.bat
62 lines (50 loc) · 2.49 KB
/
RunOACR.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
@echo off
cd %~dp0
@setlocal ENABLEEXTENSIONS
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
if /i '%OACR_Path%' == '' (
echo.
echo ERROR! OACR_Path variable must be set to generate OACR files!
echo.
goto :EOF
)
if /i '%ARIA_Root%' == '' (
echo.
echo ERROR! ARIA_Root variable must be set to generate OACR files!
echo.
goto :EOF
)
set Path=%Path%;%OACR_Path%;
set ClToolExe=oacrcl.exe
set CscToolExe=oacrcsc.exe
if /i '%ARIA_OutputRoot%' == '' (
set ARIA_OutputRoot=%Aria_Root%\solutions\out
)
call oacr clean /all
call oacr stop
call oacr set on
if exist %ARIA_OutputRoot%\oacr rd /s /q %ARIA_OutputRoot%\oacr
echo ***************************************************************************************************
echo ***************************************************************************************************
echo ** Building projects using MSBuild... **
echo ***************************************************************************************************
echo ***************************************************************************************************
set MAXCPUCOUNT=%NUMBER_OF_PROCESSORS%
set platform=
echo ***************************************************************************************************
echo ***************************************************************************************************
echo ** Running OACR on Win32 Release ... **
echo ***************************************************************************************************
echo ***************************************************************************************************
msbuild sqlite\sqlite.vcxproj /maxcpucount:1 /detailedsummary /p:Configuration=release /p:Platform=Win32 /p:RunOACR=Yes
msbuild sqliteUWP\sqlite-uwp.vcxproj /maxcpucount:1 /detailedsummary /p:Configuration=release /p:Platform=Win32 /p:RunOACR=Yes
msbuild Solutions\lib\aria.vcxproj /maxcpucount:1 /detailedsummary /p:Configuration=release /p:Platform=Win32 /p:RunOACR=Yes
msbuild Solutions\win32-dll\win32-dll.vcxproj /maxcpucount:1 /detailedsummary /p:Configuration=release /p:Platform=Win32 /p:RunOACR=Yes
msbuild Solutions\win10-dll\win10-dll.vcxproj /maxcpucount:1 /detailedsummary /p:Configuration=release /p:Platform=Win32 /p:RunOACR=Yes
call oacr showqueue all
call oacr check all
if /i '%OACR_ShowErrors%' == 'Yes' (
call oacr view /errors
)
call oacr set off
call oacr stop