-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RGA-1986 - Fix to support Python 3.x
Change-Id: Iacf14aa6c44aba07d921481f1e5976a7dc965ad1
- Loading branch information
Showing
3 changed files
with
110 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!bash | ||
set -x | ||
set -e | ||
export MAJOR=`python RGA/Build/Util/Windows/JenkinsGetVersion.py --major` | ||
export MINOR=`python RGA/Build/Util/Windows/JenkinsGetVersion.py --minor` | ||
export UPDATE=`python RGA/Build/Util/Windows/JenkinsGetVersion.py --update` | ||
export VERSION=$MAJOR.$MINOR.$UPDATE.$BUILD_NUMBER | ||
mkdir -p RGA/Output/rga-$VERSION | ||
mkdir -p RGA/Output/rga-$VERSION/layer | ||
|
||
# make sure clang is symbolic link to clang-7 | ||
cd RGA/Output/bin/LC/OpenCL/bin | ||
rm -f clang | ||
ln -s clang-7 clang | ||
cd ../../../../../.. | ||
|
||
cp -rf RGA/Output/bin/* RGA/Output/rga-$VERSION | ||
mkdir -p RGA/Output/rga-$VERSION/Vulkan/amdvlk/ | ||
cp -f amdvlk64.so RGA/Output/rga-$VERSION/Vulkan/amdvlk/ | ||
|
||
cp RGA/Installer/Linux/rga_layer_* RGA/Output/rga-$VERSION/layer | ||
cp VKLayerRGA-*/* RGA/Output/rga-$VERSION/layer | ||
chmod +x RGA/Output/rga-$VERSION/layer/* | ||
|
||
cp RGA/EULA.txt RGA/Output/rga-$VERSION/ | ||
|
||
cd RGA/Documentation/build | ||
mkdir -p $WORKSPACE/RGA/Output/rga-$VERSION/Documentation/ | ||
cp -R html $WORKSPACE/RGA/Output/rga-$VERSION/Documentation/ | ||
cd $WORKSPACE | ||
|
||
cd RGA/Output | ||
tar -zcvf ../../rga-$VERSION.tgz ./rga-$VERSION --exclude='.[^/]*' --exclude=*.tgz --exclude=*.rar --exclude=*.zip --exclude=*.lib --exclude=*.exe --exclude=*.dll --exclude=*.pdb |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@echo on | ||
REM extract Vulkan RGA Layer files | ||
cd %WORKSPACE% | ||
powershell expand-archive -Path VKLayerRGA-2.1.*.zip -Destination %WORKSPACE%\ | ||
del /f VKLayerRGA*.zip | ||
|
||
REM Build RGA | ||
REM make sure cygwin not in path for windows cmake command | ||
set PATH=C:\Python36;C:\Python36\Scripts;C:\Python36\Tools\Scripts;C:\OpenJDK\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"C:\Program Files\doxygen\bin";C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;"C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\";"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE";"C:\Program Files (x86)\MSBuild\14.0\Bin";"C:\Program Files\CMake\bin";"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin";"C:\Program Files\Git\bin"; | ||
|
||
set RGA_BUILD_DATE=%DATE% | ||
|
||
cd %WORKSPACE% | ||
REM update the RadeonGPUAnalyzerGUI.rc file with current version | ||
for /F "tokens=* USEBACKQ" %%F in (`python %WORKSPACE%\RGA\Build\Util\Windows\JenkinsGetVersion.py --major`) do ( | ||
set MAJOR=%%F | ||
) | ||
for /F "tokens=* USEBACKQ" %%F in (`python %WORKSPACE%\RGA\Build\Util\Windows\JenkinsGetVersion.py --minor`) do ( | ||
set MINOR=%%F | ||
) | ||
for /F "tokens=* USEBACKQ" %%F in (`python %WORKSPACE%\RGA\Build\Util\Windows\JenkinsGetVersion.py --update`) do ( | ||
set UPDATE=%%F | ||
) | ||
python %WORKSPACE%\RGA\Build\Util\Windows\JenkinsSetRcVersion.py -M %MAJOR% -m %MINOR% -b %BUILD_NUMBER% | ||
python %WORKSPACE%\RGA\Build\Util\Windows\JenkinsSetBuildVersion.py -b %BUILD_NUMBER% | ||
|
||
REM clone dependencies without the commit-msg hook | ||
cd %WORKSPACE%\RGA\Build | ||
python FetchDependencies.py --no-hooks | ||
|
||
REM run the prebuild steps | ||
call prebuild.bat --no-fetch --vs 2015 --qt C:\Qt\Qt5.9.2\5.9.2\msvc2015_64 --vk-include C:\VulkanSDK\1.1.97.0\Include --vk-lib C:\VulkanSDK\1.1.97.0\Lib --build release | ||
if not %ERRORLEVEL%==0 ( | ||
echo CMake failed to generate solution file! | ||
exit /b 1 | ||
) | ||
|
||
@echo on | ||
cd %WORKSPACE% | ||
set RGAPATH=%WORKSPACE%\RGA | ||
set BUILDPATH=%RGAPATH%\BuildOutput | ||
set ZIPDIRRGA=%BUILDPATH% | ||
mkdir %ZIPDIRRGA% | ||
mkdir %ZIPDIRRGA%\bin | ||
set ARCHIVE_NAME=RGA-%MAJOR%.%MINOR%.%UPDATE% | ||
set OUTPUT_PATH=%WORKSPACE%\RGA\Output | ||
set ARCH=x64 | ||
set BUILD=%BUILD_NUMBER% | ||
|
||
REM build RGA artifacts | ||
cd %WORKSPACE%\RGA\Build\Util\Windows | ||
call .\JenkinsMSBuildRelease_gui.bat %WORKSPACE%\RGA\Build\Windows\VS2015\Release\RGA.sln x64 2>&1> %WORKSPACE%\RGA_MSBuild.log | ||
if not %ERRORLEVEL%==0 ( | ||
echo Build Failed! | ||
exit /b 1 | ||
) | ||
@echo on | ||
|
||
REM build RGALayerLauncher | ||
cd %WORKSPACE%\RGA\Utils\Vulkan\Windows\RGALayer\ | ||
msbuild /nodeReuse:false /m:4 /t:Build /p:Configuration=Release RGALayerLauncher.sln | ||
|
||
REM Build documentation | ||
@echo on | ||
cd %WORKSPACE%\RGA\Documentation | ||
|
||
call .\make.bat clean | ||
call .\make.bat html | ||
|
||
cd Build | ||
XCopy /i /e /y "html" "..\..\Output\bin\Release\Documentation\html" |