-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
149 changed files
with
4,221 additions
and
2,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
REM RGA | ||
REM "RGA_ROOT" is passed in to this build script from Jenkins | ||
REM "SOLUTION_PATH" is passed in to this build script from Jenkins | ||
REM "ARCH" is passed in to this build script from Jenkins (must be "x64" or "x86") | ||
REM "ARCHIVE_NAME" is passed in to this build script from Jenkins | ||
REM | ||
REM Usage: | ||
REM cd RGA_ROOT\RGA\Build | ||
REM call WindowsBuild.bat RGA_ROOT <solution-path> <x86|x64> <archive-name> | ||
REM | ||
@echo on | ||
|
||
set RGA_ROOT=%1 | ||
set SOLUTION_PATH=%2 | ||
set ARCH=%3 | ||
set ARCHIVE_NAME=%4 | ||
echo RGA_ROOT %RGA_ROOT% %SOLUTION_PATH% %ARCH% %ARCHIVE_NAME% | ||
|
||
set CONFIG=Release | ||
set RGAPATH="%RGA_ROOT%\RGA" | ||
set BUILDPATH=%RGAPATH%\BuildOutput | ||
set OUTPUT_PATH=%RGAPATH%\output | ||
|
||
REM initialize zip file target for CodeXL bits | ||
echo "Initialize folders for zip package" | ||
set ZIPDIRRGA=%BUILDPATH% | ||
MKDIR %ZIPDIRRGA% | ||
MKDIR %ZIPDIRRGA%\bin | ||
|
||
REM build release | ||
call "%VS140COMNTOOLS%\vsvars32.bat" | ||
cd %RGAPATH%\Build | ||
echo "Clean the build" | ||
call JenkinsMSBuildClean.bat %SOLUTION_PATH% %ARCH% %CONFIG% | ||
if not %ERRORLEVEL%==0 ( | ||
echo CLEAN FAILED! | ||
exit 1 | ||
) | ||
echo "Build Release" | ||
call JenkinsMSBuildRelease.bat %SOLUTION_PATH% %ARCH% | ||
if not %ERRORLEVEL%==0 ( | ||
echo BUILD FAILED! | ||
exit 1 | ||
) | ||
echo "Build Complete" | ||
|
||
cd %WORKSPACE% | ||
REM Copy release binaries to the zip file dir | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\rga.exe" "%ZIPDIRRGA%\bin\rga.exe*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\VirtualContext.exe" "%ZIPDIRRGA%\bin\%ARCH%\VirtualContext.exe*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\amdspv.exe" "%ZIPDIRRGA%\bin\%ARCH%\amdspv.exe*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\spvgen.dll" "%ZIPDIRRGA%\bin\%ARCH%\spvgen.dll*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\shae.exe" "%ZIPDIRRGA%\bin\%ARCH%\shae.exe*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\RGADX11.exe" "%ZIPDIRRGA%\bin\%ARCH%\RGADX11.exe*" | ||
XCopy /e "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\ROCm" "%ZIPDIRRGA%\bin\%ARCH%\ROCm\" | ||
XCopy /i /e "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\Documentation" "%ZIPDIRRGA%\bin\Documentation" | ||
|
||
REM Copy the system d3d compiler | ||
XCopy "C:\Program Files (x86)\Windows Kits\10\bin\%ARCH%\d3dcompiler_47.dll" "%ZIPDIRRGA%\bin\%ARCH%\d3dcompiler_47.dll*" | ||
|
||
REM Copy the VC++ Redistributable package binaries | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%ARCH%\Microsoft.VC140.CRT\concrt140.dll" "%ZIPDIRRGA%\bin\concrt140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%ARCH%\Microsoft.VC140.CRT\msvcp140.dll" "%ZIPDIRRGA%\bin\msvcp140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%ARCH%\Microsoft.VC140.CRT\vccorlib140.dll" "%ZIPDIRRGA%\bin\vccorlib140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%ARCH%\Microsoft.VC140.CRT\vcruntime140.dll" "%ZIPDIRRGA%\bin\vcruntime140.dll*" | ||
|
||
REM create zip package | ||
cd %ZIPDIRRGA% | ||
powershell compress-archive -DestinationPath %BUILDPATH%\%ARCHIVE_NAME%.%BUILD_NUMBER%.zip -Path .\bin | ||
REM RGA | ||
REM "RGA_ROOT" is passed in to this build script from Jenkins | ||
REM "SOLUTION_PATH" is passed in to this build script from Jenkins | ||
REM "ARCH" is passed in to this build script from Jenkins (must be "x64" or "x86") | ||
REM "ARCHIVE_NAME" is passed in to this build script from Jenkins | ||
REM | ||
REM Usage: | ||
REM cd RGA_ROOT\RGA\Build | ||
REM call WindowsBuild.bat RGA_ROOT <solution-path> <x86|x64> <archive-name> | ||
REM | ||
@echo on | ||
|
||
set RGA_ROOT=%1 | ||
set SOLUTION_PATH=%2 | ||
set ARCH=%3 | ||
set ARCHIVE_NAME=%4 | ||
echo RGA_ROOT %RGA_ROOT% %SOLUTION_PATH% %ARCH% %ARCHIVE_NAME% | ||
|
||
set CONFIG=Release | ||
set RGAPATH="%RGA_ROOT%\RGA" | ||
set BUILDPATH=%RGAPATH%\BuildOutput | ||
set OUTPUT_PATH=%RGAPATH%\output | ||
|
||
REM initialize zip file target for CodeXL bits | ||
echo "Initialize folders for zip package" | ||
set ZIPDIRRGA=%BUILDPATH% | ||
MKDIR %ZIPDIRRGA% | ||
MKDIR %ZIPDIRRGA%\bin | ||
|
||
REM build release | ||
call "%VS140COMNTOOLS%\vsvars32.bat" | ||
cd %RGAPATH%\Build | ||
echo "Clean the build" | ||
call JenkinsMSBuildClean.bat %SOLUTION_PATH% %ARCH% %CONFIG% | ||
if not %ERRORLEVEL%==0 ( | ||
echo CLEAN FAILED! | ||
exit 1 | ||
) | ||
echo "Build Release" | ||
call JenkinsMSBuildRelease.bat %SOLUTION_PATH% %ARCH% | ||
if not %ERRORLEVEL%==0 ( | ||
echo BUILD FAILED! | ||
exit 1 | ||
) | ||
echo "Build Complete" | ||
|
||
cd %WORKSPACE% | ||
REM Copy release binaries to the zip file dir | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\rga.exe" "%ZIPDIRRGA%\bin\rga.exe*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\VirtualContext.exe" "%ZIPDIRRGA%\bin\%ARCH%\VirtualContext.exe*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\amdspv.exe" "%ZIPDIRRGA%\bin\%ARCH%\amdspv.exe*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\spvgen.dll" "%ZIPDIRRGA%\bin\%ARCH%\spvgen.dll*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\shae.exe" "%ZIPDIRRGA%\bin\%ARCH%\shae.exe*" | ||
XCopy "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\RGADX11.exe" "%ZIPDIRRGA%\bin\%ARCH%\RGADX11.exe*" | ||
XCopy /e "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\%ARCH%\LC" "%ZIPDIRRGA%\bin\%ARCH%\LC\" | ||
XCopy /i /e "%OUTPUT_PATH%\%ARCH%\bin\%CONFIG%\Documentation" "%ZIPDIRRGA%\bin\Documentation" | ||
|
||
REM Copy the system d3d compiler | ||
XCopy "C:\Program Files (x86)\Windows Kits\10\bin\%ARCH%\d3dcompiler_47.dll" "%ZIPDIRRGA%\bin\%ARCH%\d3dcompiler_47.dll*" | ||
|
||
REM Copy the VC++ Redistributable package binaries | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%ARCH%\Microsoft.VC140.CRT\concrt140.dll" "%ZIPDIRRGA%\bin\concrt140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%ARCH%\Microsoft.VC140.CRT\msvcp140.dll" "%ZIPDIRRGA%\bin\msvcp140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%ARCH%\Microsoft.VC140.CRT\vccorlib140.dll" "%ZIPDIRRGA%\bin\vccorlib140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\%ARCH%\Microsoft.VC140.CRT\vcruntime140.dll" "%ZIPDIRRGA%\bin\vcruntime140.dll*" | ||
|
||
REM create zip package | ||
cd %ZIPDIRRGA% | ||
powershell compress-archive -DestinationPath %BUILDPATH%\%ARCHIVE_NAME%.%BUILD_NUMBER%.zip -Path .\bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,49 @@ | ||
@echo off | ||
|
||
rem Make all variables defined in this script local. | ||
SETLOCAL | ||
|
||
set OUTPUT_DIR=%1 | ||
|
||
rem Parse arguments | ||
rem if (%2 == "-debug" || %3 == "-debug) | ||
IF "%2"=="-debug" goto :set_debug | ||
IF "%3"=="-debug" goto :set_debug | ||
goto :no_debug | ||
|
||
:set_debug | ||
set DEBUG=TRUE | ||
|
||
:no_debug | ||
|
||
IF "%2"=="-internal" goto :set_internal | ||
IF "%3"=="-internal" goto :set_internal | ||
goto :no_internal | ||
|
||
:set_internal | ||
set INTERNAL=TRUE | ||
|
||
:no_internal | ||
|
||
rem Create the output folders: | ||
IF NOT exist %OUTPUT_DIR%\ mkdir %OUTPUT_DIR%\ | ||
IF NOT exist %OUTPUT_DIR%\x64\ mkdir %OUTPUT_DIR%\x64\ | ||
IF NOT exist %OUTPUT_DIR%\x64\DX12\ mkdir %OUTPUT_DIR%\x64\DX12\ | ||
IF NOT exist %OUTPUT_DIR%\x64\DX12\DXC\ mkdir %OUTPUT_DIR%/x64/DX12/DXC | ||
echo | ||
|
||
XCopy /r /d /y "..\..\..\Core\OpenGL\VirtualContext\Release\win64\VirtualContext.exe" "%OUTPUT_DIR%\x64\" | ||
XCopy /r /d /y "..\..\..\Core\ShaderAnalysis\Windows\x86\shae.exe" "%OUTPUT_DIR%\x64\" | ||
XCopy /r /d /y "..\..\..\Core\DX\DX10\bin\RGADX11.exe" "%OUTPUT_DIR%\x64\" | ||
XCopy /r /e /d /y "..\..\..\Core\ROCm\OpenCL\win64" "%OUTPUT_DIR%\x64\ROCm\OpenCL\" | ||
XCopy /r /d /y "..\..\..\Core\ROCm\OpenCL\additional-targets" "%OUTPUT_DIR%\x64\ROCm\OpenCL\" | ||
XCopy /r /e /d /y "..\..\..\Core\Vulkan\tools\Win64\bin" "%OUTPUT_DIR%\x64\Vulkan\bin\" | ||
XCopy /r /e /d /y "..\..\..\Core\DX12\DXC\*" "%OUTPUT_DIR%\x64\DX12\DXC\" | ||
XCopy /r /d /y "..\..\..\License.txt" "%OUTPUT_DIR%\" | ||
XCopy /r /d /y "..\..\..\RGAThirdPartyLicenses.txt" "%OUTPUT_DIR%\" | ||
XCopy /r /d /y "..\..\..\..\Common\Src\UpdateCheckAPI\AMDToolsDownloader\Windows\AMDToolsDownloader.exe" "%OUTPUT_DIR%\" | ||
|
||
XCopy /r /d /y "..\..\..\Core\VulkanOffline\win64\amdspv.exe" "%OUTPUT_DIR%\x64\" | ||
XCopy /r /d /y "..\..\..\Core\VulkanOffline\win64\spvgen.dll" "%OUTPUT_DIR%\x64\" | ||
@echo off | ||
|
||
rem Make all variables defined in this script local. | ||
SETLOCAL | ||
|
||
set OUTPUT_DIR=%1 | ||
|
||
rem Parse arguments | ||
rem if (%2 == "-debug" || %3 == "-debug) | ||
IF "%2"=="-debug" goto :set_debug | ||
IF "%3"=="-debug" goto :set_debug | ||
goto :no_debug | ||
|
||
:set_debug | ||
set DEBUG=TRUE | ||
|
||
:no_debug | ||
|
||
IF "%2"=="-internal" goto :set_internal | ||
IF "%3"=="-internal" goto :set_internal | ||
goto :no_internal | ||
|
||
:set_internal | ||
set INTERNAL=TRUE | ||
|
||
:no_internal | ||
|
||
rem Create the output folders: | ||
IF NOT exist %OUTPUT_DIR%\ mkdir %OUTPUT_DIR%\ | ||
IF NOT exist %OUTPUT_DIR%\x64\ mkdir %OUTPUT_DIR%\x64\ | ||
IF NOT exist %OUTPUT_DIR%\x64\DX12\ mkdir %OUTPUT_DIR%\x64\DX12\ | ||
IF NOT exist %OUTPUT_DIR%\x64\DX12\DXC\ mkdir %OUTPUT_DIR%\x64\DX12\DXC | ||
IF NOT exist %OUTPUT_DIR%\x64\LC\Disassembler\ mkdir %OUTPUT_DIR%\LC\Disassembler\ | ||
echo | ||
|
||
XCopy /r /d /y "..\..\..\Core\OpenGL\VirtualContext\Release\win64\VirtualContext.exe" "%OUTPUT_DIR%\x64\" | ||
XCopy /r /d /y "..\..\..\Core\ShaderAnalysis\Windows\x64\shae.exe" "%OUTPUT_DIR%\x64\" | ||
XCopy /r /d /y "..\..\..\Core\DX\DX10\bin\RGADX11.exe" "%OUTPUT_DIR%\x64\" | ||
XCopy /r /e /d /y "..\..\..\Core\LC\OpenCL\win64" "%OUTPUT_DIR%\x64\LC\OpenCL\" | ||
XCopy /r /d /y "..\..\..\Core\LC\OpenCL\additional-targets" "%OUTPUT_DIR%\x64\LC\OpenCL\" | ||
XCopy /r /d /y "..\..\..\Core\LC\Disassembler\Windows\amdgpu-dis.exe" "%OUTPUT_DIR%\x64\LC\Disassembler\" | ||
XCopy /r /e /d /y "..\..\..\Core\Vulkan\tools\Win64\bin" "%OUTPUT_DIR%\x64\Vulkan\bin\" | ||
XCopy /r /e /d /y "..\..\..\Core\DX12\DXC\*" "%OUTPUT_DIR%\x64\DX12\DXC\" | ||
XCopy /r /d /y "..\..\..\License.txt" "%OUTPUT_DIR%\" | ||
XCopy /r /d /y "..\..\..\RGAThirdPartyLicenses.txt" "%OUTPUT_DIR%\" | ||
XCopy /r /d /y "..\..\..\..\Common\Src\UpdateCheckAPI\AMDToolsDownloader\Windows\AMDToolsDownloader.exe" "%OUTPUT_DIR%\" | ||
|
||
XCopy /r /d /y "..\..\..\Core\VulkanOffline\win64\amdspv.exe" "%OUTPUT_DIR%\x64\" | ||
XCopy /r /d /y "..\..\..\Core\VulkanOffline\win64\spvgen.dll" "%OUTPUT_DIR%\x64\" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.