Skip to content

Commit

Permalink
build_all.bat: support for x64/arm64
Browse files Browse the repository at this point in the history
 - add arm64 build
 - add static tests run on arm64 and x64

After DVL run, copy resulting XML into platform\configuration directory.

Signed-off-by: Lev Stipakov <[email protected]>
  • Loading branch information
lstipakov committed Dec 29, 2021
1 parent 9c5c439 commit 9d4bfef
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions build_all.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set SOLUTION_FILE=ovpn-dco-win.sln
set DRIVER_PROJECT_FILE=ovpn-dco-win.vcxproj

for %%C in ( Release Debug ) do (
for %%P in ( x64 x86 ) do (
for %%P in ( x64 x86 arm64 ) do (
echo Building %SOLUTION_FILE%, configuration %%C, platform %%P
call :runbuild %SOLUTION_FILE% %%C %%P
)
Expand All @@ -23,12 +23,12 @@ if not "%BUILD_DISABLE_SDV%"=="" (
goto :end
)

echo Running SDV for %DRIVER_PROJECT_FILE%, configuration "Release", platform x64
call :runsdv %DRIVER_PROJECT_FILE% "Release" x64
call :runql %DRIVER_PROJECT_FILE% "Release" x64
call :runca %DRIVER_PROJECT_FILE% "Release" x64

call :rundvl %DRIVER_PROJECT_FILE% "Release" x64
for %%P in ( x64 x86 arm64 ) do (
call :runsdv %DRIVER_PROJECT_FILE% "Release" %%P
call :runql %DRIVER_PROJECT_FILE% "Release" %%P
call :runca %DRIVER_PROJECT_FILE% "Release" %%P
call :rundvl %DRIVER_PROJECT_FILE% "Release" %%P
)

:end:

Expand All @@ -43,6 +43,7 @@ msbuild.exe "%~1" /p:Configuration="%~2" /P:Platform=%3
goto :eof

:runsdv
echo Running SDV for %DRIVER_PROJECT_FILE%, configuration "%~2", platform %3
msbuild.exe "%~1" /t:clean /p:Configuration="%~2" /P:Platform=%3

IF ERRORLEVEL 1 (
Expand All @@ -65,6 +66,7 @@ goto :eof

:runql

echo Running CodeQL for %DRIVER_PROJECT_FILE%, configuration "%~2", platform %3
echo "Removing previously created rules database"
rmdir /s/q codeql_db

Expand All @@ -89,6 +91,7 @@ IF ERRORLEVEL 1 (
goto :eof

:runca
echo Running Code Analysis for %DRIVER_PROJECT_FILE%, configuration "%~2", platform %3
msbuild.exe "%~1" /p:Configuration="%~2" /P:Platform=%3 /P:RunCodeAnalysisOnce=True

IF ERRORLEVEL 1 (
Expand All @@ -98,6 +101,7 @@ IF ERRORLEVEL 1 (
goto :eof

:rundvl
echo Creating Driver Verification Log for %DRIVER_PROJECT_FILE%, configuration "%~2", platform %3
msbuild.exe "%~1" /t:dvl /p:Configuration="%~2" /P:Platform=%3

IF ERRORLEVEL 1 (
Expand Down

0 comments on commit 9d4bfef

Please sign in to comment.