-
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
168 changed files
with
34,244 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,51 @@ | ||
// RGA | ||
// "P4ROOT" is passed in to this build script from Jenkins | ||
// "SOLUTION" is passed in to this build script from Jenkins | ||
Define "RGAPATH" "[P4ROOT]\RGA" | ||
Define "BUILDPATH" "[RGAPATH]\BuildOutput" | ||
Always | ||
Log "[P4ROOT]\RGA_Build.log" | ||
Image | ||
// Make zip files for CodeXL bits | ||
Define "ZIPDIRRGA" "[BUILDPATH]" | ||
MKDIR "[ZIPDIRRGA]" | ||
MKDIR "[ZIPDIRRGA]\bin" | ||
Clean | ||
// Clean all files from prior builds - note, this clean section does not need to be called from Jenkins. | ||
BuildSln "[SOLUTION_PATH]" "" "Clean" "Debug_Static|x86" | ||
BuildSln "[SOLUTION_PATH]" "" "Clean" "Debug_Static|x64" | ||
BuildSln "[SOLUTION_PATH]" "" "Clean" "Release_Static|x86" | ||
BuildSln "[SOLUTION_PATH]" "" "Clean" "Release_Static|x64" | ||
// Build the Public Version | ||
Debug | ||
//BuildSln "[SOLUTION_PATH]" "" "Build" "Debug_Static|x86" | ||
BuildSln "[SOLUTION_PATH]" "" "Build" "Debug_Static|x64" | ||
SendBuildErrors "[EMAIL]" "Radeon GPU Analyzer Debug Static Build Failed" | ||
Debug Release | ||
//BuildSln "[SOLUTION_PATH]" "" "Clean" "Debug_Static|x86" | ||
BuildSln "[SOLUTION_PATH]" "" "Clean" "Debug_Static|x64" | ||
Release | ||
//BuildSln "[SOLUTION_PATH]" "" "Build" "Release_Static|x86" | ||
BuildSln "[SOLUTION_PATH]" "" "Build" "Release_Static|x64" | ||
SendBuildErrors "[EMAIL]" "Radeon GPU Analyzer Release Static Build Failed" | ||
Image | ||
// Copy release x86 binaries to the zip file dir | ||
//XCopy "[OUTPUT_PATH]\Release_Static\bin\rga.exe" "[ZIPDIRRGA]\bin" | ||
//XCopy "[OUTPUT_PATH]\Release_Static\bin\x86\VirtualContext.exe" "[ZIPDIRRGA]\bin\x86\VirtualContext.exe*" | ||
//XCopy "[OUTPUT_PATH]\Release_Static\bin\x86\amdspv.exe" "[ZIPDIRRGA]\bin\x86\amdspv.exe*" | ||
//XCopy "[OUTPUT_PATH]\Release_Static\bin\x86\spvgen.dll" "[ZIPDIRRGA]\bin\x86\spvgen.dll*" | ||
//XCopy "[OUTPUT_PATH]\Release_Static\bin\x86\shae.exe" "[ZIPDIRRGA]\bin\x86\shae.exe*" | ||
//XCopy "C:\Program Files (x86)\Windows Kits\10\bin\x86\d3dcompiler_47.dll" "[ZIPDIRRGA]\bin\x86\d3dcompiler_47.dll*" | ||
// Copy release x64 binaries to the zip file dir | ||
XCopy "[OUTPUT_PATH]\Release_Static\bin\rga-x64.exe" "[ZIPDIRRGA]\bin\rga.exe*" | ||
XCopy "[OUTPUT_PATH]\Release_Static\bin\x64\VirtualContext.exe" "[ZIPDIRRGA]\bin\x64\VirtualContext.exe*" | ||
XCopy "[OUTPUT_PATH]\Release_Static\bin\x64\amdspv.exe" "[ZIPDIRRGA]\bin\x64\amdspv.exe*" | ||
XCopy "[OUTPUT_PATH]\Release_Static\bin\x64\spvgen.dll" "[ZIPDIRRGA]\bin\x64\spvgen.dll*" | ||
XCopy "[OUTPUT_PATH]\Release_Static\bin\x64\shae.exe" "[ZIPDIRRGA]\bin\x64\shae.exe*" | ||
XCopy "C:\Program Files (x86)\Windows Kits\10\bin\x64\d3dcompiler_47.dll" "[ZIPDIRRGA]\bin\x64\d3dcompiler_47.dll*" | ||
// Copy the VC++ Redistributable package binaries | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x64\Microsoft.VC140.CRT\concrt140.dll" "[ZIPDIRRGA]\bin\concrt140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x64\Microsoft.VC140.CRT\msvcp140.dll" "[ZIPDIRRGA]\bin\msvcp140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x64\Microsoft.VC140.CRT\vccorlib140.dll" "[ZIPDIRRGA]\bin\vccorlib140.dll*" | ||
XCopy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x64\Microsoft.VC140.CRT\vcruntime140.dll" "[ZIPDIRRGA]\bin\vcruntime140.dll*" | ||
Zip "[BUILDPATH]\RGA.[DATE].[BUILD].zip" "[ZIPDIRRGA]\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 |
---|---|---|
@@ -0,0 +1,146 @@ | ||
#!/usr/local/bin/perl | ||
# | ||
# This program inputs a stream of output generated by gcc builds and filters the build | ||
# output to be less verbous. | ||
# Usage Example: | ||
# scons | perl BuildFilter.pl | ||
# | ||
# Author: Yaki Tebeka | ||
# Date: 26/11/2008 | ||
|
||
|
||
# Iterate the standard input lines until reaching an EOF: | ||
my $currentLine = <STDIN>; | ||
while ($currentLine) | ||
{ | ||
my $wasCurrentLineHandled = 0; | ||
|
||
# Split the current line to its tokens: | ||
my @lineTokens = split(/ /, $currentLine); | ||
|
||
# If the curren line is a compile / link line: | ||
if (($lineTokens[0] =~ /gcc$/) || ($lineTokens[0] =~ /g\+\+$/) || ($lineTokens[0] =~ /\/ld$/)) | ||
{ | ||
# If this is a dynamic module or an application link line: | ||
if (($currentLine =~ /-shared/) || ($currentLine =~ /-L/) || ($lineTokens[0] =~ /\/ld$/)) | ||
{ | ||
# Iterate the tokens, looking for the linked module name: | ||
# (Which appears after a "-o" token) | ||
my $linkedModuleName = "Unknown"; | ||
my $foundModuleNameFlag = 0; | ||
foreach $currentToken (@lineTokens) | ||
{ | ||
if ($foundModuleNameFlag) | ||
{ | ||
$linkedModuleName = $currentToken; | ||
last; | ||
} | ||
|
||
if ($currentToken eq "-o") | ||
{ | ||
$foundModuleNameFlag = 1; | ||
} | ||
} | ||
|
||
# Print a "Linking XX" line: | ||
print "Linking: $linkedModuleName\n"; | ||
|
||
# Mark that the current line was handled: | ||
$wasCurrentLineHandled = 1; | ||
} | ||
else | ||
{ | ||
# This is a compile line: | ||
|
||
# Get the compiled file: | ||
my $compiledFileName = pop(@lineTokens); | ||
|
||
# Print a "Compiling XX" line: | ||
print "Compiling: $compiledFileName"; | ||
|
||
# Mark that the current line was handled: | ||
$wasCurrentLineHandled = 1; | ||
} | ||
} | ||
elsif ($lineTokens[0] eq "ar") | ||
{ | ||
# This is a static library link line: | ||
|
||
# Iterate the tokens, looking for the linked archive name: | ||
# (Which appears after a "r" or "rc" token) | ||
my $linkedArchiveName = "Unknown"; | ||
my $foundArchiveNameFlag = 0; | ||
foreach $currentToken (@lineTokens) | ||
{ | ||
if ($foundArchiveNameFlag) | ||
{ | ||
$linkedArchiveName = $currentToken; | ||
last; | ||
} | ||
|
||
if (($currentToken eq "r") || ($currentToken eq "rc")) | ||
{ | ||
$foundArchiveNameFlag = 1; | ||
} | ||
} | ||
|
||
# If we found the archive name: | ||
if ($foundArchiveNameFlag) | ||
{ | ||
# Print a "Creating static archive XX" line: | ||
print "Creating static archive: $linkedArchiveName\n"; | ||
|
||
# Mark that the current line was handled: | ||
$wasCurrentLineHandled = 1; | ||
} | ||
} | ||
elsif ($lineTokens[0] eq "install_name_tool") | ||
{ | ||
# This is an install name tool line: | ||
|
||
# Iterate the tokens, looking for the changed install name: | ||
# (Which appears after a "-change" token) | ||
my $changedInstallName = "Unknown"; | ||
my $foundChangedInstallName = 0; | ||
foreach $currentToken (@lineTokens) | ||
{ | ||
if ($foundChangedInstallName) | ||
{ | ||
$changedInstallName = $currentToken; | ||
last; | ||
} | ||
|
||
if ($currentToken eq "-change") | ||
{ | ||
$foundChangedInstallName = 1; | ||
} | ||
} | ||
|
||
# If we found the archive name: | ||
if ($foundChangedInstallName) | ||
{ | ||
# Print a "Changing install name: XX" line: | ||
print "Changing install name: $changedInstallName\n"; | ||
|
||
# Mark that the current line was handled: | ||
$wasCurrentLineHandled = 1; | ||
} | ||
} | ||
elsif ($lineTokens[0] =~ /bin\/moc/) | ||
{ | ||
print "Mocking: $lineTokens[1] \n"; | ||
|
||
# Mark that the current line was handled: | ||
$wasCurrentLineHandled = 1; | ||
} | ||
|
||
# If the current line was not handled - print it: | ||
if (!($wasCurrentLineHandled)) | ||
{ | ||
print "$currentLine"; | ||
} | ||
|
||
# Get the next input line: | ||
$currentLine = <STDIN>; | ||
} | ||
|
Oops, something went wrong.