Difference between revisions of "User:Geenz Linden"
Geenz Linden (talk | contribs) (Created page with "Some weird space bird crux thing or other making weird engine and rendering things on the internet! =Useful Scripts= ==Geenz's Build Environment Setup Script== Here's a power...") |
Geenz Linden (talk | contribs) |
||
Line 6: | Line 6: | ||
For open source builds, make sure you change AUTOBUILD_CONFIGURATION to "RelWithDebInfoOS" or a similar open source configuration. Make sure you check out [[Build the Viewer on Windows]] for a couple more build configurations (such as ReleaseOS). | For open source builds, make sure you change AUTOBUILD_CONFIGURATION to "RelWithDebInfoOS" or a similar open source configuration. Make sure you check out [[Build the Viewer on Windows]] for a couple more build configurations (such as ReleaseOS). | ||
Also make sure to set VSVER to the version of Visual Studio you're using. For example, a lot of development as of writing is occurring in VS 2019 which has a version number of 160 in this context. Use 170 for 2022, 150 for 2017, etc. | |||
<pre> | <pre> | ||
$execpath=Get-Location | $execpath=Get-Location |
Latest revision as of 07:14, 12 October 2022
Some weird space bird crux thing or other making weird engine and rendering things on the internet!
Useful Scripts
Geenz's Build Environment Setup Script
Here's a powershell script I tend to use while I'm doing viewer development that automatically sets up some environment variables, and ensures the correct build variables are checked out.
For open source builds, make sure you change AUTOBUILD_CONFIGURATION to "RelWithDebInfoOS" or a similar open source configuration. Make sure you check out Build the Viewer on Windows for a couple more build configurations (such as ReleaseOS).
Also make sure to set VSVER to the version of Visual Studio you're using. For example, a lot of development as of writing is occurring in VS 2019 which has a version number of 160 in this context. Use 170 for 2022, 150 for 2017, etc.
$execpath=Get-Location $env:AUTOBUILD_ADDRSIZE=64 $env:AUTOBUILD_CONFIGURATION="RelWithDebInfo" $env:AUTOBUILD_INSTALLABLE_CACHE="$execpath\autobuild-cache" $env:AUTOBUILD_VARIABLES_DIR="$execpath\build-variables" $env:AUTOBUILD_VARIABLES_FILE="$execpath\build-variables\variables" $env:AUTOBUILD_VSVER=160 if((Test-Path -Path $env:AUTOBUILD_VARIABLES_DIR) -eq $false) { "Path does not exist. Cloning." git clone https://bitbucket.org/lindenlab/build-variables.git } else { "Build variables exist. Skipping clone." } cd $env:AUTOBUILD_VARIABLES_DIR git checkout viewer cd $execpath